adam_xu at adagene.com.cn
2018-Jun-21 07:38 UTC
[Samba] hosts allow option is not applaying without restart smbd
Hi, Rowland, I have the same issue too. I can't find any useful info after I ran 'man smbcontrol', could you give us a clearer answer. Thanks. Yours Adam From: Rowland Penny via samba Date: 2018-06-20 17:40 To: samba Subject: Re: [Samba] hosts allow option is not applaying without restart smbd On Wed, 20 Jun 2018 16:22:36 +0700 Vladimir Eltsov via samba <samba at lists.samba.org> wrote:> Hello. > > I have a lot of servers with CentOS 7 and samba 4 (classic domain > controllers), differnt versions (4.4.4, 4.6.2...). > > I have found that changes hosts allow option are not applaying without > restart smbd. > > I have tried: > systemctl reload smbd.service > killall -1 smbd > pkill -HUP smbd > smbcontrol smbd reload-config > > but client I have added does not have access. > > I see strange messages in system log: > > Jun 20 15:50:20 nvkzsrv smbd[29943]: [2018/06/20 15:50:20.705223, 0] > ../source3/lib/access.c:338(allow_access) > Jun 20 15:50:20 nvkzsrv smbd[29943]: Denied connection from > 192.168.36.36 (192.168.36.36) > > Where 192.168.36.36 is an address I have added in hosts allow. > > Changes are applaying when I restart smbd, but I can not do it while > there are a lot of opened files on servers. > > Can someone explain me what does it mean? > > How can I applay changes without restart smbd? > > > Thanks in advance. >run 'man smbcontrol' Rowland -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
john doe
2018-Jun-21 07:54 UTC
[Samba] hosts allow option is not applaying without restart smbd
Bottom posting On 6/21/2018 9:38 AM, adam_xu--- via samba wrote:> Hi, Rowland, I have the same issue too. I can't find any useful info after I ran 'man smbcontrol', could you give us a clearer answer. Thanks. > > > > Yours Adam > > From: Rowland Penny via samba > Date: 2018-06-20 17:40 > To: samba > Subject: Re: [Samba] hosts allow option is not applaying without restart smbd > On Wed, 20 Jun 2018 16:22:36 +0700 > Vladimir Eltsov via samba <samba at lists.samba.org> wrote: > >> Hello. >> >> I have a lot of servers with CentOS 7 and samba 4 (classic domain >> controllers), differnt versions (4.4.4, 4.6.2...). >> >> I have found that changes hosts allow option are not applaying without >> restart smbd. >> >> I have tried: >> systemctl reload smbd.service >> killall -1 smbd >> pkill -HUP smbd >> smbcontrol smbd reload-config >> >> but client I have added does not have access. >> >> I see strange messages in system log: >> >> Jun 20 15:50:20 nvkzsrv smbd[29943]: [2018/06/20 15:50:20.705223, 0] >> ../source3/lib/access.c:338(allow_access) >> Jun 20 15:50:20 nvkzsrv smbd[29943]: Denied connection from >> 192.168.36.36 (192.168.36.36) >> >> Where 192.168.36.36 is an address I have added in hosts allow. >> >> Changes are applaying when I restart smbd, but I can not do it while >> there are a lot of opened files on servers. >> >> Can someone explain me what does it mean? >> >> How can I applay changes without restart smbd? >> >> >> Thanks in advance. >> > > run 'man smbcontrol' > > Rowland > >My guess would be: From: https://www.samba.org/samba/docs/current/man-html/smbcontrol.1.html "reload-config Force daemon to reload smb.conf configuration file. Can be sent to smbd, nmbd, or winbindd." or: "--option=<name>=<value> Set the smb.conf(5) option "<name>" to value "<value>" from the command line. This overrides compiled-in defaults and options read from the configuration file." -- John Doe
Rowland Penny
2018-Jun-21 08:27 UTC
[Samba] hosts allow option is not applaying without restart smbd
On Thu, 21 Jun 2018 09:54:06 +0200 john doe via samba <samba at lists.samba.org> wrote:> Bottom posting > > On 6/21/2018 9:38 AM, adam_xu--- via samba wrote: > > Hi, Rowland, I have the same issue too. I can't find any useful > > info after I ran 'man smbcontrol', could you give us a clearer > > answer. Thanks. > > > > > > > > Yours Adam > > > > From: Rowland Penny via samba > > Date: 2018-06-20 17:40 > > To: samba > > Subject: Re: [Samba] hosts allow option is not applaying without > > restart smbd On Wed, 20 Jun 2018 16:22:36 +0700 > > Vladimir Eltsov via samba <samba at lists.samba.org> wrote: > > > >> Hello. > >> > >> I have a lot of servers with CentOS 7 and samba 4 (classic domain > >> controllers), differnt versions (4.4.4, 4.6.2...). > >> > >> I have found that changes hosts allow option are not applaying > >> without restart smbd. > >> > >> I have tried: > >> systemctl reload smbd.service > >> killall -1 smbd > >> pkill -HUP smbd > >> smbcontrol smbd reload-config > >> > >> but client I have added does not have access. > >> > >> I see strange messages in system log: > >> > >> Jun 20 15:50:20 nvkzsrv smbd[29943]: [2018/06/20 15:50:20.705223, > >> 0] ../source3/lib/access.c:338(allow_access) > >> Jun 20 15:50:20 nvkzsrv smbd[29943]: Denied connection from > >> 192.168.36.36 (192.168.36.36) > >> > >> Where 192.168.36.36 is an address I have added in hosts allow. > >> > >> Changes are applaying when I restart smbd, but I can not do it > >> while there are a lot of opened files on servers. > >> > >> Can someone explain me what does it mean? > >> > >> How can I applay changes without restart smbd? > >> > >> > >> Thanks in advance. > >> > > > > run 'man smbcontrol' > > > > Rowland > > > > > > My guess would be: > > From: > > https://www.samba.org/samba/docs/current/man-html/smbcontrol.1.html > > "reload-config > Force daemon to reload smb.conf configuration file. Can be sent to > smbd, nmbd, or winbindd." >I guess when 'man smbcontrol' was run, there was no output, probably because the Samba docs packages aren't installed ?? So, yes the above is correct. Rowland
Apparently Analagous Threads
- hosts allow option is not applaying without restart smbd
- hosts allow option is not applaying without restart smbd
- hosts allow option is not applaying without restart smbd
- hosts allow option is not applaying without restart smbd
- hosts allow option is not applaying without restart smbd