[TriLUG] Another silly question

Tanner Lovelace lovelace at wayfarer.org
Tue Nov 4 17:12:48 EST 2003


Joshua Gitlin wrote:
> Hello everyone...
> 
> Sorry for asking another "newbie" question... I used to know how to do 
> this but now I've forgotten. I have a directory in which I want to 
> "force" all new files to have a certain uid and gid. (or gid, at least), 
> even if the creating user's default group isn't the gid I want. (For 
> example, the group is "mygroup" but the user's default group is 
> "users"... I want the files that the user creates to have a group of 
> "mygroup" instead of "users".) How would I accomplish that?

Change the directory to be setuid or setgid based on whether you want
the user or group to do that.

Cheers,
Tanner

-- 
Tanner Lovelace | lovelace(at)wayfarer.org | http://wtl.wayfarer.org/
--*--*--*--*--*--*--*--*--*--*--*--*--*--*--*--*--*--*--*--*--*--*--
GPG Fingerprint = A66C 8660 924F 5F8C 71DA  BDD0 CE09 4F8E DE76 39D4
GPG Key can be found at http://wtl.wayfarer.org/lovelace.gpg.asc
--*--*--*--*--*--*--*--*--*--*--*--*--*--*--*--*--*--*--*--*--*--*--
    He who receives an idea from me, receives instruction himself
    without lessening mine; as he who lights his taper at mine,
    receives light without darkening me.  --  Thomas Jefferson
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 222 bytes
Desc: not available
URL: <http://www.trilug.org/pipermail/trilug/attachments/20031104/5b9b2ec4/attachment.pgp>


More information about the TriLUG mailing list