Skip to content

Commit

Permalink
man: Don't suggest making groupmems user-writeable
Browse files Browse the repository at this point in the history
Suggesting mode 2770 is dangerous because it makes the binary writeable
by all members of the owning group which is supposed to be normal
end-users. Suggest 2710 instead as is usual for s[ug]id binaries,
allowing execution but neither reading nor writing.

Signed-off-by: Michael Weiser <[email protected]>
  • Loading branch information
michaelweiser committed Dec 17, 2019
1 parent 7f53048 commit a73d4ae
Show file tree
Hide file tree
Showing 12 changed files with 37 additions and 37 deletions.
4 changes: 2 additions & 2 deletions man/cs/man8/groupmems.8
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ Vypíše seznam členů skupiny.
Příkaz
\fBgroupmems\fR
by měl mít nastavena práva
2770
2710
a měl by jej vlastnit uživatel
\fIroot\fR
a skupina
Expand All @@ -58,7 +58,7 @@ spravovat členství ve skupinách.
.sp
.nf
$ groupadd \-r groups
$ chmod 2770 groupmems
$ chmod 2710 groupmems
$ chown root.groups groupmems
$ groupmems \-g groups \-a gk4

Expand Down
4 changes: 2 additions & 2 deletions man/groupmems.8.xml
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@
<title>SETUP</title>
<para>
The <command>groupmems</command> executable should be in mode
<literal>2770</literal> as user <emphasis>root</emphasis> and in group
<literal>2710</literal> as user <emphasis>root</emphasis> and in group
<emphasis>groups</emphasis>. The system administrator can add users to
group <emphasis>groups</emphasis> to allow or disallow them using the
<command>groupmems</command> utility to manage their own group
Expand All @@ -189,7 +189,7 @@

<programlisting>
$ groupadd -r groups
$ chmod 2770 groupmems
$ chmod 2710 groupmems
$ chown root.groups groupmems
$ groupmems -g groups -a gk4
</programlisting>
Expand Down
4 changes: 2 additions & 2 deletions man/po/da.po
Original file line number Diff line number Diff line change
Expand Up @@ -6980,7 +6980,7 @@ msgstr ""

#: groupmems.8.xml:181(para)
msgid ""
"The <command>groupmems</command> executable should be in mode <literal>2770</"
"The <command>groupmems</command> executable should be in mode <literal>2710</"
"literal> as user <emphasis>root</emphasis> and in group <emphasis>groups</"
"emphasis>. The system administrator can add users to group <emphasis>groups</"
"emphasis> to allow or disallow them using the <command>groupmems</command> "
Expand All @@ -6992,7 +6992,7 @@ msgstr ""
msgid ""
"\n"
"\t$ groupadd -r groups\n"
"\t$ chmod 2770 groupmems\n"
"\t$ chmod 2710 groupmems\n"
"\t$ chown root.groups groupmems\n"
"\t$ groupmems -g groups -a gk4\n"
" "
Expand Down
8 changes: 4 additions & 4 deletions man/po/de.po
Original file line number Diff line number Diff line change
Expand Up @@ -8878,14 +8878,14 @@ msgstr "EINRICHTUNG"

#: groupmems.8.xml:181(para)
msgid ""
"The <command>groupmems</command> executable should be in mode <literal>2770</"
"The <command>groupmems</command> executable should be in mode <literal>2710</"
"literal> as user <emphasis>root</emphasis> and in group <emphasis>groups</"
"emphasis>. The system administrator can add users to group <emphasis>groups</"
"emphasis> to allow or disallow them using the <command>groupmems</command> "
"utility to manage their own group membership list."
msgstr ""
"Die ausführbare Datei <command>groupmems</command> sollte die Rechte "
"<literal>2770</literal> haben und dem Benutzer <emphasis>root</emphasis> und "
"<literal>2710</literal> haben und dem Benutzer <emphasis>root</emphasis> und "
"der Gruppe <emphasis>groups</emphasis> gehören. Der Systemadministrator kann "
"Benutzer der Gruppe <emphasis>groups</emphasis> hinzufügen, um ihnen zu "
"ermöglichen, mit <command>groupmems</command> die Mitgliederliste ihrer "
Expand All @@ -8896,14 +8896,14 @@ msgstr ""
msgid ""
"\n"
"\t$ groupadd -r groups\n"
"\t$ chmod 2770 groupmems\n"
"\t$ chmod 2710 groupmems\n"
"\t$ chown root.groups groupmems\n"
"\t$ groupmems -g groups -a gk4\n"
" "
msgstr ""
"\n"
"\t$ groupadd -r groups\n"
"\t$ chmod 2770 groupmems\n"
"\t$ chmod 2710 groupmems\n"
"\t$ chown root.groups groupmems\n"
"\t$ groupmems -g groups -a gk4\n"
" "
Expand Down
8 changes: 4 additions & 4 deletions man/po/fr.po
Original file line number Diff line number Diff line change
Expand Up @@ -8701,14 +8701,14 @@ msgstr "CONFIGURATION"

