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.


  this is (clearly?) incorrect.  as i understand it, your group
access rights to any file are based on the *combination* of your
primary login group (as listed in /etc/passwd) and your additional
groups (as listed in /etc/group), all of which are listed when you
run either of:

        $ id
        $ groups

  as i recall, the new group represents the group ID that will
be attached to *new* objects you create -- files or directories.

  am i just misreading the man page, or has the functionality
of "newgrp" changed dramatically while i wasn't looking?

rday

-- 
Robert P. J. Day
Eno River Technologies, Durham NC
Unix, Linux and Open Source training


"This is Microsoft technical support.  How may I misinform you?"



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

Reply via email to