FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.

» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Debian > Debian User

LinkBack Thread Tools
Old 05-07-2012, 02:07 PM
Bastien Rocheron
Default sshfs via autofs permissions problem

Hi, I'm using 2 Debian Squeeze as web server. On server1 I have a folder of user uploaded data (a Django user media folder to be exact) where everything belongs to www-data and this user can read write. Now on server2 which is a clone that is used over load balancing I am trying to set up sshfs via autofs. Right now it seems to be working but actually I must have done something wrong because if I login with www-data on server2 and go to the user media directory which is owned by www-data I get a permission denied when I try to write.

This is my /etc/auto.master:

/home/server2/user_media /etc/auto.sshfs --timeout=30,--ghost

and this is my /etc/auto.sshfs:
mountpoint** -fstype=fuse,rw,nodev,nonempty,allow_other,reconnec t,uid=33,gid=33,max_read=65536,compression=yes,aut o_cache,no_check_root,kernel_cache :sshfs#server1@server1:/home/server1/user_media

33 is www-data uig and gid on both servers. I have tried various options like putting uid and gid in the auto.master or using idmap=user in the auto.sshfs but I have never been able to write with the www-data user on server2 in the shared folder.

Could anybody please shed some light?

Thread Tools

All times are GMT. The time now is 05:11 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org