01.01.2013 Views

AT&T UNIX™PC Unix System V Users Manual - tenox

AT&T UNIX™PC Unix System V Users Manual - tenox

AT&T UNIX™PC Unix System V Users Manual - tenox

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

NEWGRP ( I ) NEWGRP ( I )<br />

NAME<br />

newgrp - log in to a new group<br />

SYNOPSIS<br />

newgrp [ - ] [ group ]<br />

DESCRIPTION<br />

Newgrp changes the group identification of its caller, analogously<br />

to login (lM). The same person remains logged in, and the current<br />

directory is unchanged, but calculations of access permissions to<br />

files are performed with respect to the new group ID.<br />

Newgrp without an argument changes the group identification to<br />

the group in the password file; in effect it changes the group<br />

identification back to the caller's original group.<br />

An initial - flag causes the environment to be changed to the one<br />

that would be expected if the user actually logged in again.<br />

A password is demanded if the group has a password and the user<br />

himself does not, or if the group has a password and the user is<br />

not listed in fete/group as being a member of that group.<br />

When most users log in, they are members of the group named<br />

other.<br />

FILES<br />

/etc/group<br />

/etcjpasswd<br />

SEE ALSO<br />

login( 1M), group( 4).<br />

BUGS<br />

There is no convenient way to enter a password into /etc/group.<br />

Use of group passwords is not encouraged, because, by their very<br />

nature, they encourage poor security practices. Group passwords<br />

may disappear in the future.<br />

- 1 -

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!