[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: File permissions messing up?

Thanks, both to Ben and Michael for replying.  It was the Samba setting
you mentioned.  Everything okay now.  

Was wondering why one of you said 0777 and the other 777?  Is that the
difference is viewing it from the smb.conf file as opposed to viewing it
via SWAT?

More reading to do about samba to make sure all else is set up
correctly.  With the new Samba book out in Feb next year I was hoping to
wait until then but best start now.  Another book I'm waiting for is
Mark Minai's Linux for Windows Administrators, a revision of one he put
out several years ago.  The old one mainly dealt with Mandrake, the new
one redhat 7.3.  I'm hoping it will help me get more familiar with the
Linux way of doing things, making the transition a little easier :)

Thanks again for the help.


On Thu, 2002-12-12 at 23:48, Michael Knepher wrote:
> On Thu, 2002-12-12 at 14:43, Neil Loffhagen wrote:
> > Hi,
> > 
> > Something is going wrong with the file permissions on our RH8 box
> > running Samba.  We have set up a share that is being accessed by windows
> > 98 clients.  When a client opens a file and changes it, it then becomes
> > the owner and the file is then read only for everyone one else and these
> > are files that need to be shared.  I used the "chmon g+s directory"
> > which I think is supposed to make it so that all files created in the
> > directory maintain the same group membership.  
> > 
> These are samba issues. You'll need to modify your smb.conf file to
> force file permissions. You can set up directory and create masks in the
> [globals] section like so:
> directory mode = 0777
> create mode = 0666
> These will keep files and directories world readable. You may also want
> to force the files to belong to any group or user you want with 
> force group = groupname
> force user = username
> See http://us1.samba.org/samba/docs/man/smb.conf.5.html#FORCEGROUP for
> more info
> > Any pointers much appreciated.
> > 
> > Thanks,
> > 
> > Neil.
> -- 
> Michael Knepher <limbo bluethingy com>

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]