Skip to content

Commit

Permalink
src/40_install.pod: don't hardcode adding user in the wheel group, ma…
Browse files Browse the repository at this point in the history
…ke it optional
  • Loading branch information
sighook committed Oct 28, 2023
1 parent b8325b0 commit 7eb5ebb
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion src/40_install.pod
Original file line number Diff line number Diff line change
Expand Up @@ -292,11 +292,27 @@ id because the following installation of packages creates its own
users and they may occupy your id:

(chrooted) # useradd --shell /bin/bash --create-home \
--groups wheel,audio,video,scanner,cdrom,input,users \
--groups audio,video,scanner,cdrom,input,users \
--uid 1000 --user-group $USERNAME

(chrooted) # passwd $USERNAME

To make this user privileged (e.g. as Ubuntu does), first, you need to
add the C<$USERNAME> to the C<wheel> group:

(chrooted) # usermod -aG wheel $USERNAME

And second, grant the users in the C<whell> group to be root:

#
# /etc/sudoers.d/20_wheel: grant users in the wheel group to be root
#

%wheel ALL=(ALL:ALL) ALL

# End of file.


=head3 Prepare the package sources

Packages' sources are organized in so-called collections, see
Expand Down

0 comments on commit 7eb5ebb

Please sign in to comment.