Cannot start smb.service

General support questions
Post Reply
rtcary
Posts: 119
Joined: 2005/10/13 18:40:55
Contact:

Cannot start smb.service

Post by rtcary » 2018/03/08 20:18:19

I apparently have a permission problem, however I do not know enough to adequately interpret the problem:

Code: Select all

● smb.service - Samba SMB Daemon
   Loaded: loaded (/usr/lib/systemd/system/smb.service; enabled; vendor preset: disabled)
   Active: failed (Result: exit-code) since Thu 2018-03-08 12:04:27 PST; 4min 38s ago
  Process: 21068 ExecStart=/usr/sbin/smbd $SMBDOPTIONS (code=exited, status=1/FAILURE)
 Main PID: 21068 (code=exited, status=1/FAILURE)

Mar 08 12:04:27 centos7 systemd[1]: Starting Samba SMB Daemon...
Mar 08 12:04:27 centos7 systemd[1]: smb.service: main process exited, code=exited, status=1/FAILURE
Mar 08 12:04:27 centos7 systemd[1]: Failed to start Samba SMB Daemon.
Mar 08 12:04:27 centos7 systemd[1]: Unit smb.service entered failed state.
Mar 08 12:04:27 centos7 systemd[1]: smb.service failed.
and

Code: Select all

-- Unit sshd.service has begun starting up.
Mar 08 11:46:34 centos7 sshd[20452]: /var/empty/sshd must be owned by root and not group or world-writable.
Mar 08 11:46:34 centos7 systemd[1]: sshd.service: main process exited, code=exited, status=255/n/a
Mar 08 11:46:34 centos7 systemd[1]: Failed to start OpenSSH server daemon.
-- Subject: Unit sshd.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- Unit sshd.service has failed.
-- 
-- The result is failed.
Mar 08 11:46:34 centos7 systemd[1]: Unit sshd.service entered failed state.
Mar 08 11:46:34 centos7 systemd[1]: sshd.service failed.
/var/empty is owned by root and the group is root. The permissions apparently are 774 (drwxrwxr--).

What should the permissions be? Ownership?

Many thanks...

Todd

rtcary
Posts: 119
Joined: 2005/10/13 18:40:55
Contact:

Re: Cannot start smb.service

Post by rtcary » 2018/03/08 20:52:25

I changed the permissions to 711 and now I'm getting another set of errors that are above my pay grade:

Code: Select all

-- Unit smb.service has begun starting up.
Mar 08 12:37:02 centos7 systemd[1]: smb.service: main process exited, code=exited, status=1/FAILURE
Mar 08 12:37:02 centos7 systemd[1]: Failed to start Samba SMB Daemon.
-- Subject: Unit smb.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- Unit smb.service has failed.
-- 
-- The result is failed.
Mar 08 12:37:02 centos7 systemd[1]: Unit smb.service entered failed state.
Mar 08 12:37:02 centos7 systemd[1]: smb.service failed.
Mar 08 12:37:02 centos7 polkitd[786]: Unregistered Authentication Agent for unix-process:2921:64860 (system bus name :1.99, object path /org/freedesktop/PolicyKit1/AuthenticationAgent, locale en_US.UTF-8) (disconnected from bus)
Mar 08 12:40:01 centos7 systemd[1]: Created slice User Slice of root.
-- Subject: Unit user-0.slice has finished start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- Unit user-0.slice has finished starting up.
-- 
-- The start-up result is done.
Mar 08 12:40:01 centos7 systemd[1]: Starting User Slice of root.
-- Subject: Unit user-0.slice has begun start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- Unit user-0.slice has begun starting up.
Mar 08 12:40:01 centos7 systemd[1]: Started Session 3 of user root.
-- Subject: Unit session-3.scope has finished start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- Unit session-3.scope has finished starting up.
-- 
-- The start-up result is done.
Mar 08 12:40:01 centos7 systemd[1]: Starting Session 3 of user root.
-- Subject: Unit session-3.scope has begun start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- Unit session-3.scope has begun starting up.
Mar 08 12:40:01 centos7 CROND[2999]: (root) CMD (/usr/lib64/sa/sa1 1 1)
Mar 08 12:40:01 centos7 systemd[1]: Removed slice User Slice of root.
-- Subject: Unit user-0.slice has finished shutting down
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- Unit user-0.slice has finished shutting down.
Mar 08 12:40:01 centos7 systemd[1]: Stopping User Slice of root.
-- Subject: Unit user-0.slice has begun shutting down
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- Unit user-0.slice has begun shutting down.

Post Reply