ubuntu - which user's privileges python program uses to execute command via subprocess? -
i have stabled password less login between 2 ubuntu system run following command
$scp file user@hostname2:/tmp/
it works fine , got file transferred without asking password. when try execute same through following python statement-
subprocess.check_output(['scp', file, r'user@hostname2:/tmp/'])
i not able copy files remote computer, bit curious user's privileges python program uses execute command via subprocess ?
how can debug such programs ?
Comments
Post a Comment