HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Installation/Configuration (http://www.howtoforge.com/forums/forumdisplay.php?f=27)
-   -   SSH Shell users homedir (http://www.howtoforge.com/forums/showthread.php?t=60835)

Gijs 6th March 2013 11:58

SSH Shell users homedir
 
Hi,

If I create a Shell user, the homedir is not the usual homedir as you connect with FTP, but it is /homedir/home/sshuser

If I take a look at /etc/passwd it created the homedir there and if I delete that piece it connects fine to the actual homedir.

Does anyone know how I can change this so that it is using the standard homedir? In ISPConfig 3 it says the right directory.

Thanks

till 6th March 2013 12:07

This will not work if I remember correctly as jailkit will fail to create the jails then. A ssh user must have its own home directory, so thats omething different then ftp. SSH users in linux always have their own homeir in /home/username btw.

Gijs 6th March 2013 12:26

If you check this line in /etc/passwd:
sshuser:x:1005:1005::/var/www/clients/210220203/web15/./home/sshuser:/usr/sbin/jk_chrootsh

This part defines the chrooted dir right:
/var/www/clients/210220203/web15/

And this the homedir:
/home/sshuser

So if I remove the last part it still connects fine and is still chrooted.

So you still think it is impossible to automatically use the chrooted dir?

Thanks :)


All times are GMT +2. The time now is 10:26.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.