man-pages/ru/man1/sg.1.html
2021-03-31 01:06:50 +01:00

143 lines
3.0 KiB
HTML
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!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">&nbsp;</A>
<H2>НАЗВАНИЕ</H2>
sg - выполняет команду с правами другой группы
<A NAME="lbAC">&nbsp;</A>
<H2>СИНТАКСИС</H2>
<DL COMPACT>
<DT id="1">
<B>sg</B> [-] [group&nbsp;[-c&nbsp;]&nbsp;command]
</DL>
<A NAME="lbAD">&nbsp;</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">&nbsp;</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 &quot;syslog&quot; logging of
<B>sg</B>
activity.
</DL>
<A NAME="lbAF">&nbsp;</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">&nbsp;</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">&nbsp;</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>