"samba" service unmasked in a standalone server role
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
samba (Ubuntu) |
Expired
|
Undecided
|
Unassigned |
Bug Description
# service samba start
Failed to start samba.service: Unit samba.service is masked.
ProblemType: Package
DistroRelease: Ubuntu 16.04
Package: samba 2:4.3.11+
ProcVersionSign
Uname: Linux 4.4.0-77-generic i686
NonfreeKernelMo
ApportVersion: 2.20.1-0ubuntu2.5
AptOrdering:
samba: Install
samba: Configure
NULL: ConfigurePending
Architecture: i386
Date: Fri May 5 17:42:49 2017
ErrorMessage: โพรเซสย่อย สคริปต์ post-installation ที่ติดตั้งไว้ จบการทำงานโดยคื
NmbdLog:
RelatedPackageV
dpkg 1.18.4ubuntu1.2
apt 1.2.20
SambaServerRegr
SmbConfIncluded: Yes
SmbLog:
SourcePackage: samba
Title: package samba 2:4.3.11+
UpgradeStatus: No upgrade log present (probably fresh install)
WindowsFailedCo
The "samba" systemd service should not be enabled:
พ.ค. 05 17:30:17 hostname samba[11118]: [2017/05/05 17:30:17.311253, 0] ../source4/ smbd/server. c:372(binary_ smbd_main) smbd/server. c:477(binary_ smbd_main) util/become_ daemon. c:111(exit_ daemon) smbd/server. c:372(binary_ smbd_main) smbd/server. c:477(binary_ smbd_main) util/become_ daemon. c:111(exit_ daemon)
พ.ค. 05 17:30:17 hostname samba[11118]: samba version 4.3.11-Ubuntu started.
พ.ค. 05 17:30:17 hostname samba[11118]: Copyright Andrew Tridgell and the Samba Team 1992-2015
พ.ค. 05 17:30:17 hostname samba[11119]: [2017/05/05 17:30:17.355042, 0] ../source4/
พ.ค. 05 17:30:17 hostname samba[11119]: At this time the 'samba' binary should only be used for either:
พ.ค. 05 17:30:17 hostname samba[11119]: 'server role = active directory domain controller' or to access the ntvfs file server with 'server services = +smb' or the rpc proxy with 'dcerpc endpoint servers = remote'
พ.ค. 05 17:30:17 hostname samba[11119]: You should start smbd/nmbd/winbindd instead for domain member and standalone file server tasks
พ.ค. 05 17:30:17 hostname samba[11119]: [2017/05/05 17:30:17.355198, 0] ../lib/
พ.ค. 05 17:30:17 hostname samba[11119]: STATUS=daemon failed to start: Samba detected misconfigured 'server role' and exited. Check logs for details, error code 22
พ.ค. 05 17:30:27 hostname samba[11122]: [2017/05/05 17:30:27.442565, 0] ../source4/
พ.ค. 05 17:30:27 hostname samba[11122]: samba version 4.3.11-Ubuntu started.
พ.ค. 05 17:30:27 hostname samba[11122]: Copyright Andrew Tridgell and the Samba Team 1992-2015
พ.ค. 05 17:30:27 hostname samba[11123]: [2017/05/05 17:30:27.488643, 0] ../source4/
พ.ค. 05 17:30:27 hostname samba[11123]: At this time the 'samba' binary should only be used for either:
พ.ค. 05 17:30:27 hostname samba[11123]: 'server role = active directory domain controller' or to access the ntvfs file server with 'server services = +smb' or the rpc proxy with 'dcerpc endpoint servers = remote'
พ.ค. 05 17:30:27 hostname samba[11123]: You should start smbd/nmbd/winbindd instead for domain member and standalone file server tasks
พ.ค. 05 17:30:27 hostname samba[11123]: [2017/05/05 17:30:27.488815, 0] ../lib/
พ.ค. 05 17:30:27 hostname samba[11123]: STATUS=daemon failed to start: Samba detected misconfigured 'server role' and exited. Check logs for details, error code 22
The samba service should be masked, like this:
# systemctl status samba
● samba.service
Loaded: masked (/dev/null; bad)
Active: inactive (dead)
If yours says otherwise, please mask it: system/ samba.service → /dev/null.
# systemctl mask samba
Created symlink /etc/systemd/