Operating System - HP-UX
1835243 Members
2522 Online
110078 Solutions
New Discussion

Re: Re-read smb.conf without restarting

 
SOLVED
Go to solution
dev44
Regular Advisor

Re-read smb.conf without restarting

Hi,

We have a constant write going on from windows to our samba share on an HP-UX 11.31 system running CIFS 2.03. I had to make a change to valid users. I want to re-read the conf so that the new user can access but can't stop and start the service or it will kill the write happening. Is this possible?

Thanks
whatever
4 REPLIES 4
gstonian
Trusted Contributor
Solution

Re: Re-read smb.conf without restarting

Find the main Samba process

ps -ef | grep smbd

and located the process with the Parent PID (PPID) of 1 then give a

kill -1 to the PID

i.e.

ps -ef | grep smbd
root 14475 2481 ... smb.conf
root 2501 2481 ... smb.conf
root 2481 1 ... smb.conf
root 27309 2481 ... smb.conf
root 3168 2481 ... smb.conf

kill -1 2481
dev44
Regular Advisor

Re: Re-read smb.conf without restarting

Is the kill -1 the same as kill -HUP? and this will just re-read the config without the shares being affected?
whatever
gstonian
Trusted Contributor

Re: Re-read smb.conf without restarting

correct - I use this all the time and never hear of any issues.

Here's a 2nd opinion
http://lists.samba.org/archive/samba/1997-August/003611.html


Cheers
dev44
Regular Advisor

Re: Re-read smb.conf without restarting

Thanks gstonian!
whatever