add user sneak to sudoers
This commit is contained in:
parent
7d8dd45d54
commit
cccf7fabbf
@ -16,6 +16,7 @@ apt-get -y install vim byobu screen build-essential git mosh bash-completion
|
|||||||
if [[ ! -d /home/sneak ]]; then
|
if [[ ! -d /home/sneak ]]; then
|
||||||
useradd -m -s /bin/bash sneak
|
useradd -m -s /bin/bash sneak
|
||||||
usermod -a -G sudo sneak
|
usermod -a -G sudo sneak
|
||||||
|
echo "sneak ALL=NOPASSWD:ALL" > /etc/sudoers.d/sneak
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# run the rest as sneak:
|
# run the rest as sneak:
|
||||||
|
Loading…
Reference in New Issue
Block a user