Skip to contentSkip to conversation

docs: Export `superusers` to apply to submenus

PATCH In review Paul Menzel 2 participants 2 messages Dec 10, 2019 – Dec 13, 2019

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 docs: Export `superusers` to apply to submenus

Date: Tue, 10 Dec 2019 12:52:22 +0100
Subject: [PATCH] docs: Export superusers to apply to submenus

---
 docs/grub.texi | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)
docs/grub.texi +4 -3
index c25ab7a5f..615c32d99 100644
@@ -5715,9 +5715,10 @@ variable must be set to a list of usernames, separated by any of spaces,
 commas, semicolons, pipes, or ampersands.  Superusers are permitted to use
 the GRUB command line, edit menu entries, and execute any menu entry.  If
 @samp{superusers} is set, then use of the command line and editing of menu
-entries are automatically restricted to superusers. Setting @samp{superusers}
-to empty string effectively disables both access to CLI and editing of menu
-entries.
+entries are automatically restricted to superusers. Note, the environment
+variable needs to be exported to also affect the section defined by the
+@samp{submenu} command (@pxref{submenu}). Setting @samp{superusers} to empty
+string effectively disables both access to CLI and editing of menu entries.
 
 Other users may be allowed to execute specific menu entries by giving a list of
 usernames (as above) using the @option{--users} option to the
Signature · 1 line
2.24.0
Reviewed-by on v1 1/1
#1 lore raw
Quoted 13 lines · Paul Menzel

Date: Tue, 10 Dec 2019 12:52:22 +0100
Subject: [PATCH] docs: Export superusers to apply to submenus

---
 docs/grub.texi | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)
docs/grub.texi +0 -0
index c25ab7a5f..615c32d99 100644

docs/grub.texi variable must be set to a list of usernames, separated by any of spaces, · line 5721

Quoted 10 lines
docs/grub.texi +4 -3
@@ -5715,9 +5715,10 @@ variable must be set to a list of usernames, separated by any of spaces,
 commas, semicolons, pipes, or ampersands.  Superusers are permitted to use
 the GRUB command line, edit menu entries, and execute any menu entry.  If
 @samp{superusers} is set, then use of the command line and editing of menu
-entries are automatically restricted to superusers. Setting @samp{superusers}
-to empty string effectively disables both access to CLI and editing of menu
-entries.
+entries are automatically restricted to superusers. Note, the environment
+variable needs to be exported to also affect the section defined by the
+@samp{submenu} command (@pxref{submenu}). Setting @samp{superusers} to empty
+string effectively disables both access to CLI and editing of menu entries.

I would add that note at the end of the paragraph. If you want you can repost the patch. If not I will fix it before committing. Otherwise

Daniel