Re: how to control create permissions in a dir?

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

 



On Tue, 2005-10-25 at 15:46 -0700, Craig White wrote:
> On Tue, 2005-10-25 at 15:58 -0500, Christopher J. Bottaro wrote:
> > tlc wrote:
> > 
> > > On Tue, 2005-10-25 at 14:19 -0500, Christopher J. Bottaro wrote:
> > >> I have a dir /home/music which is shared by all my users.  I want every
> > >> file created under /home/music to have 666 permissions, no matter who
> > >> creates it, and every dir created under /home/music to have 777
> > >> permissions, no
> > >> matter who creates it.  How do I do this?
> > >> 
> > >> Thank you for the help.
> > >> 
> > > are these going to be local users or samba users? If they are smb users
> > > you can set that up in the conf file.
> > 
> > Local users, not samba users.
> ----
> I know of no way to get this done without changing basic behavior.
> 
> You could change the default umask for all the users, default umask is
> 022 which strips the write permission on the files that they save. This
> isn't recommended procedure since that means that everyone always writes
> files that everyone else can read. If you want to travel down this path,
> it's likely bash shell and /etc/bashrc sets it but I wouldn't go there.
> 

Why not just make all of the users part of the same group?  I checked my
FC3 system and as a non-root user, I have a umask setting of 002 which
means I create directories that are "rwx" and files that are "rw" with
respect to everyone in the same group as me.  This should work just
fine.  Even if the umask settings are currently 022 on the system in
question, they could be changed to 002 and not sacrifice much with
respect to security.


Tom


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux