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

Attachment: pgp00000.pgp
Description: PGP signature

-- 
TriLUG mailing list        : http://www.trilug.org/mailman/listinfo/trilug
TriLUG Organizational FAQ  : http://trilug.org/faq/
TriLUG Member Services FAQ : http://members.trilug.org/services_faq/
TriLUG PGP Keyring         : http://trilug.org/~chrish/trilug.asc

Reply via email to