Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
[root@?-?-?-?-on-nets smb01]# systemctl status smb.service
● smb.service - Samba SMB Daemon
Loaded: loaded (/usr/lib/systemd/system/smb.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Sun 2019-08-04 19:43:18 HKT; 34min ago
Docs: man:smbd(8)
man:samba(7)
man:smb.conf(5)
Process: 1367 ExecStart=/usr/sbin/smbd --foreground --no-process-group $SMBDOPTIONS (code=exited, status=1/FAILURE)
Main PID: 1367 (code=exited, status=1/FAILURE)
Aug 04 19:43:16 ?-?-?-?-on-nets.com systemd[1]: Starting Samba SMB Daemon...
Aug 04 19:43:17 ?-?-?-?-on-nets.com systemd[1]: smb.service: main process exited, code=exited, sta...URE
Aug 04 19:43:18 ?-?-?-?-on-nets.com systemd[1]: Failed to start Samba SMB Daemon.
Aug 04 19:43:18 ?-?-?-?-on-nets.com systemd[1]: Unit smb.service entered failed state.
Aug 04 19:43:18 ?-?-?-?-on-nets.com systemd[1]: smb.service failed.
Hint: Some lines were ellipsized, use -l to show in full.
[root@?-?-?-?-on-nets smb01]# systemctl -l restart smb
Job for smb.service failed because the control process exited with error code. See "systemctl status smb.service" and "journalctl -xe" for details.
[root@?-?-?-?-on-nets smb01]# journalctl -xe
Aug 04 20:12:54 ?-?-?-?-on-nets.com sshd[3702]: pam_unix(sshd:auth): authentication failure; logname= ui
Aug 04 20:12:56 ?-?-?-?-on-nets.com sshd[3702]: Failed password for invalid user earl from 219.143.153.2
Aug 04 20:12:56 ?-?-?-?-on-nets.com sshd[3702]: Received disconnect from 219.143.153.229 port 58590:11:
Aug 04 20:12:56 ?-?-?-?-on-nets.com sshd[3702]: Disconnected from 219.143.153.229 port 58590 [preauth]
Aug 04 20:17:02 ?-?-?-?-on-nets.com dbus[774]: [system] Activating service name='org.freedesktop.problem
Aug 04 20:17:02 ?-?-?-?-on-nets.com dbus[774]: [system] Successfully activated service 'org.freedesktop.
Aug 04 20:17:06 ?-?-?-?-on-nets.com gnome-shell[2653]: JS ERROR: Exception in callback for signal: posit
getCurrentRect@resource:///org/gnome/shell/ui/key
wrapper@resource:///org/gnome/gjs/modules/_legacy
_onFocusPositionChanged@resource:///org/gnome/she
wrapper@resource:///org/gnome/gjs/modules/_legacy
_emit@resource:///org/gnome/gjs/modules/signals.j
_setCurrentWindow/this._currentWindowPositionId<@
Aug 04 20:17:16 ?-?-?-?-on-nets.com su[3819]: (to root) smb01 on pts/1
Aug 04 20:17:16 ?-?-?-?-on-nets.com su[3819]: pam_unix(su:session): session opened for user root by smb0
Aug 04 20:18:37 ?-?-?-?-on-nets.com polkitd[788]: Registered Authentication Agent for unix-process:3899:
Aug 04 20:18:37 ?-?-?-?-on-nets.com systemd[1]: Starting Samba SMB Daemon...
-- Subject: Unit smb.service has begun start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman.../systemd-devel
--
-- Unit smb.service has begun starting up.
Aug 04 20:18:37 ?-?-?-?-on-nets.com systemd[1]: smb.service: main process exited, code=exited, status=1/
Aug 04 20:18:37 ?-?-?-?-on-nets.com systemd[1]: Failed to start Samba SMB Daemon.
-- Subject: Unit smb.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman.../systemd-devel
--
-- Unit smb.service has failed.
--
-- The result is failed.
Aug 04 20:18:37 ?-?-?-?-on-nets.com systemd[1]: Unit smb.service entered failed state.
Aug 04 20:18:37 ?-?-?-?-on-nets.com systemd[1]: smb.service failed.
Aug 04 20:18:37 ?-?-?-?-on-nets.com polkitd[788]: Unregistered Authentication Agent for unix-process:389
lines 2848-2881/2881 (END)
I've removed all comments within smb.conf file but I've still got the following
Quote:
[root@?-?-?-?-on-nets smb01]# systemctl start smb
Job for smb.service failed because the control process exited with error code. See "systemctl status smb.service" and "journalctl -xe" for details.
[root@?-?-?-?-on-nets smb01]# systemctl status smb.service
● smb.service - Samba SMB Daemon
Loaded: loaded (/usr/lib/systemd/system/smb.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Fri 2019-08-23 10:16:11 HKT; 23s ago
Docs: man:smbd(8)
man:samba(7)
man:smb.conf(5)
Process: 4345 ExecStart=/usr/sbin/smbd --foreground --no-process-group $SMBDOPTIONS (code=exited, status=1/FAILURE)
Main PID: 4345 (code=exited, status=1/FAILURE)
Aug 23 10:16:11 ?-?-?-?-on-nets.com systemd[1]: Starting Samba SMB Daemon...
Aug 23 10:16:11 ?-?-?-?-on-nets.com systemd[1]: smb.service: main process exited, code=exited, stat...URE
Aug 23 10:16:11 ?-?-?-?-on-nets.com systemd[1]: Failed to start Samba SMB Daemon.
Aug 23 10:16:11 ?-?-?-?-on-nets.com systemd[1]: Unit smb.service entered failed state.
Aug 23 10:16:11 ?-?-?-?-on-nets.com systemd[1]: smb.service failed.
Hint: Some lines were ellipsized, use -l to show in full.
[root@?-?-?-?-on-nets smb01]# journalctl -xe
-- Support: http://lists.freedesktop.org/mailman.../systemd-devel
--
-- Unit nmb.service has begun starting up.
Aug 23 10:16:06 ?-?-?-?-on-nets.com systemd[1]: nmb.service: main process exited, code=exited, status=1/F
Aug 23 10:16:06 ?-?-?-?-on-nets.com systemd[1]: Failed to start Samba NMB Daemon.
-- Subject: Unit nmb.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman.../systemd-devel
--
-- Unit nmb.service has failed.
--
-- The result is failed.
Aug 23 10:16:06 ?-?-?-?-on-nets.com systemd[1]: Unit nmb.service entered failed state.
Aug 23 10:16:06 ?-?-?-?-on-nets.com systemd[1]: nmb.service failed.
Aug 23 10:16:06 ?-?-?-?-on-nets.com polkitd[796]: Unregistered Authentication Agent for unix-process:4317
Aug 23 10:16:11 ?-?-?-?-on-nets.com polkitd[796]: Registered Authentication Agent for unix-process:4339:3
Aug 23 10:16:11 ?-?-?-?-on-nets.com systemd[1]: Starting Samba SMB Daemon...
-- Subject: Unit smb.service has begun start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman.../systemd-devel
--
-- Unit smb.service has begun starting up.
Aug 23 10:16:11 ?-?-?-?-on-nets.com systemd[1]: smb.service: main process exited, code=exited, status=1/F
Aug 23 10:16:11 ?-?-?-?-on-nets.com systemd[1]: Failed to start Samba SMB Daemon.
-- Subject: Unit smb.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman.../systemd-devel
--
-- Unit smb.service has failed.
--
-- The result is failed.
Aug 23 10:16:11 ?-?-?-?-on-nets.com systemd[1]: Unit smb.service entered failed state.
Aug 23 10:16:11 ?-?-?-?-on-nets.com systemd[1]: smb.service failed.
Aug 23 10:16:11 ?-?-?-?-on-nets.com polkitd[796]: Unregistered Authentication Agent for unix-process:4339
lines 2904-2937/2937 (END)
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.