Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 3 > General

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 17th August 2011, 18:54
Justin Albstmeijer Justin Albstmeijer is offline
Member
 
Join Date: Dec 2007
Posts: 74
Thanks: 1
Thanked 5 Times in 5 Posts
Default creating a jailkit user fails

Hi,

When creating a jailkit user, I cannot login.
If I check the /etc/passwd entries the user has not been given the correct shell.

web283:x:5123:5043::/var/clients/client30/web123/./home/web123:/bin/false
random.com:x:5123:5043::/var/clients/client12/web123/./home/random.com:/bin/false

created two more accounts with the same result.

here the create log of the initial creation

17.08.2011-12:14 - DEBUG - Found 1 changes, starting update process.
17.08.2011-12:14 - DEBUG - Replicated from master: REPLACE INTO shell_user (`shell_user_id`,`sys_userid`,`sys_groupid`,`sys_p erm_user`,`sys_perm_group`,`sys_perm_other`,`serve r_id`,`parent_domain_id`,`username`,`password`,`qu ota_size`,`active`,`puser`,`pgroup`,`shell`,`dir`, `chroot`) VALUES ('179','32','32','riud','riud','','10','283','rand om.com','$1$it2Sirq4$Ymomt.K6123456twxOCXL.','-1','y','web123','client12','/bin/bash','/var/clients/client12/web123','jailkit')
17.08.2011-12:14 - DEBUG - Calling function 'insert' from plugin 'shelluser_base_plugin' raised by event 'shell_user_insert'.
17.08.2011-12:14 - DEBUG - Executed command: useradd -d /var/clients/client12/web123 -g client12 -o -p \$1\$it2Sirq4\$Ymomt.K6123456twxOCXL. -s /bin/bash -u 5123 random.com
17.08.2011-12:14 - DEBUG - Added shelluser: random.com
17.08.2011-12:14 - DEBUG - Disabling shelluser temporarily: usermod -s /bin/false -L random.com
17.08.2011-12:14 - DEBUG - Calling function 'insert' from plugin 'shelluser_jailkit_plugin' raised by event 'shell_user_insert'.
17.08.2011-12:14 - DEBUG - Added jailkit chroot with command: /usr/local/ispconfig/server/scripts/create_jailkit_chroot.sh /var/clients/client12/web123 'basicshell editors extendedshell netutils ssh sftp scp groups jk_lsh'
17.08.2011-12:14 - DEBUG - Added programs to jailkit chroot with command: /usr/local/ispconfig/server/scripts/create_jailkit_programs.sh /var/clients/client12/web123 '/usr/bin/groups /usr/bin/id /usr/bin/dircolors /usr/bin/lesspipe /usr/bin/basename /usr/bin/dirname /usr/bin/nano /usr/bin/pico'
17.08.2011-12:14 - DEBUG - Added bashrc scrpt : /var/clients/client12/web123/etc/bash.bashrc
17.08.2011-12:14 - DEBUG - Added jailkit user to chroot with command: /usr/local/ispconfig/server/scripts/create_jailkit_user.sh random.com /var/clients/client12/web123 /home/random.com /bin/bash web123 /home/web123
17.08.2011-12:14 - DEBUG - Added created jailkit user home in : /var/clients/client12/web123/home/random.com
17.08.2011-12:14 - DEBUG - Added created jailkit parent user home in : /var/clients/client12/web123/home/web123
17.08.2011-12:14 - DEBUG - Jailkit Plugin -> insert username:random.com
17.08.2011-12:14 - DEBUG - Processed datalog_id 21819
17.08.2011-12:14 - DEBUG - Remove Lock: /usr/local/ispconfig/server/temp/.ispconfig_lock
17.08.2011-12:15 - DEBUG - Set Lock: /usr/local/ispconfig/server/temp/.ispconfig_lock

editing the account, in this case by changing the quote of the shell user, the shell gets fixed and I can log in.

web123:x:5123:5043::/var/clients/client12/web123/./home/web123:/bin/false
random.com:x:5123:5043::/var/clients/client12/web123/./home/random.com:/usr/sbin/jk_chrootsh

here the log of the quota change.

17.08.2011-16:32 - DEBUG - Replicated from master: REPLACE INTO shell_user (`shell_user_id`,`sys_userid`,`sys_groupid`,`sys_p erm_user`,`sys_perm_group`,`sys_perm_other`,`serve r_id`,`parent_domain_id`,`username`,`password`,`qu ota_size`,`active`,`puser`,`pgroup`,`shell`,`dir`, `chroot`) VALUES ('179','32','32','riud','riud','','10','123','rand om.com','$1$it2Sirq4$Ymomt.K6123456twxOCXL.','1',' y','web123','client12','/bin/bash','/var/clients/client12/web123','jailkit')
17.08.2011-16:32 - DEBUG - Calling function 'update' from plugin 'shelluser_base_plugin' raised by event 'shell_user_update'.
17.08.2011-16:32 - DEBUG - Executed command: usermod --home /var/clients/client12/web123 --gid client12 --password \$1\$it2Sirq4\$Ymomt.K6123456twxOCXL. --login random.com random.com
17.08.2011-16:32 - DEBUG - Updated shelluser: random.com
17.08.2011-16:32 - DEBUG - Calling function 'update' from plugin 'shelluser_jailkit_plugin' raised by event 'shell_user_update'.
17.08.2011-16:32 - DEBUG - Added jailkit chroot with command: /usr/local/ispconfig/server/scripts/create_jailkit_chroot.sh /var/clients/client12/web123 'basicshell editors extendedshell netutils ssh sftp scp groups jk_lsh'
17.08.2011-16:32 - DEBUG - Added programs to jailkit chroot with command: /usr/local/ispconfig/server/scripts/create_jailkit_programs.sh /var/clients/client12/web123 '/usr/bin/groups /usr/bin/id /usr/bin/dircolors /usr/bin/lesspipe /usr/bin/basename /usr/bin/dirname /usr/bin/nano /usr/bin/pico'
17.08.2011-16:32 - DEBUG - Added bashrc scrpt : /var/clients/client12/web123/etc/bash.bashrc
17.08.2011-16:32 - DEBUG - Added jailkit user to chroot with command: /usr/local/ispconfig/server/scripts/create_jailkit_user.sh random.com /var/clients/client12/web123 /home/random.com /bin/bash web123 /home/web123
17.08.2011-16:32 - DEBUG - Added created jailkit user home in : /var/clients/client12/web123/home/random.com
17.08.2011-16:32 - DEBUG - Added created jailkit parent user home in : /var/clients/client12/web123/home/web123
17.08.2011-16:32 - DEBUG - Jailkit Plugin -> update username:random.com
17.08.2011-16:32 - DEBUG - Processed datalog_id 21824
17.08.2011-16:32 - DEBUG - Remove Lock: /usr/local/ispconfig/server/temp/.ispconfig_lock

I have seen this issue with previous versions too.

Justin
Reply With Quote
Sponsored Links
 

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
Creating sites with specific user as owner smet Installation/Configuration 1 24th April 2010 23:44
Anything I can do against illegal login-requests? schmidtedv Installation/Configuration 17 7th November 2008 09:25
Wired problem creating a new user Spaetzle General 1 9th October 2008 14:20
Creating new User error.... kassie General 2 2nd June 2007 15:27
log files cruz Technical 3 15th May 2007 14:35


All times are GMT +2. The time now is 13:56.


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