#: groupmems.8.xml:181(para)
msgid ""
"The <command>groupmems</command> executable should be in mode <literal>2770</"
"The <command>groupmems</command> executable should be in mode <literal>2710</"
"literal> as user <emphasis>root</emphasis> and in group <emphasis>groups</"
"emphasis>. The system administrator can add users to group <emphasis>groups</"
"emphasis> to allow or disallow them using the <command>groupmems</command> "
"utility to manage their own group membership list."
msgstr ""
"L'exécutable <command>groupmems</command> doit être installé en mode "
"<literal>2770</literal> avec pour utilisateur <emphasis>root</emphasis> et "
"<literal>2710</literal> avec pour utilisateur <emphasis>root</emphasis> et "
"pour groupe <emphasis>groups</emphasis>. L'administrateur système peut "
"ajouter des utilisateurs au groupe <emphasis>groups</emphasis> pour leur "
"permettre ou leur interdire d'utiliser <command>groupmems</command> pour "
Expand All @@ -8719,14 +8719,14 @@ msgstr ""
msgid ""
"\n"
"\t$ groupadd -r groups\n"
"\t$ chmod 2770 groupmems\n"
"\t$ chmod 2710 groupmems\n"
"\t$ chown root.groups groupmems\n"
"\t$ groupmems -g groups -a gk4\n"
" "
msgstr ""
"\n"
"\t$ groupadd -r groups\n"
"\t$ chmod 2770 groupmems\n"
"\t$ chmod 2710 groupmems\n"
"\t$ chown root.groups groupmems\n"
"\t$ groupmems -g groups -a gk4\n"
" "
Expand Down
8 changes: 4 additions & 4 deletions man/po/it.po
Original file line number Diff line number Diff line change
Expand Up @@ -9254,14 +9254,14 @@ msgstr "CONFIGURAZIONE"

#: groupmems.8.xml:181(para)
msgid ""
"The <command>groupmems</command> executable should be in mode <literal>2770</"
"The <command>groupmems</command> executable should be in mode <literal>2710</"
"literal> as user <emphasis>root</emphasis> and in group <emphasis>groups</"
"emphasis>. The system administrator can add users to group <emphasis>groups</"
"emphasis> to allow or disallow them using the <command>groupmems</command> "
"utility to manage their own group membership list."
msgstr ""
"L'eseguibile <command>groupmems</command> dovrebbe avere i permessi "
"<literal>2770</literal> ed essere di proprietà di <emphasis>root</emphasis> "
"<literal>2710</literal> ed essere di proprietà di <emphasis>root</emphasis> "
"e del gruppo <emphasis>groups</emphasis>. L'amministratore di sistema può "
"aggiungere utenti al gruppo <emphasis>groups</emphasis> per permettere loro "
"di poter gestire l'elenco di membri del proprio gruppo tramite il comando "
Expand All @@ -9272,14 +9272,14 @@ msgstr ""
msgid ""
"\n"
"\t$ groupadd -r groups\n"
"\t$ chmod 2770 groupmems\n"
"\t$ chmod 2710 groupmems\n"
"\t$ chown root.groups groupmems\n"
"\t$ groupmems -g groups -a gk4\n"
" "
msgstr ""
"\n"
" $ groupadd -r groups\n"
" $ chmod 2770 groupmems\n"
" $ chmod 2710 groupmems\n"
" $ chown root.groups groupmems\n"
" $ groupmems -g groups -a gk4\n"
" "
Expand Down
6 changes: 3 additions & 3 deletions man/po/pl.po
Original file line number Diff line number Diff line change
Expand Up @@ -7558,7 +7558,7 @@ msgstr ""

