#1  
Old 6th March 2013, 11:58
Gijs Gijs is offline
Member
 
Join Date: Feb 2013
Posts: 54
Thanks: 20
Thanked 2 Times in 2 Posts
Default 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
Reply With Quote
Sponsored Links
  #2  
Old 6th March 2013, 12:07
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,046
Thanks: 826
Thanked 5,389 Times in 4,234 Posts
Default

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.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #3  
Old 6th March 2013, 12:26
Gijs Gijs is offline
Member
 
Join Date: Feb 2013
Posts: 54
Thanks: 20
Thanked 2 Times in 2 Posts
 
Default

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
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
SSH key for shell users bswinnerton Installation/Configuration 1 11th August 2011 11:03
cannot create new ssh users for one client wildnux Server Operation 0 9th February 2011 01:10
Cacti and ISPConfig: Monitoring Tool VMartins Tips/Tricks/Mods 11 9th August 2008 18:37
Junk mail and spamassassin... sthompson Installation/Configuration 4 27th December 2006 16:11
Lock SSH users in homedir? Tuurbo Installation/Configuration 4 8th June 2006 12:12


All times are GMT +2. The time now is 06:30.


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