Under the Apache share section of smb.conf use the force user = <apache user>, and force group = <apache group> along with your security masks. So if Apache is running as user apache, group apache you could put in:
force user = apache force group = apache That way, no matter what username/password is used to authenticate, it will always access that specific share point as apache:apache once authentication is done. Cheers, Trevor Shawn Grover said: > The recent thread on file permissions reminded me I was going to ask my > permissions question.... > > I have setup a Samba share to my root HTML folder for Apache. I need to > transfer files/folders into there from my window's PC, but when I do, > the owner/group of the created folders/files is the username I used to > access the Samba share. This means that the public can't view the web > pages I'm putting in there. If I manually change the owner/group of the > files/folders to the Apache group, things work as expected (i.e. I can > view the pages in my browser). > > Is there anyway to configure Samba to ALWAYS create new folders/files > with a given owner/group? I've tried using Swat and Webmin, and have > set the security masks, but am seeing no difference. > > Suggestions? > > Thanks in advance. > > Shawn
