You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
File "/opt/fabric/.virtualenvs/fabric/lib/python2.6/site-packages/cuisine.py", line 414, in file_upload
f = file(local, 'rb')
IOError: [Errno 13] Permission denied: '/home/foobar/.bashrc'
I'm no python expert and I can't see the right way to do a such thing...
I had a similar problem whil trying to sync the users accounts... I finaly did a shadow = local('sudo cat /etc/shadow', capture = true) which is not really ellegant...
This may be more a feature request than a bug, but still...
The text was updated successfully, but these errors were encountered:
I have a general problem while running fabric (and cuisine) as an unprovileged user (fabric user).
While working on the remote host, the mode_sudo (or with mode_sudo when it work... I also have troubles) work, so my user can do anything I want.
The problem comes when you want to do a local action that require to sudo.
None of the options actualy implement this.
For example, I want to sync the /home folders of my users :
userfiles = ['.bashrc', '.bash_profile', '.vimrc', '.ssh/id_rsa.pub']
user = 'foobar'
mode_sudo()
for userfile in userfiles:
file_upload('/home/'+user+'/'+userfile, '/home/'+user+'/'+userfile)
File "/opt/fabric/.virtualenvs/fabric/lib/python2.6/site-packages/cuisine.py", line 414, in file_upload
f = file(local, 'rb')
IOError: [Errno 13] Permission denied: '/home/foobar/.bashrc'
I'm no python expert and I can't see the right way to do a such thing...
I had a similar problem whil trying to sync the users accounts... I finaly did a shadow = local('sudo cat /etc/shadow', capture = true) which is not really ellegant...
This may be more a feature request than a bug, but still...
The text was updated successfully, but these errors were encountered: