*BSD News Article 54176


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!news.rmit.EDU.AU!goanna.cs.rmit.EDU.AU!munnari.OZ.AU!spool.mu.edu!howland.reston.ans.net!swrinde!cssun.mathcs.emory.edu!gatech2!news.sprintlink.net!news1.channel1.com!user1.channel1.com!kevin
From: kevin@user1.channel1.com (Kevin J. Rocque)
Newsgroups: comp.unix.bsd.freebsd.misc,comp.unix.admin
Subject: Default permissions within dir.
Date: 9 Nov 1995 18:34:41 GMT
Organization: Channel 1 Communications
Lines: 16
Message-ID: <47thk2$b4o@news1.channel1.com>
NNTP-Posting-Host: user1.channel1.com
Keywords: Chmod, SGID, SUID
X-Newsreader: TIN [version 1.2 PL2]
Xref: euryale.cc.adfa.oz.au comp.unix.bsd.freebsd.misc:8335 comp.unix.admin:34593

I am trying to set up a directory so that the permission is
the same for every new file, regardless of the user's umask
setting.  This situation is analogous to chmod g+s /path/dir
where dir is a directory.  Every file in the directory dir
will have the same group, no matter what user created the
file.  I want the same type of thing but for permissions
on files in a dir.

I know one solution is to write a script to chmod the files
individually, but I do not want to do that.  I also would
like to avoid having the user chmod the file after creating
a new one.  Some users will undoubtedly forget to do this.

Thanks,
Kevin
kevin@channel1.us1.com