#: groupmems.8.xml:181(para)
msgid ""
"The <command>groupmems</command> executable should be in mode <literal>2770</"
"The <command>groupmems</command> executable should be in mode <literal>2710</"
"literal> as user <emphasis>root</emphasis> and in group <emphasis>groups</"
"emphasis>. The system administrator can add users to group <emphasis>groups</"
"emphasis> to allow or disallow them using the <command>groupmems</command> "
Expand All @@ -7570,14 +7570,14 @@ msgstr ""
msgid ""
"\n"
"\t$ groupadd -r groups\n"
"\t$ chmod 2770 groupmems\n"
"\t$ chmod 2710 groupmems\n"
"\t$ chown root.groups groupmems\n"
"\t$ groupmems -g groups -a gk4\n"
" "
msgstr ""
"\n"
"\t$ groupadd -r groups\n"
"\t$ chmod 2770 groupmems\n"
"\t$ chmod 2710 groupmems\n"
"\t$ chown root.groups groupmems\n"
"\t$ groupmems -g groups -a gk4\n"
" "
Expand Down
8 changes: 4 additions & 4 deletions man/po/ru.po
Original file line number Diff line number Diff line change
Expand Up @@ -9292,14 +9292,14 @@ msgstr "НАСТРОЙКА"

#: groupmems.8.xml:181(para)
msgid ""
"The <command>groupmems</command> executable should be in mode <literal>2770</"
"The <command>groupmems</command> executable should be in mode <literal>2710</"
"literal> as user <emphasis>root</emphasis> and in group <emphasis>groups</"
"emphasis>. The system administrator can add users to group <emphasis>groups</"
"emphasis> to allow or disallow them using the <command>groupmems</command> "
"utility to manage their own group membership list."
msgstr ""
"Исполняемый файл программы <command>groupmems</command> должен иметь права "
"<literal>2770</literal>, принадлежать пользователю <emphasis>root</emphasis> "
"<literal>2710</literal>, принадлежать пользователю <emphasis>root</emphasis> "
"и группе <emphasis>groups</emphasis>. Системный администратор может "
"добавлять пользователей в группу <emphasis>groups</emphasis>, разрешая или "
"запрещая им запускать программу <command>groupmems</command> для управления "
Expand All @@ -9311,14 +9311,14 @@ msgstr ""
msgid ""
"\n"
"\t$ groupadd -r groups\n"
"\t$ chmod 2770 groupmems\n"
"\t$ chmod 2710 groupmems\n"
"\t$ chown root.groups groupmems\n"
"\t$ groupmems -g groups -a gk4\n"
" "
msgstr ""
"\n"
"\t$ groupadd -r groups\n"
"\t$ chmod 2770 groupmems\n"
"\t$ chmod 2710 groupmems\n"
"\t$ chown root.groups groupmems\n"
"\t$ groupmems -g groups -a gk4\n"
" "
Expand Down
4 changes: 2 additions & 2 deletions man/po/shadow-man-pages.pot
Original file line number Diff line number Diff line change
Expand Up @@ -4233,12 +4233,12 @@ msgid "SETUP"
msgstr ""

#: groupmems.8.xml:181(para)
msgid "The <command>groupmems</command> executable should be in mode <literal>2770</literal> as user <emphasis>root</emphasis> and in group <emphasis>groups</emphasis>. The system administrator can add users to group <emphasis>groups</emphasis> to allow or disallow them using the <command>groupmems</command> utility to manage their own group membership list."
msgid "The <command>groupmems</command> executable should be in mode <literal>2710</literal> as user <emphasis>root</emphasis> and in group <emphasis>groups</emphasis>. The system administrator can add users to group <emphasis>groups</emphasis> to allow or disallow them using the <command>groupmems</command> utility to manage their own group membership list."
msgstr ""

#: groupmems.8.xml:190(programlisting)
#, no-wrap
msgid "\n\t$ groupadd -r groups\n\t$ chmod 2770 groupmems\n\t$ chown root.groups groupmems\n\t$ groupmems -g groups -a gk4\n "
msgid "\n\t$ groupadd -r groups\n\t$ chmod 2710 groupmems\n\t$ chown root.groups groupmems\n\t$ groupmems -g groups -a gk4\n "
msgstr ""

#: groupmems.8.xml:222(para)
Expand Down
6 changes: 3 additions & 3 deletions man/po/sv.po
Original file line number Diff line number Diff line change
Expand Up @@ -7780,7 +7780,7 @@ msgstr ""

