143 lines
3.0 KiB
HTML
143 lines
3.0 KiB
HTML
|
||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
||
<HTML><HEAD><TITLE>Man page of sg</TITLE>
|
||
</HEAD><BODY>
|
||
<H1>sg</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>
|
||
|
||
sg - выполняет команду с правами другой группы
|
||
<A NAME="lbAC"> </A>
|
||
<H2>СИНТАКСИС</H2>
|
||
|
||
<DL COMPACT>
|
||
<DT id="1">
|
||
<B>sg</B> [-] [group [-c ] command]
|
||
</DL>
|
||
<A NAME="lbAD"> </A>
|
||
<H2>ОПИСАНИЕ</H2>
|
||
|
||
<P>
|
||
|
||
<DD>The
|
||
<B>sg</B>
|
||
command works similar to
|
||
<B>newgrp</B>
|
||
but accepts a command. The command will be executed with the
|
||
/bin/sh
|
||
shell. With most shells you may run
|
||
<B>sg</B>
|
||
from, you need to enclose multi-word commands in quotes. Another difference between
|
||
<B>newgrp</B>
|
||
and
|
||
<B>sg</B>
|
||
is that some shells treat
|
||
<B>newgrp</B>
|
||
specially, replacing themselves with a new instance of a shell that
|
||
<B>newgrp</B>
|
||
creates. This doesn't happen with
|
||
<B>sg</B>, so upon exit from a
|
||
<B>sg</B>
|
||
command you are returned to your previous group ID.
|
||
<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+newgrp">newgrp</A></B>(1),
|
||
<B><A HREF="/cgi-bin/man/man2html?1+su">su</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:23 GMT, March 31, 2021
|
||
</BODY>
|
||
</HTML>
|