Use "pw groupmod" instead of hand-editing /etc/group
Details
- Reviewers
debdrup bcr gjb carlavilla
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.
Forgot the review URL (again, I think). https://cgit.freebsd.org/src/commit/?id=36bb350e374a9f0b62b16c3c32c3bcec2e21ec6e