Ask Your Question
0

upgraded from 26 to 27 now samba won't start

asked 2018-02-20 03:43:16 -0500

natem1414 gravatar image

upgraded to 27 from 26 and SMB wont start.

systemctl status smb

smb.service - Samba SMB Daemon

Loaded: loaded (/usr/lib/systemd/system/smb.service; enabled; vendor preset: disabled)

Active: failed (Result: exit-code) since Tue 2018-02-20 03:18:26 CST; 3min 45s ago

Process: 1731 ExecStart=/usr/sbin/smbd --foreground --no-process-group $SMBDOPTIONS (code=exited, status=1/FAILURE)

Main PID: 1731 (code=exited, status=1/FAILURE)

Status: "daemon failed to start: Samba cannot init server context"

Error: 13 (Permission denied)


systemd[1]: Starting Samba SMB Daemon...

smbd[1731]: [2018/02/20 03:18:24.826007, 0] ../source3/smbd/smbXsrvversion.c:93(smbXsrvversionglobalinit)

smbd[1731]: smbXsrvversionglobalinit: failed to open[/var/lib/samba/lock/smbXsrvversionglobal.tdb] - NTSTATUSINVALIDPARAMETER

smbd[1731]: [2018/02/20 03:18:24.854931, 0] ../lib/util/becomedaemon.c:111(exitdaemon)

smbd[1731]: STATUS=daemon failed to start: Samba cannot init server context, error code 13

systemd[1]: smb.service: Main process exited, code=exited, status=1/FAILURE

systemd[1]: Failed to start Samba SMB Daemon.

systemd[1]: smb.service: Unit entered failed state.

systemd[1]: smb.service: Failed with result 'exit-code'.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2018-02-21 00:14:35 -0500

natem1414 gravatar image

I found the fix. had to remove "use mmap = no" not sure why it was in there in the first place

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2018-02-20 03:43:16 -0500

Seen: 838 times

Last updated: Feb 20 '18