146 lines
3.5 KiB
HTML
146 lines
3.5 KiB
HTML
|
||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
||
<HTML><HEAD><TITLE>Man page of newgrp</TITLE>
|
||
</HEAD><BODY>
|
||
<H1>newgrp</H1>
|
||
Section: Пользовательские команды (1)<BR>Updated: 05/28/2020<BR><A HREF="#index">Index</A>
|
||
<A HREF="/cgi-bin/man/man2html">Return to Main Contents</A><HR>
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
<A NAME="lbAB"> </A>
|
||
<H2>НАЗВАНИЕ</H2>
|
||
|
||
newgrp - выполняет регистрацию пользователя в новой группе
|
||
<A NAME="lbAC"> </A>
|
||
<H2>СИНТАКСИС</H2>
|
||
|
||
<DL COMPACT>
|
||
<DT id="1">
|
||
<B>newgrp</B> [-] [<I>группа</I>]
|
||
</DL>
|
||
<A NAME="lbAD"> </A>
|
||
<H2>ОПИСАНИЕ</H2>
|
||
|
||
<P>
|
||
|
||
<DD>The
|
||
<B>newgrp</B>
|
||
command is used to change the current group ID during a login session. If the optional
|
||
<B>-</B>
|
||
flag is given, the user's environment will be reinitialized as though the user had logged in, otherwise the current environment, including current working directory, remains unchanged.
|
||
<P>
|
||
|
||
<B>newgrp</B>
|
||
changes the current real group ID to the named group, or to the default group listed in
|
||
/etc/passwd
|
||
if no group name is given.
|
||
<B>newgrp</B>
|
||
also tries to add the group to the user groupset. If not root, the user will be prompted for a password if she does not have a password (in
|
||
/etc/shadow
|
||
if this user has an entry in the shadowed password file, or in
|
||
/etc/passwd
|
||
otherwise) and the group does, or if the user is not listed as a member and the group has a password. The user will be denied access if the group password is empty and the user is not listed as a member.
|
||
<P>
|
||
|
||
If there is an entry for this group in
|
||
/etc/gshadow, then the list of members and the password of this group will be taken from this file, otherwise, the entry in
|
||
/etc/group
|
||
is considered.
|
||
<A NAME="lbAE"> </A>
|
||
<H2>НАСТРОЙКА</H2>
|
||
|
||
<P>
|
||
|
||
The following configuration variables in
|
||
/etc/login.defs
|
||
change the behavior of this tool:
|
||
<P>
|
||
|
||
<B>SYSLOG_SG_ENAB</B> (boolean)
|
||
<DL COMPACT><DT id="2"><DD>
|
||
Enable "syslog" logging of
|
||
<B>sg</B>
|
||
activity.
|
||
</DL>
|
||
|
||
<A NAME="lbAF"> </A>
|
||
<H2>ФАЙЛЫ</H2>
|
||
|
||
<P>
|
||
|
||
/etc/passwd
|
||
<DL COMPACT><DT id="3"><DD>
|
||
содержит информацию о пользователях
|
||
</DL>
|
||
|
||
<P>
|
||
|
||
/etc/shadow
|
||
<DL COMPACT><DT id="4"><DD>
|
||
содержит защищаемую информацию о пользователях
|
||
</DL>
|
||
|
||
<P>
|
||
|
||
/etc/group
|
||
<DL COMPACT><DT id="5"><DD>
|
||
содержит информацию о группах
|
||
</DL>
|
||
|
||
<P>
|
||
|
||
/etc/gshadow
|
||
<DL COMPACT><DT id="6"><DD>
|
||
содержит защищаемую информацию о группах
|
||
</DL>
|
||
|
||
<A NAME="lbAG"> </A>
|
||
<H2>СМОТРИТЕ ТАКЖЕ</H2>
|
||
|
||
<P>
|
||
|
||
<B><A HREF="/cgi-bin/man/man2html?1+id">id</A></B>(1),
|
||
<B><A HREF="/cgi-bin/man/man2html?1+login">login</A></B>(1),
|
||
<B><A HREF="/cgi-bin/man/man2html?1+su">su</A></B>(1),
|
||
<B><A HREF="/cgi-bin/man/man2html?1+sg">sg</A></B>(1),
|
||
<B><A HREF="/cgi-bin/man/man2html?1+gpasswd">gpasswd</A></B>(1),
|
||
<B><A HREF="/cgi-bin/man/man2html?5+group">group</A></B>(5), <B><A HREF="/cgi-bin/man/man2html?5+gshadow">gshadow</A></B>(5).
|
||
<P>
|
||
|
||
<HR>
|
||
<A NAME="index"> </A><H2>Index</H2>
|
||
<DL>
|
||
<DT id="7"><A HREF="#lbAB">НАЗВАНИЕ</A><DD>
|
||
<DT id="8"><A HREF="#lbAC">СИНТАКСИС</A><DD>
|
||
<DT id="9"><A HREF="#lbAD">ОПИСАНИЕ</A><DD>
|
||
<DT id="10"><A HREF="#lbAE">НАСТРОЙКА</A><DD>
|
||
<DT id="11"><A HREF="#lbAF">ФАЙЛЫ</A><DD>
|
||
<DT id="12"><A HREF="#lbAG">СМОТРИТЕ ТАКЖЕ</A><DD>
|
||
</DL>
|
||
<HR>
|
||
This document was created by
|
||
<A HREF="/cgi-bin/man/man2html">man2html</A>,
|
||
using the manual pages.<BR>
|
||
Time: 00:06:22 GMT, March 31, 2021
|
||
</BODY>
|
||
</HTML>
|