FS#44357 - Can't start smbd due to missing directory: /var/run/samba
Attached to Project:
Arch Linux
Opened by Mitch Humpherys (mitch_feaster) - Thursday, 26 March 2015, 20:32 GMT
Last edited by Doug Newgard (Scimmia) - Monday, 30 March 2015, 04:00 GMT
Opened by Mitch Humpherys (mitch_feaster) - Thursday, 26 March 2015, 20:32 GMT
Last edited by Doug Newgard (Scimmia) - Monday, 30 March 2015, 04:00 GMT
|
Details
Description:
Samba fails to start due to the directory /var/run/samba not existing. The error message reported by `systemctl status smbd.service -l' is: ● smbd.service - Samba SMB/CIFS server Loaded: loaded (/usr/lib/systemd/system/smbd.service; enabled; vendor preset: disabled) Active: failed (Result: exit-code) since Mon 2015-03-23 10:18:44 PDT; 3 days ago Process: 912 ExecStart=/usr/bin/smbd -D (code=exited, status=0/SUCCESS) Main PID: 1002 (code=exited, status=255) Mar 23 10:18:44 mitchelh-linux smbd[1002]: [2015/03/23 10:18:44.577174, 0] ../lib/util/util.c:220(directory_create_or_exist) Mar 23 10:18:44 mitchelh-linux smbd[1002]: mkdir failed on directory /var/run/samba/ncalrpc: No such file or directory Mar 23 10:18:44 mitchelh-linux smbd[1002]: [2015/03/23 10:18:44.634165, 0] ../source3/smbd/server.c:1511(main) Mar 23 10:18:44 mitchelh-linux smbd[1002]: Failed to create pipe directory /var/run/samba/ncalrpc - No such file or directory Mar 23 10:18:44 mitchelh-linux systemd[1]: smbd.service: main process exited, code=exited, status=255/n/a Mar 23 10:18:44 mitchelh-linux systemd[1]: Unit smbd.service entered failed state. Mar 23 10:18:44 mitchelh-linux systemd[1]: smbd.service failed. If I first create the directory with: # mkdir /var/run/samba then samba is able to start successfully. Additional info: * package version: samba 4.2.0-1 * config and/or log files etc. See above. Steps to reproduce: sudo systemctl start smbd.service |
This task depends upon
EDIT: If you have deleted the /var/run -> ../run symlink and made it a standard dir, that could be the problem.