Skip to content

Commit

Permalink
Merge pull request #57 from dimkatsi91/develop
Browse files Browse the repository at this point in the history
minor update in the new user's sudo permissions ..
  • Loading branch information
cerebrux authored May 4, 2020
2 parents a5a9702 + 1613b61 commit 2250da2
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion archon.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
#
#



########Filesystem Function##################
function filesystems() {
PS3="Επιλέξτε filesystem: "
Expand Down Expand Up @@ -218,7 +220,19 @@ function chroot_stage {
echo #
done #
#########################################################
echo "$onomaxristi ALL=(ALL) ALL" >> /etc/sudoers

## DELETE START ?
## echo "$onomaxristi ALL=(ALL) ALL" >> /etc/sudoers
## DELETE END ?

## ADDITION START ?
## Since new user belongs to wheel group now (via useradd command),
## just uncomment the appropriate line from the /etc/sudoers file
## New user will be able to execute super-user priviledged commands
##
sed -i "s/# %wheel ALL=(ALL) ALL/%wheel ALL=(ALL) ALL/" /etc/sudoers
## ADDITION END ?

echo
echo
echo '-------------------------------------'
Expand Down

0 comments on commit 2250da2

Please sign in to comment.