Hi trysomething,
thx for your replay. You were right I can't start the the samba server as zentyal module.
service zentyal samba restart
* Restarting Zentyal module: samba [fail]
As far as I can see there was no problem with updating any packages. The following samba packages are installed:
dpkg -l | grep -i samba
ii libsamba-perl 0.11 Perl bindings for samba 4.0
ii samba4 4.1.5-zentyal1 SMB/CIFS file, NT domain and active directory server (version 4)
ii slapd-smbk5pwd 2.4.28+51~precise1 Keeps Samba and Kerberos passwords in sync within slapd.
ii zentyal-samba 3.3.5 Zentyal - File Sharing and Domain Services
By any chance that the problem is resulted by wrong or missing users and right?
As far as I understand the zentyal.log which is created when I try to restart the zentyal samba module there are some invalid groups and users:
2016/06/22 11:41:17 INFO> Service.pm:1004 EBox::Module::Service::restartService - Restarting service for module: samba
2016/06/22 11:41:17 ERROR> Sudo.pm:232 EBox::Sudo::_rootError - root command set -e
mkdir -p /home/samba/
chown root:__USERS__ /home/samba/
chmod 770 /home/samba/
setfacl -b /home/samba/
setfacl -m u:nobody:rx /home/samba/
setfacl -m u:ebox:rwx /home/samba/
mkdir -p /home/samba/profiles
chown root:__USERS__ /home/samba/profiles
chmod 770 /home/samba/profiles
setfacl -b /home/samba/profiles
mkdir -p /home/samba/shares
chown root:__USERS__ /home/samba/shares
chmod 770 /home/samba/shares
setfacl -b /home/samba/shares
setfacl -m u:nobody:rx /home/samba/shares
setfacl -m u:ebox:rwx /home/samba/shares
mkdir -p '/var/lib/zentyal/quarantine'
chown -R ebox.adm '/var/lib/zentyal/quarantine'
chmod 770 '/var/lib/zentyal/quarantine' failed.
Error output: chown: invalid group: `root:__USERS__'
Command output: .
Exit value: 1 at Trace begun at /usr/share/perl5/EBox/Exceptions/Base.pm line 79
EBox::Exceptions::Base::stacktrace('EBox::Exceptions::Sudo::Command=HASH(0x57ac430)') called at /usr/share/perl5/EBox/Exceptions/Base.pm line 119
EBox::Exceptions::Base::log('EBox::Exceptions::Sudo::Command=HASH(0x57ac430)') called at /usr/share/perl5/EBox/Exceptions/Internal.pm line 35
EBox::Exceptions::Internal::new('EBox::Exceptions::Sudo::Command', 'root command set -e^Jmkdir -p /home/samba/^Jchown root:__USERS__ /home/samba/^Jchmod 770 /home/samba/^Jsetfacl -b /home/samba/^Jsetfacl -m u:nobody:rx /home/samba/^Jsetfacl -m u:ebox:rwx /home/samba/^Jmkdir -p /home/samba/profiles^Jchown root:__USERS__ /home/samba/profiles^Jchmod 770 /home/samba/profiles^Jsetfacl -b /home/samba/profiles^Jmkdir -p /home/samba/shares^Jchown root:__USERS__ /home/samba/shares^Jchmod 770 /home/samba/shares^Jsetfacl -b /home/samba/shares^Jsetfacl -m u:nobody:rx /home/samba/shares^Jsetfacl -m u:ebox:rwx /home/samba/shares^Jmkdir -p \'/var/lib/zentyal/quarantine\'^Jchown -R ebox.adm \'/var/lib/zentyal/quarantine\'^Jchmod 770 \'/var/lib/zentyal/quarantine\' failed. ^JError output: chown: invalid group: `root:__USERS__\'^J^JCommand output: . ^JExit value: 1') called at /usr/share/perl5/EBox/Exceptions/Command.pm line 85
EBox::Exceptions::Command::new(undef, 'cmd', 'set -e^Jmkdir -p /home/samba/^Jchown root:__USERS__ /home/samba/^Jchmod 770 /home/samba/^Jsetfacl -b /home/samba/^Jsetfacl -m u:nobody:rx /home/samba/^Jsetfacl -m u:ebox:rwx /home/samba/^Jmkdir -p /home/samba/profiles^Jchown root:__USERS__ /home/samba/profiles^Jchmod 770 /home/samba/profiles^Jsetfacl -b /home/samba/profiles^Jmkdir -p /home/samba/shares^Jchown root:__USERS__ /home/samba/shares^Jchmod 770 /home/samba/shares^Jsetfacl -b /home/samba/shares^Jsetfacl -m u:nobody:rx /home/samba/shares^Jsetfacl -m u:ebox:rwx /home/samba/shares^Jmkdir -p \'/var/lib/zentyal/quarantine\'^Jchown -R ebox.adm \'/var/lib/zentyal/quarantine\'^Jchmod 770 \'/var/lib/zentyal/quarantine\'', 'output', 'ARRAY(0x577a778)', 'error', 'ARRAY(0x1d0e848)', 'exitValue', 1, 'cmdType', 'root command') called at /usr/share/perl5/EBox/Exceptions/Sudo/Command.pm line 30
EBox::Exceptions::Sudo::Command::new('EBox::Exceptions::Sudo::Command', 'cmd', 'set -e^Jmkdir -p /home/samba/^Jchown root:__USERS__ /home/samba/^Jchmod 770 /home/samba/^Jsetfacl -b /home/samba/^Jsetfacl -m u:nobody:rx /home/samba/^Jsetfacl -m u:ebox:rwx /home/samba/^Jmkdir -p /home/samba/profiles^Jchown root:__USERS__ /home/samba/profiles^Jchmod 770 /home/samba/profiles^Jsetfacl -b /home/samba/profiles^Jmkdir -p /home/samba/shares^Jchown root:__USERS__ /home/samba/shares^Jchmod 770 /home/samba/shares^Jsetfacl -b /home/samba/shares^Jsetfacl -m u:nobody:rx /home/samba/shares^Jsetfacl -m u:ebox:rwx /home/samba/shares^Jmkdir -p \'/var/lib/zentyal/quarantine\'^Jchown -R ebox.adm \'/var/lib/zentyal/quarantine\'^Jchmod 770 \'/var/lib/zentyal/quarantine\'', 'output', 'ARRAY(0x577a778)', 'error', 'ARRAY(0x1d0e848)', 'exitValue', 1) called at /usr/share/perl5/EBox/Exceptions/Base.pm line 91
EBox::Exceptions::Base::throw('EBox::Exceptions::Sudo::Command', 'cmd', 'set -e^Jmkdir -p /home/samba/^Jchown root:__USERS__ /home/samba/^Jchmod 770 /home/samba/^Jsetfacl -b /home/samba/^Jsetfacl -m u:nobody:rx /home/samba/^Jsetfacl -m u:ebox:rwx /home/samba/^Jmkdir -p /home/samba/profiles^Jchown root:__USERS__ /home/samba/profiles^Jchmod 770 /home/samba/profiles^Jsetfacl -b /home/samba/profiles^Jmkdir -p /home/samba/shares^Jchown root:__USERS__ /home/samba/shares^Jchmod 770 /home/samba/shares^Jsetfacl -b /home/samba/shares^Jsetfacl -m u:nobody:rx /home/samba/shares^Jsetfacl -m u:ebox:rwx /home/samba/shares^Jmkdir -p \'/var/lib/zentyal/quarantine\'^Jchown -R ebox.adm \'/var/lib/zentyal/quarantine\'^Jchmod 770 \'/var/lib/zentyal/quarantine\'', 'output', 'ARRAY(0x577a778)', 'error', 'ARRAY(0x1d0e848)', 'exitValue', 1) called at /usr/share/perl5/EBox/Sudo.pm line 232
EBox::Sudo::_rootError('/usr/bin/sudo -p sudo: /var/lib/zentyal/tmp/QbFVAm0qgi.cmd 2> /var/lib/zentyal/tmp/stderr', 'set -e^Jmkdir -p /home/samba/^Jchown root:__USERS__ /home/samba/^Jchmod 770 /home/samba/^Jsetfacl -b /home/samba/^Jsetfacl -m u:nobody:rx /home/samba/^Jsetfacl -m u:ebox:rwx /home/samba/^Jmkdir -p /home/samba/profiles^Jchown root:__USERS__ /home/samba/profiles^Jchmod 770 /home/samba/profiles^Jsetfacl -b /home/samba/profiles^Jmkdir -p /home/samba/shares^Jchown root:__USERS__ /home/samba/shares^Jchmod 770 /home/samba/shares^Jsetfacl -b /home/samba/shares^Jsetfacl -m u:nobody:rx /home/samba/shares^Jsetfacl -m u:ebox:rwx /home/samba/shares^Jmkdir -p \'/var/lib/zentyal/quarantine\'^Jchown -R ebox.adm \'/var/lib/zentyal/quarantine\'^Jchmod 770 \'/var/lib/zentyal/quarantine\'', 256, 'ARRAY(0x577a778)', 'ARRAY(0x1d0e848)') called at /usr/share/perl5/EBox/Sudo.pm line 202
EBox::Sudo::_root(1, 'mkdir -p /home/samba/', 'chown root:__USERS__ /home/samba/', 'chmod 770 /home/samba/', 'setfacl -b /home/samba/', 'setfacl -m u:nobody:rx /home/samba/', 'setfacl -m u:ebox:rwx /home/samba/', 'mkdir -p /home/samba/profiles', 'chown root:__USERS__ /home/samba/profiles', 'chmod 770 /home/samba/profiles', 'setfacl -b /home/samba/profiles', 'mkdir -p /home/samba/shares', 'chown root:__USERS__ /home/samba/shares', 'chmod 770 /home/samba/shares', 'setfacl -b /home/samba/shares', 'setfacl -m u:nobody:rx /home/samba/shares', 'setfacl -m u:ebox:rwx /home/samba/shares', 'mkdir -p \'/var/lib/zentyal/quarantine\'', 'chown -R ebox.adm \'/var/lib/zentyal/quarantine\'', 'chmod 770 \'/var/lib/zentyal/quarantine\'') called at /usr/share/perl5/EBox/Sudo.pm line 153
EBox::Sudo::root('mkdir -p /home/samba/', 'chown root:__USERS__ /home/samba/', 'chmod 770 /home/samba/', 'setfacl -b /home/samba/', 'setfacl -m u:nobody:rx /home/samba/', 'setfacl -m u:ebox:rwx /home/samba/', 'mkdir -p /home/samba/profiles', 'chown root:__USERS__ /home/samba/profiles', 'chmod 770 /home/samba/profiles', 'setfacl -b /home/samba/profiles', 'mkdir -p /home/samba/shares', 'chown root:__USERS__ /home/samba/shares', 'chmod 770 /home/samba/shares', 'setfacl -b /home/samba/shares', 'setfacl -m u:nobody:rx /home/samba/shares', 'setfacl -m u:ebox:rwx /home/samba/shares', 'mkdir -p \'/var/lib/zentyal/quarantine\'', 'chown -R ebox.adm \'/var/lib/zentyal/quarantine\'', 'chmod 770 \'/var/lib/zentyal/quarantine\'') called at /usr/share/perl5/EBox/Samba.pm line 1040
EBox::Samba::_createDirectories('EBox::Samba=HASH(0x4a35e98)') called at /usr/share/perl5/EBox/Samba.pm line 1076
EBox::Samba::_setConf('EBox::Samba=HASH(0x4a35e98)', 'restart', 1, 'restartModules', 1) called at /usr/share/perl5/EBox/Module/Base.pm line 988
EBox::Module::Base::_regenConfig('EBox::Samba=HASH(0x4a35e98)', 'restart', 1, 'restartModules', 1) called at /usr/share/perl5/EBox/Module/Service.pm line 979
EBox::Module::Service::_regenConfig('EBox::Samba=HASH(0x4a35e98)', 'restart', 1, 'restartModules', 1) called at /usr/share/perl5/EBox/Module/Service.pm line 1006
eval {...} at /usr/share/perl5/EBox/Module/Service.pm line 1005
EBox::Module::Service::restartService('EBox::Samba=HASH(0x4a35e98)', 'restartModules', 1) called at /usr/share/perl5/EBox/Util/Init.pm line 127
eval {...} at /usr/share/perl5/EBox/Util/Init.pm line 125
EBox::Util::Init::moduleAction('samba', 'restartService', 'restart') called at /usr/share/perl5/EBox/Util/Init.pm line 199
EBox::Util::Init::moduleRestart('samba') called at /etc/init.d/zentyal line 53
main::main at /etc/init.d/zentyal line 69
2016/06/22 11:41:17 ERROR> Service.pm:1008 EBox::Module::Service::restartService - Error restarting service: root command set -e
mkdir -p /home/samba/
chown root:__USERS__ /home/samba/
chmod 770 /home/samba/
setfacl -b /home/samba/
setfacl -m u:nobody:rx /home/samba/
setfacl -m u:ebox:rwx /home/samba/
mkdir -p /home/samba/profiles
chown root:__USERS__ /home/samba/profiles
chmod 770 /home/samba/profiles
setfacl -b /home/samba/profiles
mkdir -p /home/samba/shares
chown root:__USERS__ /home/samba/shares
chmod 770 /home/samba/shares
setfacl -b /home/samba/shares
setfacl -m u:nobody:rx /home/samba/shares
setfacl -m u:ebox:rwx /home/samba/shares
mkdir -p '/var/lib/zentyal/quarantine'
chown -R ebox.adm '/var/lib/zentyal/quarantine'
chmod 770 '/var/lib/zentyal/quarantine' failed.
Error output: chown: invalid group: `root:__USERS__'
Command output: .
Exit value: 1
2016/06/22 11:41:17 ERROR> Service.pm:1010 EBox::Module::Service::restartService - root command set -e
mkdir -p /home/samba/
chown root:__USERS__ /home/samba/
chmod 770 /home/samba/
setfacl -b /home/samba/
setfacl -m u:nobody:rx /home/samba/
setfacl -m u:ebox:rwx /home/samba/
mkdir -p /home/samba/profiles
chown root:__USERS__ /home/samba/profiles
chmod 770 /home/samba/profiles
setfacl -b /home/samba/profiles
mkdir -p /home/samba/shares
chown root:__USERS__ /home/samba/shares
chmod 770 /home/samba/shares
setfacl -b /home/samba/shares
setfacl -m u:nobody:rx /home/samba/shares
setfacl -m u:ebox:rwx /home/samba/shares
mkdir -p '/var/lib/zentyal/quarantine'
chown -R ebox.adm '/var/lib/zentyal/quarantine'
chmod 770 '/var/lib/zentyal/quarantine' failed.
Error output: chown: invalid group: `root:__USERS__'
Command output: .
Exit value: 1 at Trace begun at /usr/share/perl5/EBox/Exceptions/Base.pm line 79
EBox::Exceptions::Base::stacktrace('EBox::Exceptions::Internal=HASH(0x555b6c8)') called at /usr/share/perl5/EBox/Exceptions/Base.pm line 119
EBox::Exceptions::Base::log('EBox::Exceptions::Internal=HASH(0x555b6c8)') called at /usr/share/perl5/EBox/Exceptions/Internal.pm line 35
EBox::Exceptions::Internal::new('EBox::Exceptions::Internal', 'root command set -e^Jmkdir -p /home/samba/^Jchown root:__USERS__ /home/samba/^Jchmod 770 /home/samba/^Jsetfacl -b /home/samba/^Jsetfacl -m u:nobody:rx /home/samba/^Jsetfacl -m u:ebox:rwx /home/samba/^Jmkdir -p /home/samba/profiles^Jchown root:__USERS__ /home/samba/profiles^Jchmod 770 /home/samba/profiles^Jsetfacl -b /home/samba/profiles^Jmkdir -p /home/samba/shares^Jchown root:__USERS__ /home/samba/shares^Jchmod 770 /home/samba/shares^Jsetfacl -b /home/samba/shares^Jsetfacl -m u:nobody:rx /home/samba/shares^Jsetfacl -m u:ebox:rwx /home/samba/shares^Jmkdir -p \'/var/lib/zentyal/quarantine\'^Jchown -R ebox.adm \'/var/lib/zentyal/quarantine\'^Jchmod 770 \'/var/lib/zentyal/quarantine\' failed. ^JError output: chown: invalid group: `root:__USERS__\'^J^JCommand output: . ^JExit value: 1') called at /usr/share/perl5/EBox/Exceptions/Base.pm line 91
EBox::Exceptions::Base::throw('EBox::Exceptions::Internal', 'root command set -e^Jmkdir -p /home/samba/^Jchown root:__USERS__ /home/samba/^Jchmod 770 /home/samba/^Jsetfacl -b /home/samba/^Jsetfacl -m u:nobody:rx /home/samba/^Jsetfacl -m u:ebox:rwx /home/samba/^Jmkdir -p /home/samba/profiles^Jchown root:__USERS__ /home/samba/profiles^Jchmod 770 /home/samba/profiles^Jsetfacl -b /home/samba/profiles^Jmkdir -p /home/samba/shares^Jchown root:__USERS__ /home/samba/shares^Jchmod 770 /home/samba/shares^Jsetfacl -b /home/samba/shares^Jsetfacl -m u:nobody:rx /home/samba/shares^Jsetfacl -m u:ebox:rwx /home/samba/shares^Jmkdir -p \'/var/lib/zentyal/quarantine\'^Jchown -R ebox.adm \'/var/lib/zentyal/quarantine\'^Jchmod 770 \'/var/lib/zentyal/quarantine\' failed. ^JError output: chown: invalid group: `root:__USERS__\'^J^JCommand output: . ^JExit value: 1') called at /usr/share/perl5/EBox/Module/Service.pm line 1010
EBox::Module::Service::restartService('EBox::Samba=HASH(0x4a35e98)', 'restartModules', 1) called at /usr/share/perl5/EBox/Util/Init.pm line 127
eval {...} at /usr/share/perl5/EBox/Util/Init.pm line 125
EBox::Util::Init::moduleAction('samba', 'restartService', 'restart') called at /usr/share/perl5/EBox/Util/Init.pm line 199
EBox::Util::Init::moduleRestart('samba') called at /etc/init.d/zentyal line 53
main::main at /etc/init.d/zentyal line 69
Eg. the user group __USERS__ doesn't exists?!
getent group __USERS__
# the command returns nothing, which means the group doesn't exists.