restart smbd and winbind failed
by llsastre from LinuxQuestions.org on (#53R31)
Hi,
I'm trying to join Ubuntu server 20.04 to old AD Windows 2003 server.
I follow this guide: https://elbinario.net/2019/02/13/int...ive-directory/
All seems ok until check status of smbd and winbind, that failed.
Code:root@lxsvr:/home/adminserver# service smbd status
smbd.service - Samba SMB Daemon
Loaded: loaded (/lib/systemd/system/smbd.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Thu 2020-05-21 12:39:47 CEST; 5min ago
Docs: man:smbd(8)
man:samba(7)
man:smb.conf(5)
Process: 1272 ExecStartPre=/usr/share/samba/update-apparmor-samba-profile (code=exited, status=0/SUCCESS)
Process: 1290 ExecStart=/usr/sbin/smbd --foreground --no-process-group $SMBDOPTIONS (code=exited, status=255/EXCEPTION)
Main PID: 1290 (code=exited, status=255/EXCEPTION)
Status: "Starting process..."
May 21 12:39:46 lxsvr systemd[1]: Starting Samba SMB Daemon...
May 21 12:39:47 lxsvr systemd[1]: smbd.service: Main process exited, code=exited, status=255/EXCEPTION
May 21 12:39:47 lxsvr systemd[1]: smbd.service: Failed with result 'exit-code'.
May 21 12:39:47 lxsvr systemd[1]: Failed to start Samba SMB Daemon.
root@lxsvr:/home/adminserver# service winbind status
winbind.service - Samba Winbind Daemon
Loaded: loaded (/lib/systemd/system/winbind.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Thu 2020-05-21 12:40:07 CEST; 6min ago
Docs: man:winbindd(8)
man:samba(7)
man:smb.conf(5)
Process: 1301 ExecStart=/usr/sbin/winbindd --foreground --no-process-group $WINBINDOPTIONS (code=exited, status=1/FAILURE)
Main PID: 1301 (code=exited, status=1/FAILURE)
Status: "Starting process..."
May 21 12:40:07 lxsvr systemd[1]: Starting Samba Winbind Daemon...
May 21 12:40:07 lxsvr systemd[1]: winbind.service: Main process exited, code=exited, status=1/FAILURE
May 21 12:40:07 lxsvr systemd[1]: winbind.service: Failed with result 'exit-code'.
May 21 12:40:07 lxsvr systemd[1]: Failed to start Samba Winbind Daemon.If I try to restart smbd service:
Code:root@lxsvr:/home/adminserver# service smbd restart
Job for smbd.service failed because the control process exited with error code.
See "systemctl status smbd.service" and "journalctl -xe" for details.And jounalctl -xe shows:
Code:root@lxsvr:/home/adminserver# journalctl -xe
-- A new session with the ID 3 has been created for the user adminserver.
--
-- The leading process of the session is 855.
May 21 12:48:37 lxsvr systemd[1]: Started Session 3 of user adminserver.
-- Subject: A start job for unit session-3.scope has finished successfully
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
--
-- A start job for unit session-3.scope has finished successfully.
--
-- The job identifier is 667.
May 21 12:48:46 lxsvr sudo[1520]: pam_unix(sudo:auth): Couldn't open /etc/securetty: No such file or directory
May 21 12:48:50 lxsvr sudo[1520]: pam_unix(sudo:auth): Couldn't open /etc/securetty: No such file or directory
May 21 12:48:50 lxsvr sudo[1520]: adminserver : TTY=tty1 ; PWD=/home/adminserver ; USER=root ; COMMAND=/usr/bin/su
May 21 12:48:50 lxsvr sudo[1520]: pam_unix(sudo:session): session opened for user root by adminserver(uid=0)
May 21 12:48:50 lxsvr su[1527]: (to root) adminserver on tty1
May 21 12:48:50 lxsvr su[1527]: pam_unix(su:session): session opened for user root by adminserver(uid=0)
May 21 12:55:39 lxsvr systemd[1]: Starting Samba SMB Daemon...
-- Subject: A start job for unit smbd.service has begun execution
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
--
-- A start job for unit smbd.service has begun execution.
--
-- The job identifier is 762.
May 21 12:55:39 lxsvr systemd[1]: smbd.service: Main process exited, code=exited, status=255/EXCEPTION
-- Subject: Unit process exited
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
--
-- An ExecStart= process belonging to unit smbd.service has exited.
--
-- The process' exit code is 'exited' and its exit status is 255.
May 21 12:55:39 lxsvr systemd[1]: smbd.service: Failed with result 'exit-code'.
-- Subject: Unit failed
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
--
-- The unit smbd.service has entered the 'failed' state with result 'exit-code'.
May 21 12:55:39 lxsvr systemd[1]: Failed to start Samba SMB Daemon.
-- Subject: A start job for unit smbd.service has failed
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
--
-- A start job for unit smbd.service has finished with a failure.
--
-- The job identifier is 762 and the job result is failed.
-- A new session with the ID 3 has been created for the user adminserver.
--
-- The leading process of the session is 855.
May 21 12:48:37 lxsvr systemd[1]: Started Session 3 of user adminserver.
-- Subject: A start job for unit session-3.scope has finished successfully
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
--
-- A start job for unit session-3.scope has finished successfully.
--
-- The job identifier is 667.
May 21 12:48:46 lxsvr sudo[1520]: pam_unix(sudo:auth): Couldn't open /etc/securetty: No such file or directory
May 21 12:48:50 lxsvr sudo[1520]: pam_unix(sudo:auth): Couldn't open /etc/securetty: No such file or directory
May 21 12:48:50 lxsvr sudo[1520]: adminserver : TTY=tty1 ; PWD=/home/adminserver ; USER=root ; COMMAND=/usr/bin/su
May 21 12:48:50 lxsvr sudo[1520]: pam_unix(sudo:session): session opened for user root by adminserver(uid=0)
May 21 12:48:50 lxsvr su[1527]: (to root) adminserver on tty1
May 21 12:48:50 lxsvr su[1527]: pam_unix(su:session): session opened for user root by adminserver(uid=0)
May 21 12:55:39 lxsvr systemd[1]: Starting Samba SMB Daemon...
-- Subject: A start job for unit smbd.service has begun execution
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
--
-- A start job for unit smbd.service has begun execution.
--
-- The job identifier is 762.
May 21 12:55:39 lxsvr systemd[1]: smbd.service: Main process exited, code=exited, status=255/EXCEPTION
-- Subject: Unit process exited
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
--
-- An ExecStart= process belonging to unit smbd.service has exited.
--
-- The process' exit code is 'exited' and its exit status is 255.
May 21 12:55:39 lxsvr systemd[1]: smbd.service: Failed with result 'exit-code'.
-- Subject: Unit failed
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
--
-- The unit smbd.service has entered the 'failed' state with result 'exit-code'.
May 21 12:55:39 lxsvr systemd[1]: Failed to start Samba SMB Daemon.
-- Subject: A start job for unit smbd.service has failed
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
--
-- A start job for unit smbd.service has finished with a failure.
--
-- The job identifier is 762 and the job result is failed.And another problem is for winbind service
Code:root@lxsvr:/home/adminserver# service windbind restart
Failed to restart windbind.service: Unit windbind.service not found.May someone help me about? If this services not run then I can't join to AD with order "net join ads -U administrador".
Thanks.


I'm trying to join Ubuntu server 20.04 to old AD Windows 2003 server.
I follow this guide: https://elbinario.net/2019/02/13/int...ive-directory/
All seems ok until check status of smbd and winbind, that failed.
Code:root@lxsvr:/home/adminserver# service smbd status
smbd.service - Samba SMB Daemon
Loaded: loaded (/lib/systemd/system/smbd.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Thu 2020-05-21 12:39:47 CEST; 5min ago
Docs: man:smbd(8)
man:samba(7)
man:smb.conf(5)
Process: 1272 ExecStartPre=/usr/share/samba/update-apparmor-samba-profile (code=exited, status=0/SUCCESS)
Process: 1290 ExecStart=/usr/sbin/smbd --foreground --no-process-group $SMBDOPTIONS (code=exited, status=255/EXCEPTION)
Main PID: 1290 (code=exited, status=255/EXCEPTION)
Status: "Starting process..."
May 21 12:39:46 lxsvr systemd[1]: Starting Samba SMB Daemon...
May 21 12:39:47 lxsvr systemd[1]: smbd.service: Main process exited, code=exited, status=255/EXCEPTION
May 21 12:39:47 lxsvr systemd[1]: smbd.service: Failed with result 'exit-code'.
May 21 12:39:47 lxsvr systemd[1]: Failed to start Samba SMB Daemon.
root@lxsvr:/home/adminserver# service winbind status
winbind.service - Samba Winbind Daemon
Loaded: loaded (/lib/systemd/system/winbind.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Thu 2020-05-21 12:40:07 CEST; 6min ago
Docs: man:winbindd(8)
man:samba(7)
man:smb.conf(5)
Process: 1301 ExecStart=/usr/sbin/winbindd --foreground --no-process-group $WINBINDOPTIONS (code=exited, status=1/FAILURE)
Main PID: 1301 (code=exited, status=1/FAILURE)
Status: "Starting process..."
May 21 12:40:07 lxsvr systemd[1]: Starting Samba Winbind Daemon...
May 21 12:40:07 lxsvr systemd[1]: winbind.service: Main process exited, code=exited, status=1/FAILURE
May 21 12:40:07 lxsvr systemd[1]: winbind.service: Failed with result 'exit-code'.
May 21 12:40:07 lxsvr systemd[1]: Failed to start Samba Winbind Daemon.If I try to restart smbd service:
Code:root@lxsvr:/home/adminserver# service smbd restart
Job for smbd.service failed because the control process exited with error code.
See "systemctl status smbd.service" and "journalctl -xe" for details.And jounalctl -xe shows:
Code:root@lxsvr:/home/adminserver# journalctl -xe
-- A new session with the ID 3 has been created for the user adminserver.
--
-- The leading process of the session is 855.
May 21 12:48:37 lxsvr systemd[1]: Started Session 3 of user adminserver.
-- Subject: A start job for unit session-3.scope has finished successfully
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
--
-- A start job for unit session-3.scope has finished successfully.
--
-- The job identifier is 667.
May 21 12:48:46 lxsvr sudo[1520]: pam_unix(sudo:auth): Couldn't open /etc/securetty: No such file or directory
May 21 12:48:50 lxsvr sudo[1520]: pam_unix(sudo:auth): Couldn't open /etc/securetty: No such file or directory
May 21 12:48:50 lxsvr sudo[1520]: adminserver : TTY=tty1 ; PWD=/home/adminserver ; USER=root ; COMMAND=/usr/bin/su
May 21 12:48:50 lxsvr sudo[1520]: pam_unix(sudo:session): session opened for user root by adminserver(uid=0)
May 21 12:48:50 lxsvr su[1527]: (to root) adminserver on tty1
May 21 12:48:50 lxsvr su[1527]: pam_unix(su:session): session opened for user root by adminserver(uid=0)
May 21 12:55:39 lxsvr systemd[1]: Starting Samba SMB Daemon...
-- Subject: A start job for unit smbd.service has begun execution
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
--
-- A start job for unit smbd.service has begun execution.
--
-- The job identifier is 762.
May 21 12:55:39 lxsvr systemd[1]: smbd.service: Main process exited, code=exited, status=255/EXCEPTION
-- Subject: Unit process exited
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
--
-- An ExecStart= process belonging to unit smbd.service has exited.
--
-- The process' exit code is 'exited' and its exit status is 255.
May 21 12:55:39 lxsvr systemd[1]: smbd.service: Failed with result 'exit-code'.
-- Subject: Unit failed
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
--
-- The unit smbd.service has entered the 'failed' state with result 'exit-code'.
May 21 12:55:39 lxsvr systemd[1]: Failed to start Samba SMB Daemon.
-- Subject: A start job for unit smbd.service has failed
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
--
-- A start job for unit smbd.service has finished with a failure.
--
-- The job identifier is 762 and the job result is failed.
-- A new session with the ID 3 has been created for the user adminserver.
--
-- The leading process of the session is 855.
May 21 12:48:37 lxsvr systemd[1]: Started Session 3 of user adminserver.
-- Subject: A start job for unit session-3.scope has finished successfully
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
--
-- A start job for unit session-3.scope has finished successfully.
--
-- The job identifier is 667.
May 21 12:48:46 lxsvr sudo[1520]: pam_unix(sudo:auth): Couldn't open /etc/securetty: No such file or directory
May 21 12:48:50 lxsvr sudo[1520]: pam_unix(sudo:auth): Couldn't open /etc/securetty: No such file or directory
May 21 12:48:50 lxsvr sudo[1520]: adminserver : TTY=tty1 ; PWD=/home/adminserver ; USER=root ; COMMAND=/usr/bin/su
May 21 12:48:50 lxsvr sudo[1520]: pam_unix(sudo:session): session opened for user root by adminserver(uid=0)
May 21 12:48:50 lxsvr su[1527]: (to root) adminserver on tty1
May 21 12:48:50 lxsvr su[1527]: pam_unix(su:session): session opened for user root by adminserver(uid=0)
May 21 12:55:39 lxsvr systemd[1]: Starting Samba SMB Daemon...
-- Subject: A start job for unit smbd.service has begun execution
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
--
-- A start job for unit smbd.service has begun execution.
--
-- The job identifier is 762.
May 21 12:55:39 lxsvr systemd[1]: smbd.service: Main process exited, code=exited, status=255/EXCEPTION
-- Subject: Unit process exited
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
--
-- An ExecStart= process belonging to unit smbd.service has exited.
--
-- The process' exit code is 'exited' and its exit status is 255.
May 21 12:55:39 lxsvr systemd[1]: smbd.service: Failed with result 'exit-code'.
-- Subject: Unit failed
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
--
-- The unit smbd.service has entered the 'failed' state with result 'exit-code'.
May 21 12:55:39 lxsvr systemd[1]: Failed to start Samba SMB Daemon.
-- Subject: A start job for unit smbd.service has failed
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
--
-- A start job for unit smbd.service has finished with a failure.
--
-- The job identifier is 762 and the job result is failed.And another problem is for winbind service
Code:root@lxsvr:/home/adminserver# service windbind restart
Failed to restart windbind.service: Unit windbind.service not found.May someone help me about? If this services not run then I can't join to AD with order "net join ads -U administrador".
Thanks.