int main(int argc, char *argv[])
{
char filename[MAXPATHLEN];
if (argc==1)
(void) sprintf(filename, "/tmp/xxx%d", getpid());
else
(void) sprintf(filename, "/tmp/%s", argv[1]);
if ((fd = open(filename, O_RDWR|O_EXCL|O_CREAT, 0644) )< 0){
perror(filename);
exit(1);
}
...
groupname:group_password:group_number:membership
class::1035:bishop,knowles,levitt,fulton
Only the system administrator can manipulate the password or membership of a group. Your task is to write a program that will allow the first user named in the membership of the group to:
What follows are some suggestions that may help you.
Send email to
cs153@csif.cs.ucdavis.edu.
Department of Computer Science
University of California at Davis
Davis, CA 95616-8562