can't start smbd after install samba posix branch
Xiaoli Feng
xifeng at redhat.com
Fri Oct 30 02:14:27 UTC 2020
Hi,
After add NotifyAccess=all in Unit section. smbd still can't start.
Oct 29 22:11:30 hp-dl360g9-12.rhts.eng.pek2.redhat.com systemd[1]: /usr/lib/systemd/system/smb.service:6: Unknown lvalue 'NotifyAccess' in section 'Unit'
smb.services:
# cat /usr/lib/systemd/system/smb.service
[Unit]
Description=Samba SMB Daemon
Documentation=man:smbd(8) man:samba(7) man:smb.conf(5)
Wants=network-online.target
After=network.target network-online.target nmb.service winbind.service
NotifyAccess=all
[Service]
Type=notify
NotifyAccess=all
PIDFile=/run/smbd.pid
LimitNOFILE=16384
EnvironmentFile=-/etc/sysconfig/samba
ExecStart=/usr/local/samba/sbin/smbd --foreground --no-process-group $SMBDOPTIONS
ExecReload=/bin/kill -HUP $MAINPID
LimitCORE=infinity
Environment=KRB5CCNAME=FILE:/run/samba/krb5cc_samba
[Install]
WantedBy=multi-user.target
----- Original Message -----
> From: "L. van Belle" <belle at samba.org>
> To: "Xiaoli Feng" <xifeng at redhat.com>
> Cc: samba-technical at lists.samba.org
> Sent: Friday, October 30, 2020 12:07:35 AM
> Subject: RE: can't start smbd after install samba posix branch
>
> See: https://bugzilla.samba.org/show_bug.cgi?id=14552
>
> This might help, quick test is
>
> systemctl edit smbd
> Add
>
> [Unit]
> NotifyAccess=all
>
>
> Greetz,
>
> Louis
>
>
>
> > -----Oorspronkelijk bericht-----
> > Van: samba-technical
> > [mailto:samba-technical-bounces at lists.samba.org] Namens
> > Xiaoli Feng via samba-technical
> > Verzonden: donderdag 29 oktober 2020 16:43
> > Aan: samba-technical; CIFS
> > CC: jra at samba.org; Ronnie Sahlberg
> > Onderwerp: can't start smbd after install samba posix branch
> >
> > Hello folks,
> >
> > I try to install samba posix branch in RHEL8. But failed to
> > start smbd daemon.
> > Does anyone know the reason? or what else do I miss?
> >
> > #git clone git://git.samba.org/jra/samba
> > #git check -b posix remotes/origin/master-smb2
> > #./configure --prefix=/usr --enable-fhs
> > #make -j6
> > #make install
> > #smbd -D
> > # echo $?
> > 1
> > # smbd -D -d 10
> > INFO: Current debug levels:
> > all: 10
> > tdb: 10
> > printdrivers: 10
> > lanman: 10
> > smb: 10
> > rpc_parse: 10
> > rpc_srv: 10
> > rpc_cli: 10
> > passdb: 10
> > sam: 10
> > auth: 10
> > winbind: 10
> > vfs: 10
> > idmap: 10
> > quota: 10
> > acls: 10
> > locking: 10
> > msdfs: 10
> > dmapi: 10
> > registry: 10
> > scavenger: 10
> > dns: 10
> > ldb: 10
> > tevent: 10
> > auth_audit: 10
> > auth_json_audit: 10
> > kerberos: 10
> > drs_repl: 10
> > smb2: 10
> > smb2_credits: 10
> > dsdb_audit: 10
> > dsdb_json_audit: 10
> > dsdb_password_audit: 10
> > dsdb_password_json_audit: 10
> > dsdb_transaction_audit: 10
> > dsdb_transaction_json_audit: 10
> > dsdb_group_audit: 10
> > dsdb_group_json_audit: 10
> > [root at hp-dl360g9-12 ~]# echo $?
> > 1
> >
> > I don't find any usefull log. Then I use systemd to start
> > smbd services. Show this error:
> > -- Unit smb.service has begun starting up.
> > Oct 29 11:36:47 hp-dl360g9-12.rhts.eng.pek2.redhat.com
> > systemd[1]: smb.service: Main process exited, code=exited,
> > status=1/FAILURE
> > Oct 29 11:36:47 hp-dl360g9-12.rhts.eng.pek2.redhat.com
> > systemd[1]: smb.service: Failed with result 'exit-code'.
> > -- Subject: Unit failed
> > -- Defined-By: systemd
> > -- Support: https://access.redhat.com/support
> > --
> > -- The unit smb.service has entered the 'failed' state with
> > result 'exit-code'.
> > Oct 29 11:36:47 hp-dl360g9-12.rhts.eng.pek2.redhat.com
> > systemd[1]: Failed to start Samba SMB Daemon.
> > -- Subject: Unit smb.service has failed
> >
> >
> >
> > Thanks.
> >
> >
> >
> >
> >
>
>
More information about the samba-technical
mailing list