Installed Software (what you got with the installer):
bash vst-install.sh --nginx yes --apache yes --phpfpm no --named yes --remi yes --vsftpd yes --proftpd no --iptables yes --fail2ban yes --quota no --exim yes --dovecot yes --spamassassin yes --clamav yes --softaculous yes --mysql yes --postgresql no ...
Steps to Reproduce:
1) In Vesta CP, create a user with nologin shell
2) Try to invoque a shell for this user
root@aldebaran:~# su - theuser
Cannot execute /sbin/nologin: No such file or directory
Expected result is:
root@aldebaran:/sbin# su - theuser
This account is currently not available.
Related Issues/Forum Threads:
Did not find anything directly related.
1792 is of the same family but complaining about the "nologin" option not being avaible in control panel on CentOS (which is not the case here, all shells are available in the dropdown list)
936 if [ "$vsftpd" = 'yes' ]; then
937 cp -f $vestacp/vsftpd/vsftpd.conf /etc/
938 update-rc.d vsftpd defaults
939 service vsftpd start
940 check_result $? "vsftpd start failed"
941
942 # To be deleted after release 0.9.8-18
943 echo "/sbin/nologin" >> /etc/shells
944 fi
Abstract
Qualification: cosmetic (it's more a code cleaning issue)
Analysis: On Debian 9, nologin sits in the /usr/sbin directory and not in the /sbin directory. Vesta install scripts should take this into account. May work just by deleting lines 662, 942 and 943 in vst-install-debian.sh (?)
QuickFix: I didn't dare to change anything, so i just created a symlink:
cd /sbinln -fs /usr/sbin/nologin nologin
Operating System (OS/VERSION):
VestaCP Version:
0.9.8-24
Installed Software (what you got with the installer):
bash vst-install.sh --nginx yes --apache yes --phpfpm no --named yes --remi yes --vsftpd yes --proftpd no --iptables yes --fail2ban yes --quota no --exim yes --dovecot yes --spamassassin yes --clamav yes --softaculous yes --mysql yes --postgresql no ...
Steps to Reproduce:
1) In Vesta CP, create a user with nologin shell
2) Try to invoque a shell for this user
Expected result is:
Related Issues/Forum Threads:
Did not find anything directly related.
1792 is of the same family but complaining about the "nologin" option not being avaible in control panel on CentOS (which is not the case here, all shells are available in the dropdown list)
Other Notes:
The /etc/shells file content is:
Multiple entries for nologin seems to be created by /usr/local/vesta/install/vst-install-debian.sh Here:
and here:
Abstract
Qualification: cosmetic (it's more a code cleaning issue) Analysis: On Debian 9, nologin sits in the /usr/sbin directory and not in the /sbin directory. Vesta install scripts should take this into account. May work just by deleting lines 662, 942 and 943 in vst-install-debian.sh (?) QuickFix: I didn't dare to change anything, so i just created a symlink:
cd /sbin
ln -fs /usr/sbin/nologin nologin