#: groupmems.8.xml:181(para)
msgid ""
"The <command>groupmems</command> executable should be in mode <literal>2770</"
"The <command>groupmems</command> executable should be in mode <literal>2710</"
"literal> as user <emphasis>root</emphasis> and in group <emphasis>groups</"
"emphasis>. The system administrator can add users to group <emphasis>groups</"
"emphasis> to allow or disallow them using the <command>groupmems</command> "
Expand All @@ -7792,14 +7792,14 @@ msgstr ""
msgid ""
"\n"
"\t$ groupadd -r groups\n"
"\t$ chmod 2770 groupmems\n"
"\t$ chmod 2710 groupmems\n"
"\t$ chown root.groups groupmems\n"
"\t$ groupmems -g groups -a gk4\n"
" "
msgstr ""
"\n"
"\t$ groupadd -r groups\n"
"\t$ chmod 2770 groupmems\n"
"\t$ chmod 2710 groupmems\n"
"\t$ chown root.groups groupmems\n"
"\t$ groupmems -g groups -a gk4\n"
" "
Expand Down
6 changes: 3 additions & 3 deletions man/po/zh_CN.po
Original file line number Diff line number Diff line change
Expand Up @@ -7960,7 +7960,7 @@ msgstr ""

#: groupmems.8.xml:181(para)
msgid ""
"The <command>groupmems</command> executable should be in mode <literal>2770</"
"The <command>groupmems</command> executable should be in mode <literal>2710</"
"literal> as user <emphasis>root</emphasis> and in group <emphasis>groups</"
"emphasis>. The system administrator can add users to group <emphasis>groups</"
"emphasis> to allow or disallow them using the <command>groupmems</command> "
Expand All @@ -7972,14 +7972,14 @@ msgstr ""
msgid ""
"\n"
"\t$ groupadd -r groups\n"
"\t$ chmod 2770 groupmems\n"
"\t$ chmod 2710 groupmems\n"
"\t$ chown root.groups groupmems\n"
"\t$ groupmems -g groups -a gk4\n"
" "
msgstr ""
"\n"
"\t$ groupadd -r groups\n"
"\t$ chmod 2770 groupmems\n"
"\t$ chmod 2710 groupmems\n"
"\t$ chown root.groups groupmems\n"
"\t$ groupmems -g groups -a gk4\n"
" "
Expand Down
8 changes: 4 additions & 4 deletions po/fr.po
Original file line number Diff line number Diff line change
Expand Up @@ -9701,14 +9701,14 @@ msgstr ""

#~ msgid ""
#~ "The <command>groupmems</command> executable should be in mode "
#~ "<literal>2770</literal> as user <emphasis>root</emphasis> and in group "
#~ "<literal>2710</literal> as user <emphasis>root</emphasis> and in group "
#~ "<emphasis>groups</emphasis>. The system administrator can add users to "
#~ "group <emphasis>groups</emphasis> to allow or disallow them using the "
#~ "<command>groupmems</command> utility to manage their own group membership "
#~ "list."
#~ msgstr ""
#~ "L'exécutable <command>groupmems</command> doit être installé en mode "
#~ "<literal>2770</literal> avec pour utilisateur <emphasis>root</emphasis> "
#~ "<literal>2710</literal> avec pour utilisateur <emphasis>root</emphasis> "
#~ "et pour groupe <emphasis>groups</emphasis>. L'administrateur système peut "
#~ "ajouter des utilisateurs au groupe <emphasis>groups</emphasis> pour leur "
#~ "permettre ou leur interdire d'utiliser <command>groupmems</command> pour "
Expand All @@ -9717,14 +9717,14 @@ msgstr ""
#~ msgid ""
#~ "\n"
#~ "\t$ groupadd -r groups\n"
#~ "\t$ chmod 2770 groupmems\n"
#~ "\t$ chmod 2710 groupmems\n"
#~ "\t$ chown root.groups groupmems\n"
#~ "\t$ groupmems -g groups -a gk4\n"
#~ " "
#~ msgstr ""
#~ "\n"
#~ "\t$ groupadd -r groups\n"
#~ "\t$ chmod 2770 groupmems\n"
#~ "\t$ chmod 2710 groupmems\n"
#~ "\t$ chown root.groups groupmems\n"
#~ "\t$ groupmems -g groups -a gk4\n"
#~ " "
Expand Down

0 comments on commit a73d4ae

Please sign in to comment.