How to inform all the daemons I have modified the smb.conf file

View: New views
5 Messages — Rating Filter:   Alert me  

How to inform all the daemons I have modified the smb.conf file

by chenyun_zhou :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello, everyone
 
I edit the lp_load() of the samba source that this fuction may modify the smb.conf sometimes. How can I let all the samba  daemons know that?
 
Restarting samba service may cause all link break up.
     
Thanks!
 
 
 
--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba

Re: How to inform all the daemons I have modified the smb.conf file

by Miguel Medalha :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


>  
> I edit the lp_load() of the samba source that this fuction may modify the smb.conf sometimes. How can I let all the samba  daemons know that?
>  
Samba periodically checks the configuration file and adjusts its
behavior accordingly.

No virus found in this outgoing message.
Checked by AVG - http://www.avg.com 
Version: 8.0.138 / Virus Database: 270.5.2/1562 - Release Date: 19-07-2008 14:01

--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba

Re:Re: How to inform all the daemons I have modified the smb.conf file

by chenyun_zhou :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

>>  
>> I edit the lp_load() of the samba source that this fuction may modify the smb.conf sometimes. How can I let all the samba  daemons know that?
>>  
>Samba periodically checks the configuration file and adjusts its
>behavior accordingly.
>

 
But when I send the -HUP single, it reread smb.conf, but its permission does not affected. is there any wrong?
 
for example :
before changed
..
[test]
    path = /usr/src/test
    read only = yes
    read list = jim
 
after changed
  ...
 [test]
   path = /usr/src/test
   read only = no
   write list = jim
 
after reload the configuration file, aready connected client's permission on "test" not changed.
--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba

Re: Re: How to inform all the daemons I have modified the smb.conf file

by Volker Lendecke :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Sun, Jul 20, 2008 at 05:36:16PM +0800, chenyun_zhou wrote:
> But when I send the -HUP single, it reread smb.conf, but
> its permission does not affected. is there any wrong?

No, that's expected. The permissions on a connected share
are only evaluated at connect time. Once a client has
connected, that can't be changed until the next reconnect.

Volker


--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba

attachment0 (196 bytes) Download Attachment

Re:Re: Re: How to inform all the daemons I have modified the smb.conf file

by chenyun_zhou :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

>No, that's expected. The permissions on a connected share
>are only evaluated at connect time. Once a client has
>connected, that can't be changed until the next reconnect.
>
>Volker

But, I found something really diffrent, after change the permission of a share, and its permission will changed after a time about 1 or 2 minutes.
--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba
LightInTheBox - Buy quality products at wholesale price