Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - chiefrango

Pages: [1]
1
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]

2
Installation and Upgrades / Zentyal 7 install w/o gui
« on: August 16, 2021, 02:01:32 am »
https://doc.zentyal.org/en/installation.html

Following the above link using zentyal_installer.sh using 'n' for graphical install)
[ Do you want to install the Zentyal Graphical environment? (n|y) n ]

all goes well with install and I bring up the first time URL [ https://zen1:8443/ ] displays normally.

The webpage requires username/password.
However, zentyal_installer.sh never prompts for username/password as would the console graphical installer.

What is the first time username/password for the initial webpage using zentyal_installer.sh w/o graphical install?

Thanks, Tim...

3
I have a computer which has been renamed from A -> B -> A. The person decided 'A' was okay after all. Now the current host 'A' cannot successfully dynamically update named.

Anyone know how to remove the original first 'A' named/bind entry to allow the update to succeed?

Tim...

[syslog snip, editted mac/domain info]
May 13 13:22:40 gateway dhcpd: DHCPREQUEST for 192.168.200.34 from xx:xx:xx:40:86:50 (host-4) via eth0
May 13 13:22:40 gateway dhcpd: DHCPACK on 192.168.200.34 to xx:xx:xx:40:86:50 (host-4) via eth0
May 13 13:22:40 gateway named[26009]: samba_dlz: starting transaction on zone example.net
May 13 13:22:40 gateway named[26009]: client 192.168.200.34#1484: updating zone 'example.net/NONE': update unsuccessful: host-4.example.net/A: 'RRset exists (value dependent)' prerequisite not satisfied (NXRRSET)
May 13 13:22:40 gateway named[26009]: samba_dlz: cancelling transaction on zone example.net
May 13 13:22:40 gateway named[26009]: samba_dlz: starting transaction on zone example.net
May 13 13:22:40 gateway named[26009]: client 192.168.200.34#1487: update 'example.net/IN' denied
May 13 13:22:40 gateway named[26009]: samba_dlz: cancelling transaction on zone example.net
May 13 13:22:40 gateway named[26009]: samba_dlz: starting transaction on zone example.net
May 13 13:22:40 gateway named[26009]: samba_dlz: disallowing update of signer=host-4\$\@example.NET name=host-4.example.net type=A error=insufficient access rights
May 13 13:22:40 gateway named[26009]: client 192.168.200.34#1489: updating zone 'example.net/NONE': update failed: rejected by secure update (REFUSED)
May 13 13:22:40 gateway named[26009]: samba_dlz: cancelling transaction on zone example.net

Pages: [1]