chenyun_zhou
2008-Jul-08 17:10 UTC
[Samba] How to handle multi process open smb.conf at the time
Hi, everyone I am try to write a program to edit smb.conf, and the question is " If I open smb.conf for editing, but other process such as smbd , nmbd and winbind is reading the file, How to handle the this collision, and I want to open this file immediaetly ,and afte closing this file , tell these process to read it." Thank you!From awilliam at mdah.state.ms.us Tue Jul 8 17:26:24 2008 From: awilliam at mdah.state.ms.us (Adam Williams) Date: Tue Jul 8 17:27:14 2008 Subject: [Samba] Let IIS 6 access a Samba share on Linux In-Reply-To: <91df29a20807080355t75bdd98kff5139453ec8cf28@mail.gmail.com> References: <91df29a20807080355t75bdd98kff5139453ec8cf28@mail.gmail.com> Message-ID: <4873A340.5030505@mdah.state.ms.us> look at the samba log files, it could be a lot of things...permissions, bad username/password, etc. M?rio Gamito wrote:> Hi, > > I set this Samba server on Linux. > I need IIS 6 on a Windows 2003 server to access files on it. > > Problem is, when in Windows I try to add a (Windows) user to the > share, I get "Access Denied". > > What am I missing here ? > > Any help would be appreciated. > > Warm Regards, > M?rio Gamito >
Jeremy Allison
2008-Jul-08 17:40 UTC
[Samba] How to handle multi process open smb.conf at the time
On Wed, Jul 09, 2008 at 12:39:13AM +0800, chenyun_zhou wrote:> Hi, everyone > > I am try to write a program to edit smb.conf, and the question is " > If I open smb.conf for editing, but other process such as smbd , nmbd and winbind is reading the file, How to handle the this collision, and I want to open this file immediaetly ,and afte closing this file , tell these process to read it."Do what all other unix programs do in this circumstance. Create a temp smb.conf file and then do an atomic rename into place. The next time smbd/nmbd re-read the file (or when you tell them to do it via a MSG_SMB_CONF_UPDATED message) they'll see the new contents. Hope this helps, Jeremy.