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

Re: Setting group ID




Isn't there a chgrp() system call?

Randy

-----Original Message-----
From: Chester [mailto:chester@langin.com]
Sent: Tuesday, July 03, 2001 10:48 AM
To: 'silug-discuss@silug.org'
Subject: Setting group ID


In somebody else's system, I am a member of two groups,
one of which is users.

I have written a program that creates files and as a 
default assigns them to the users group.  I would like to
have these newly written files assigned to the other
group.  I am writing in C++.  Without fork() and exec(),
any ideas how to do this?

As a general rule on this other person's system, when I
copy files, I would like to have them assigned to the
other group.  How do I make the other group the default?

On my own system, how do I make somebody else's group a
default group when they are a member of more than one
group?

--Chester Langin-------------------------------------------
<http://www.cs.siu.edu/~langin>  <mailto:langin@cs.siu.edu>
-----------------------------------------------------------


-
To unsubscribe, send email to majordomo@silug.org with
"unsubscribe silug-discuss" in the body.
-
To unsubscribe, send email to majordomo@silug.org with
"unsubscribe silug-discuss" in the body.