creating a jailkit user fails
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_perm_user
,sys_perm_group
,sys_perm_other
,server_id
,parent_domain_id
,username
,password
,quota_size
,active
,puser
,pgroup
,shell
,dir
,chroot
) VALUES ('179','32','32','riud','riud','','10','283','random.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
edit the account, in this case by changing the quote of the shell user, the sheel gets fixed and I can log in.
web123:x:5123:5043::/var/clients/client12/web123/./home/web123:/bin/false jonkers.com:x:5123:5043::/var/clients/client12/web123/./home/jonkers.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_perm_user
,sys_perm_group
,sys_perm_other
,server_id
,parent_domain_id
,username
,password
,quota_size
,active
,puser
,pgroup
,shell
,dir
,chroot
) VALUES ('179','32','32','riud','riud','','10','123','random.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.