Install sudo!
This commit is contained in:
parent
89d316a57a
commit
e225f5e11a
2 changed files with 5 additions and 0 deletions
|
@ -124,6 +124,10 @@ echo "and other machines before proceeding."
|
||||||
echo
|
echo
|
||||||
echo "Don't forget to setup GPG keys by importing from an existing machine"
|
echo "Don't forget to setup GPG keys by importing from an existing machine"
|
||||||
echo "or adding new child keys!"
|
echo "or adding new child keys!"
|
||||||
|
if test $is_arch_linux -eq 1; then
|
||||||
|
echo
|
||||||
|
echo 'You will need to set a password for your new user.'
|
||||||
|
fi
|
||||||
echo
|
echo
|
||||||
echo "The simplest method for doing this is to run the following:"
|
echo "The simplest method for doing this is to run the following:"
|
||||||
echo ' scp -r "$TARGET_MACHINE:~/.gnupg" "$HOME/.gnupg'
|
echo ' scp -r "$TARGET_MACHINE:~/.gnupg" "$HOME/.gnupg'
|
||||||
|
|
1
env/arch-linux/provision.d/00-add-user.bash
vendored
1
env/arch-linux/provision.d/00-add-user.bash
vendored
|
@ -6,6 +6,7 @@ ud="/home/$u"
|
||||||
# user exists - we will assume setup has already run
|
# user exists - we will assume setup has already run
|
||||||
if getent passwd "$u"; then exit 0; fi
|
if getent passwd "$u"; then exit 0; fi
|
||||||
|
|
||||||
|
pacman -S --needed sudo
|
||||||
groupadd admin 2>/dev/null
|
groupadd admin 2>/dev/null
|
||||||
mkdir --parents "$ud/.home" "$ud/dl"
|
mkdir --parents "$ud/.home" "$ud/dl"
|
||||||
useradd --home-dir "$ud/.home" \
|
useradd --home-dir "$ud/.home" \
|
||||||
|
|
Reference in a new issue