While on the subject, and since you are working on the chapter, is there a
way to make all users in one group belong to another group with out
explicitly adding each of their userids to the other groups line in
/etc/group?

i.e. /etc/group:
users::100:accounting  <- this did not work , tried it
accounting::200:
engr::300:

Bill's (and the other 200 folks in accounting) primary group (in passwd) is
200, but he/they need to be a member of users, too.

Thanks,
Scott

----- Original Message -----
From: "David Talkington" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, March 31, 2001 11:29 AM
Subject: Re: embarrassingly simple question about "newgrp"


> -----BEGIN PGP SIGNED MESSAGE-----
>
> rpjday wrote:
>
> >  i'm writing a chapter on user and group management in linux,
> >and was just about to mention the "newgrp" command, when i read
> >both the man and info page and was totally confused.
> >
> >  reads the man page (in part):
> >
> >       ... the current directory is unchanged, but calcula­
> >       tions of access permissions to files  are  performed  with
> >       respect to the new group ID.
> >
> >  am i just misreading the man page, or has the functionality
> >of "newgrp" changed dramatically while i wasn't looking?
>
> At best, I'd say the man page is badly worded.  You're right, file
> *access* rights are determined by the groups of which you are a
> member, which newgrp doesn't alter, but ownership of *new* items will
> depend on your (current) primary group.
>
> The Solaris man page for newgrp is much clearer:
>
>  The newgrp command logs a user into a new group by  changing
>      a  user's  real  and  effective  group  ID. The user remains
>      logged in and the current directory is unchanged. The execu-
>      tion  of newgrp always replaces the current shell with a new
>      shell, even if the command terminates with an error (unknown
>      group).
>
> It goes on to explain that a subshell is spawned, that only exported
> variables will be inherited, how group passwords work and how to set
> them, blah blah ...  none of that is discussed in the (very brief and
> un-useful) man page on my Red Hat system.
>
> - -d
>
> - --
> David Talkington
> http://www.spotnet.org
>
> PGP key: http://www.prairienet.org/~dtalk/dt000823.asc
>
> -----BEGIN PGP SIGNATURE-----
> Version: PGP 6.5.8
> Comment: Made with pgp4pine 1.75-6
>
> iQEVAwUBOsYUDb1ZYOtSwT+tAQHvLgf8CYVcnGvcG9o49cUgKmMsoga62MjVxArJ
> zuJwXorfhwF3+VxdKqDOr0pHdaM6WdsKUpCqAlFOTUKhPZazW29ybeDW/Ttl7xzi
> mUmboMd4clAVRdb+aTqVjZTZgtOh78Vc9zPYWhIdpG6RlT1Gy2oHOqH8X0mNfD48
> aBvsqfZtgpqGlppk0EXI7FOWQgdVPBX1Yu5TeuAAoDI997r7TTae6SqY7MDMSN9B
> exZkDRWyPDCxd+2rejXsV/ooDeJachVDovqjVyIVdxtJQ58NB7SB+k6KNX0wYRvH
> oVi7lBZB9dZ30ESfz/WSR+EiZU9mRSJQSLrRrZ5cWsZ0Z8kfin44qQ==
> =f3JX
> -----END PGP SIGNATURE-----
>
>
>
>
>



_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to