|
|
|
@ -9,11 +9,14 @@ adduser --gecos $USER --disabled-login $USER --uid $UGID
|
|
|
|
|
echo "I: set user $USER password to $USER"
|
|
|
|
|
echo "$USER:$USER" | chpasswd
|
|
|
|
|
|
|
|
|
|
echo "I: allowing user to log in without password"
|
|
|
|
|
gpasswd -a $USER nopasswdlogin
|
|
|
|
|
|
|
|
|
|
adduser --gecos system --no-create-home --disabled-login --disabled-password system --uid 1000
|
|
|
|
|
adduser --gecos radio --no-create-home --disabled-login --disabled-password radio --uid 1001
|
|
|
|
|
|
|
|
|
|
# Prevent the system user from being presented in the greeter by bumping MIN_UID
|
|
|
|
|
sed -i 's/^\(UID_MIN\s\+\).*/\11001/g' /etc/login.defs
|
|
|
|
|
sed -i 's/^\(UID_MIN\s\+\).*/\11002/g' /etc/login.defs
|
|
|
|
|
|
|
|
|
|
mkdir -p /home/$USER/Music
|
|
|
|
|
mkdir -p /home/$USER/Pictures
|
|
|
|
|