Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Fri Oct 12, 2012 4:54 pm 
Offline
Senior Member

Joined: Tue Aug 14, 2012 5:55 pm
Posts: 82
- I have created an stfp user alpha

- I want to limit his sftp access to a subfolder of another user /home/beta/subfolder

- the chroot setting is

Code:
Match User alpha
    ChrootDirectory /home/beta/subfolder
    AllowTCPForwarding no
    X11Forwarding no
    ForceCommand internal-sftp


but the ftp gives me error

Code:
Error:   Connection reset by peer
Error:   Could not connect to server


If I change ChrootDirectory to /home only it works all fine.


What could be the issue ? please help.


Top
   
PostPosted: Fri Oct 12, 2012 11:05 pm 
Offline
Senior Member

Joined: Mon Aug 31, 2009 2:33 pm
Posts: 78
Location: The OC
If I am remembering correctly, the chroot directory needs to be owned by root.

edit: the library article on sftp jails seems to confirm this.


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


Who is online

Users browsing this forum: No registered users and 3 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