I've programmed a script using python which logs in as root
on the host machine and executes some commands. Therefore it uses ssh
. I want to setup acl
. If I do following commands in the command line, everything works well.
s.execute("setfacl -m user:www-data:r-x,mask:r-x /srv/gitosis/.ssh")
s.execute("setfacl -m user:www-data:r--,mask:r-- /srv/gitosis/.ssh/id_dsa")
This is the python call and I always get:
setfacl: /srv/gitosis/.ssh: Operation not supported
setfacl: /srv/gitosis/.ssh/id_dsa: Operation not supported
What is the problem here? Doing that via ssh directly works well.
s
? What OS are you using? Is ACL enabled on the filesystem? – Karlson Feb 8 '12 at 20:58acl
is enabled. If I call the command directly via bash it works.s
is my ssh handle inside python. On this handle I can write viaexecute
on the command line. – Razer Feb 8 '12 at 21:02s
is defined/opened? – Karlson Feb 8 '12 at 21:35