I'm looking at this question on Ask https://ask.fedoraproject.org/t/admin-user-converted-to-standard-after-loggi..., and note three things we could improve in the docs.
First,
https://docs.fedoraproject.org/en-US/quick-docs/reset-root-password/
is good, but since we default to not setting a root password on Fedora Workstation, maybe there should be something there referring to that and pointing to the docs on "adding a user to sudoers".
Which brings me to the second, which is "adding a user to sudoers" is a good title for people who know what they're doing, but "making a user an administrator" might be more clear. Not sure the best way to make _both_ titles discoverable.
And third, the root issue: the recommended command `sudo usermod -aG wheel username` is dangerous, because it'll remove other groups if -a is left out. I recommend we suggest `sudo gpasswd wheel -a username` or `sudo groupmems -g wheel -a username`.
Oooh, bonus fourth: this section should also show how to do it in GNOME with the settings panel.
Thoughts on any of this? I can submit PRs of course, but I wanted to see what y'all thought.
In the RHEL docs, we chose "Granting sudo access to a user" [1]. The introductory paragraphs of the chapter should help with the findability of the content. We could also combine the "administrative access" and "sudo" keywords in one title.
HTH, --Mirek
[1] https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/8/htm...
On Sun, Jan 3, 2021 at 10:09 PM Matthew Miller mattdm@fedoraproject.org wrote:
I'm looking at this question on Ask
https://ask.fedoraproject.org/t/admin-user-converted-to-standard-after-loggi... , and note three things we could improve in the docs.
First,
https://docs.fedoraproject.org/en-US/quick-docs/reset-root-password/
is good, but since we default to not setting a root password on Fedora Workstation, maybe there should be something there referring to that and pointing to the docs on "adding a user to sudoers".
Which brings me to the second, which is "adding a user to sudoers" is a good title for people who know what they're doing, but "making a user an administrator" might be more clear. Not sure the best way to make _both_ titles discoverable.
And third, the root issue: the recommended command `sudo usermod -aG wheel username` is dangerous, because it'll remove other groups if -a is left out. I recommend we suggest `sudo gpasswd wheel -a username` or `sudo groupmems -g wheel -a username`.
Oooh, bonus fourth: this section should also show how to do it in GNOME with the settings panel.
Thoughts on any of this? I can submit PRs of course, but I wanted to see what y'all thought.
-- Matthew Miller mattdm@fedoraproject.org Fedora Project Leader _______________________________________________ docs mailing list -- docs@lists.fedoraproject.org To unsubscribe send an email to docs-leave@lists.fedoraproject.org Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/docs@lists.fedoraproject.org