Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Wed Mar 02, 2011 5:21 pm 
Offline
Senior Newbie

Joined: Tue Dec 22, 2009 3:57 am
Posts: 5
Hi,

I have several users that I want them to be able to read and write the same directory with sftp.

I follow the linode tutorial http://library.linode.com/security/sftp-jails/

And I changed the directory to a new group and I put all users in that group.

Now those users when login with sftp they arrive in that directory and can read everything inside that directory.

But they can't write or upload files...

So I chmod the directory with g+w, so that the group have permissions to write.

The problem is that when I chmod the directory with g+w, the users can't login... When they enter the password the connection is closed...

Any help on this?

Thank you!


Top
   
 Post subject:
PostPosted: Thu Mar 03, 2011 4:50 pm 
Offline
Senior Member
User avatar

Joined: Tue Nov 24, 2009 1:59 pm
Posts: 362
That's exactly how it's supposed to work.
You need to create a subdirectory under the read-only login directory, and give them write access to that.

I usually create

/home/user/ <- read only
/home/user/www.example.net <- writable
/home/user/www.example.com <- writable

and so on.

_________________
rsk, providing useless advice on the Internet since 2005.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 6 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group