Page MenuHomeFreeBSD

Update tip for adding a user to wheel:
ClosedPublic

Authored by pauamma_gundo.com on Sep 25 2022, 7:35 PM.
Tags
None
Referenced Files
Unknown Object (File)
Dec 20 2023, 6:16 AM
Unknown Object (File)
Aug 20 2023, 9:49 PM
Unknown Object (File)
Apr 9 2023, 1:36 AM
Unknown Object (File)
Apr 2 2023, 7:52 AM
Unknown Object (File)
Mar 27 2023, 3:42 AM
Unknown Object (File)
Feb 17 2023, 4:27 PM
Unknown Object (File)
Dec 15 2022, 7:59 PM
Unknown Object (File)
Dec 14 2022, 2:00 AM
Subscribers

Details

Summary

Use "pw groupmod" instead of hand-editing /etc/group

Test Plan

pauamma@FreeBSD-documentation-work:~/src % strfile -C usr.bin/fortune/datfiles/freebsd-tips /tmp/freebsd-tips.dat
"/tmp/freebsd-tips.dat" created
There were 138 strings
Longest string: 746 bytes
Shortest string: 39 bytes
pauamma@FreeBSD-documentation-work:~/src % cp usr.bin/fortune/datfiles/freebsd-tips /tmp
pauamma@FreeBSD-documentation-work:~/src % fortune -m group /usr/share/games/fortune/freebsd-tips
%% (/usr/share/games/fortune/freebsd-tips)
Any user that is a member of the wheel group can use "su -" to simulate
a root login. You can add a user to the wheel group by editing /etc/group.

  • Konstantinos Konstantinidis <kkonstan@duth.gr>

%%
When you want your users to be able to reboot or shutdown FreeBSD, add them
to the group "operator" and they are allowed to use shutdown(8) and poweroff(8).

  • Lars Engels <lme@FreeBSD.org>

pauamma@FreeBSD-documentation-work:~/src % fortune -m group /tmp/freebsd-tips
%% (/tmp/freebsd-tips)
Any user that is a member of the wheel group can use "su -" to simulate
a root login. You can add a user to the wheel group with:
pw groupmod -n wheel -m user_name

  • Konstantinos Konstantinidis <kkonstan@duth.gr>

%%
When you want your users to be able to reboot or shutdown FreeBSD, add them
to the group "operator" and they are allowed to use shutdown(8) and poweroff(8).

  • Lars Engels <lme@FreeBSD.org>

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 47530
Build 44417: arc lint + arc unit

Event Timeline

Didn't add myself to the attribution on the grounds that "only the original author gets to" seems to be a general FreeBSD principle.

This revision is now accepted and ready to land.Sep 26 2022, 6:26 AM

Apologies for the delay, and thank you for pinging about it. Approved.