Add new comment

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Submitted by Ladowny (not registered) on Fri, 2008-10-17 15:22.

Great stuff, been looking for something like that for ages. However it took me some time to figure out why it does not chroot on one of machines, for an account with non-default home dir ( not /home/$user ),

It does not read the home dir from /etc/passwd, but from /etc/ssh/sftp_config 

I was getting access denied error for the home dir specified in /etc/passwd ( not /home/$user ) when issuing ls command, and pwd returned the complete dir not just "/"

 Sorted that by adding

<Group mygroup>
        Home                    /smysftpfolder/myuser
</Group>

to /etc/ssh/sftp_config

 

 

Please do not use the comment function to ask for help! If you need help, please use our forum.
Comments will be published after administrator approval.

Reply

*
*
The content of this field is kept private and will not be shown publicly.


*

  • Images can be added to this post.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <img> <div>
  • Lines and paragraphs break automatically.