249 lines
6.1 KiB
HTML
249 lines
6.1 KiB
HTML
|
||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
||
<HTML><HEAD><TITLE>Man page of groupmems</TITLE>
|
||
</HEAD><BODY>
|
||
<H1>groupmems</H1>
|
||
Section: Команды управления системой (8)<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>
|
||
|
||
groupmems - управляет членами первичной группы пользователя
|
||
<A NAME="lbAC"> </A>
|
||
<H2>СИНТАКСИС</H2>
|
||
|
||
<DL COMPACT>
|
||
<DT id="1">
|
||
<B>groupmems</B> -a <I>user_name</I> | -d <I>user_name</I> | [-g <I>group_name</I>] | -l | -p
|
||
</DL>
|
||
<A NAME="lbAD"> </A>
|
||
<H2>ОПИСАНИЕ</H2>
|
||
|
||
<P>
|
||
|
||
<DD>The
|
||
<B>groupmems</B>
|
||
command allows a user to administer their own group membership list without the requirement of superuser privileges. The
|
||
<B>groupmems</B>
|
||
utility is for systems that configure its users to be in their own name sake primary group (i.e., guest / guest).
|
||
<P>
|
||
|
||
Only the superuser, as administrator, can use
|
||
<B>groupmems</B>
|
||
to alter the memberships of other groups.
|
||
<A NAME="lbAE"> </A>
|
||
<H2>ПАРАМЕТРЫ</H2>
|
||
|
||
<P>
|
||
|
||
The options which apply to the
|
||
<B>groupmems</B>
|
||
command are:
|
||
<P>
|
||
|
||
<B>-a</B>, <B>--add</B> <I>user_name</I>
|
||
<DL COMPACT><DT id="2"><DD>
|
||
Add a user to the group membership list.
|
||
<P>
|
||
If the
|
||
/etc/gshadow
|
||
file exist, and the group has no entry in the
|
||
/etc/gshadow
|
||
file, a new entry will be created.
|
||
</DL>
|
||
|
||
<P>
|
||
|
||
<B>-d</B>, <B>--delete</B> <I>user_name</I>
|
||
<DL COMPACT><DT id="3"><DD>
|
||
Удалить пользователя из группы.
|
||
<P>
|
||
If the
|
||
/etc/gshadow
|
||
file exist, the user will be removed from the list of members and administrators of the group.
|
||
<P>
|
||
If the
|
||
/etc/gshadow
|
||
file exist, and the group has no entry in the
|
||
/etc/gshadow
|
||
file, a new entry will be created.
|
||
</DL>
|
||
|
||
<P>
|
||
|
||
<B>-g</B>, <B>--group</B> <I>group_name</I>
|
||
<DL COMPACT><DT id="4"><DD>
|
||
Суперпользователь может указать группу, в которой нужно изменить список членов.
|
||
</DL>
|
||
|
||
<P>
|
||
|
||
<B>-h</B>, <B>--help</B>
|
||
<DL COMPACT><DT id="5"><DD>
|
||
Показать краткую справку и закончить работу.
|
||
</DL>
|
||
|
||
<P>
|
||
|
||
<B>-l</B>, <B>--list</B>
|
||
<DL COMPACT><DT id="6"><DD>
|
||
Показать список членов группы.
|
||
</DL>
|
||
|
||
<P>
|
||
|
||
<B>-p</B>, <B>--purge</B>
|
||
<DL COMPACT><DT id="7"><DD>
|
||
Вычистить всех пользователей из списка членов группы.
|
||
<P>
|
||
If the
|
||
/etc/gshadow
|
||
file exist, and the group has no entry in the
|
||
/etc/gshadow
|
||
file, a new entry will be created.
|
||
</DL>
|
||
|
||
<P>
|
||
|
||
<B>-R</B>, <B>--root</B> <I>CHROOT_DIR</I>
|
||
<DL COMPACT><DT id="8"><DD>
|
||
Apply changes in the
|
||
<I>CHROOT_DIR</I>
|
||
directory and use the configuration files from the
|
||
<I>CHROOT_DIR</I>
|
||
directory.
|
||
</DL>
|
||
|
||
<A NAME="lbAF"> </A>
|
||
<H2>НАСТРОЙКА</H2>
|
||
|
||
<P>
|
||
|
||
The
|
||
<B>groupmems</B>
|
||
executable should be in mode
|
||
2710
|
||
as user
|
||
<I>root</I>
|
||
and in group
|
||
<I>groups</I>. The system administrator can add users to group
|
||
<I>groups</I>
|
||
to allow or disallow them using the
|
||
<B>groupmems</B>
|
||
utility to manage their own group membership list.
|
||
<P>
|
||
<DL COMPACT><DT id="9"><DD>
|
||
|
||
|
||
|
||
<PRE>
|
||
$ groupadd -r groups
|
||
$ chmod 2710 groupmems
|
||
$ chown root.groups groupmems
|
||
$ groupmems -g groups -a gk4
|
||
|
||
</PRE>
|
||
|
||
</DL>
|
||
|
||
|
||
|
||
|
||
<A NAME="lbAG"> </A>
|
||
<H2>НАСТРОЙКА</H2>
|
||
|
||
<P>
|
||
|
||
The following configuration variables in
|
||
/etc/login.defs
|
||
change the behavior of this tool:
|
||
<P>
|
||
|
||
<B>MAX_MEMBERS_PER_GROUP</B> (number)
|
||
<DL COMPACT><DT id="10"><DD>
|
||
Maximum members per group entry. When the maximum is reached, a new group entry (line) is started in
|
||
/etc/group
|
||
(with the same name, same password, and same GID).
|
||
<P>
|
||
Значение по умолчанию равно 0, означающее, что ограничения на количество членов в группе нет.
|
||
<P>
|
||
Данная возможность (разделение группы) позволяет ограничить длину строк в файле групп. Это полезно для ограничения длины строк групп NIS в 1024 символа.
|
||
<P>
|
||
Если вам нужно такое ограничение, укажите значение 25.
|
||
<P>
|
||
Замечание: разделение групп поддерживается не всеми инструментами (даже в наборе инструментов Shadow). Вы не должны использовать эту переменную, если вам действительно это ненужно.
|
||
</DL>
|
||
|
||
<A NAME="lbAH"> </A>
|
||
<H2>ФАЙЛЫ</H2>
|
||
|
||
<P>
|
||
|
||
/etc/group
|
||
<DL COMPACT><DT id="11"><DD>
|
||
содержит информацию о группах
|
||
</DL>
|
||
|
||
<P>
|
||
|
||
/etc/gshadow
|
||
<DL COMPACT><DT id="12"><DD>
|
||
содержит защищаемую информацию о группах
|
||
</DL>
|
||
|
||
<A NAME="lbAI"> </A>
|
||
<H2>СМОТРИТЕ ТАКЖЕ</H2>
|
||
|
||
<P>
|
||
|
||
<B><A HREF="/cgi-bin/man/man2html?1+chfn">chfn</A></B>(1),
|
||
<B><A HREF="/cgi-bin/man/man2html?1+chsh">chsh</A></B>(1),
|
||
<B><A HREF="/cgi-bin/man/man2html?1+passwd">passwd</A></B>(1),
|
||
<B><A HREF="/cgi-bin/man/man2html?8+groupadd">groupadd</A></B>(8),
|
||
<B><A HREF="/cgi-bin/man/man2html?8+groupdel">groupdel</A></B>(8),
|
||
<B><A HREF="/cgi-bin/man/man2html?8+useradd">useradd</A></B>(8),
|
||
<B><A HREF="/cgi-bin/man/man2html?8+userdel">userdel</A></B>(8),
|
||
<B><A HREF="/cgi-bin/man/man2html?8+usermod">usermod</A></B>(8).
|
||
<P>
|
||
|
||
<HR>
|
||
<A NAME="index"> </A><H2>Index</H2>
|
||
<DL>
|
||
<DT id="13"><A HREF="#lbAB">НАЗВАНИЕ</A><DD>
|
||
<DT id="14"><A HREF="#lbAC">СИНТАКСИС</A><DD>
|
||
<DT id="15"><A HREF="#lbAD">ОПИСАНИЕ</A><DD>
|
||
<DT id="16"><A HREF="#lbAE">ПАРАМЕТРЫ</A><DD>
|
||
<DT id="17"><A HREF="#lbAF">НАСТРОЙКА</A><DD>
|
||
<DT id="18"><A HREF="#lbAG">НАСТРОЙКА</A><DD>
|
||
<DT id="19"><A HREF="#lbAH">ФАЙЛЫ</A><DD>
|
||
<DT id="20"><A HREF="#lbAI">СМОТРИТЕ ТАКЖЕ</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>
|