Hello,
I encountered an error which could be solved with small documentation snippet to use [ /bin/sh ] shell when self-creating unix userid + sudo group before using zentyal_installer.sh
Tim...
-----
LXC Container using container template [ubuntu-20.04-standard_20.04-1_amd64.tar.gz]
Created o/s user using [ useradd -G sudo --home /home/adminx --shell /bin/bash adminx ]
Zentyal 7.0 installation using zentyal_installer.sh on top of existing Ubuntu 20.04
[
https://zen1:8443, using username=adminx ]
Somewhere near the [ Network Module ] this error appeared
Some modules reported error when saving changes . More information on the logs in /var/log/zentyal/
Invalid value for Default login shell: /usr/bin/bash. Choose a value within the value set: /bin/sh, /bin/bash, /bin/rbash, /bin/dash, /usr/bin/screen
<Click here to go to the Dashboard>
https://zen1.*.*:8443/Wizard/SoftwareSetupFinish?firstTime=1
[end snip]
Waited 1-2 minutes
clicked <Click here to go to the Dashboard> (opened in new firefox tab)
"Installation finished" ... Congratulations
Clicked on <goto dashboard> and <Save> was orange indicating changes needed save operation.
<Save> produced this error (repeats the install error):
[snip]
Some modules reported error when saving changes . More information on the logs in /var/log/zentyal/
Invalid value for Default login shell: /usr/bin/bash. Choose a value within the value set: /bin/bash, /bin/rbash, /bin/dash, /usr/bin/screen, /bin/sh
[end snip]
Solution:
root@zen1:/var/log/zentyal# grep '/usr/bin/bash' /etc/passwd
root@zen1:/var/log/zentyal# usermod --shell /bin/sh adminx
Click <Save> to retry operation ... success
[ /var/log/zentyal/zentyal.log ]
[...]
2021/08/16 15:09:03 INFO> Service.pm:965 EBox::Module::Service::restartService - Restarting service for module: webadmin
2021/08/16 15:09:04 INFO> Service.pm:965 EBox::Module::Service::restartService - Restarting service for module: logs
2021/08/16 15:16:31 WARN> Auth.pm:277 EBox::Middleware::Auth::_login - Failed login from: <...ip address...>
2021/08/16 15:16:31 DEBUG> PAM.pm:83 Authen::Simple::PAM::check - Successfully authenticated user 'adminx' using service 'zentyal'.
2021/08/16 15:17:31 INFO> install-packages:61 main:: - Starting package installation process
2021/08/16 15:18:03 INFO> Base.pm:256 EBox::Module::Base::saveConfig - Saving config for module: ca
2021/08/16 15:18:03 INFO> Service.pm:965 EBox::Module::Service::restartService - Restarting service for module: ca
2021/08/16 15:18:04 DEBUG> Select.pm:363 EBox::Types::Select::_paramIsValid - Invalid value for Default login shell: /usr/bin/bash.
Choose a value within the value set: /bin/rbash, /bin/bash, /bin/dash, /usr/bin/screen, /bin/sh at Invalid value for Default login shell: /usr/bin/bash.
Choose a value within the value set: /bin/rbash, /bin/bash, /bin/dash, /usr/bin/screen, /bin/sh at /usr/share/perl5/EBox/Types/Select.pm line 363
EBox::Types::Select::_paramIsValid('EBox::Types::Select=HASH(0x563e4910ebb8)', 'HASH(0x563e495f27a8)') called at /usr/share/perl5/EBox/Types/Abstract.pm line 457
EBox::Types::Abstract::setMemValue('EBox::Types::Select=HASH(0x563e4910ebb8)', 'HASH(0x563e495f27a8)') called at /usr/share/perl5/EBox/Types/Select.pm line 423
EBox::Types::Select::_setValue('EBox::Types::Select=HASH(0x563e4910ebb8)', '/usr/bin/bash') called at /usr/share/perl5/EBox/Types/Abstract.pm line 62
EBox::Types::Abstract::new('EBox::Types::Select', 'defaultValue', '/usr/bin/bash', 'help', 'This will apply only to new users from now on.', 'fieldName', 'login_shell', 'disableCache', 1, 'printableName', 'Default login shell', 'HTMLSetter', '/ajax/setter/selectSetter.mas', 'populate', 'CODE(0x563e493cce90)', 'editable', 1, 'type', 'select', 'HTMLViewer', '/ajax/viewer/selectViewer.mas') called at /usr/share/perl5/EBox/Types/Basic.pm line 32
EBox::Types::Basic::new('EBox::Types::Select', 'defaultValue', '/usr/bin/bash', 'help', 'This will apply only to new users from now on.', 'fieldName', 'login_shell', 'disableCache', 1, 'printableName', 'Default login shell', 'HTMLSetter', '/ajax/setter/selectSetter.mas', 'populate', 'CODE(0x563e493cce90)', 'editable', 1, 'type', 'select', 'HTMLViewer', '/ajax/viewer/selectViewer.mas') called at /usr/share/perl5/EBox/Types/Select.pm line 68
EBox::Types::Select::new('EBox::Types::Select', 'fieldName', 'login_shell', 'printableName', 'Default login shell', 'disableCache', 1, 'populate', 'CODE(0x563e493cce90)', 'editable', 1, 'defaultValue', '/usr/bin/bash', 'help', 'This will apply only to new users from now on.') called at /usr/share/perl5/EBox/Samba/Model/PAM.pm line 111
EBox::Samba::Model::PAM::_table('EBox::Samba::Model::PAM=HASH(0x563e4946bec8)') called at /usr/share/perl5/EBox/Model/DataTable.pm line 104
EBox::Model::DataTable::_setupTable('EBox::Samba::Model::PAM=HASH(0x563e4946bec8)') called at /usr/share/perl5/EBox/Model/DataTable.pm line 92
[...]
[end snip]
[ /etc/passwd additions from add of 'adminx' to installation finished ]
adminx:x:1000:1000:Zentyal Administrator:/home/adminx:/bin/bash <<<<<<< created by me
mysql:x:113:120:MySQL Server,,,:/nonexistent:/bin/false
redis:x:114:121::/var/lib/redis:/usr/sbin/nologin
ebox:x:115:122::/var/lib/zentyal/:/usr/sbin/nologin
quagga:x:116:124:Quagga routing suite,,,:/run/quagga/:/usr/sbin/nologin
sogo:x:998:998:SOGo daemon:/var/lib/sogo:/usr/sbin/nologin
fetchmail:x:117:65534::/var/lib/fetchmail:/bin/false
ntp:x:118:125::/nonexistent:/usr/sbin/nologin
bind:x:119:126::/var/cache/bind:/usr/sbin/nologin
tftp:x:120:127:tftp daemon,,,:/srv/tftp:/usr/sbin/nologin
clamav:x:121:128::/var/lib/clamav:/bin/false
dhcpd:x:122:129::/var/run:/usr/sbin/nologin
memcache:x:123:130:Memcached,,,:/nonexistent:/bin/false
postgrey:x:124:131::/var/lib/postgrey:/usr/sbin/nologin
dovecot:x:125:132:Dovecot mail server,,,:/usr/lib/dovecot:/usr/sbin/nologin
dovenull:x:126:133:Dovecot login user,,,:/nonexistent:/usr/sbin/nologin
e2guardian:x:127:134:e2guardian User,,,:/var/log/e2guardian:/bin/sh
[end snip]