Skip to content
Snippets Groups Projects
Commit c4de2e86 authored by Bob Mottram's avatar Bob Mottram
Browse files

Add and remove groups when for users

parent e51e1a9c
No related branches found
No related tags found
No related merge requests found
......@@ -79,6 +79,7 @@ chmod 600 /etc/shadow
chmod 600 /etc/gshadow
useradd -m -p "$NEW_USER_PASSWORD" -s /bin/bash $ADD_USERNAME
adduser $ADD_USERNAME sasl
groupadd $ADD_USERNAME
chmod 0000 /etc/shadow
chmod 0000 /etc/gshadow
......
......@@ -139,6 +139,7 @@ done
chmod 600 /etc/shadow
chmod 600 /etc/gshadow
userdel -r $REMOVE_USERNAME
groupdel $REMOVE_USERNAME
chmod 0000 /etc/shadow
chmod 0000 /etc/gshadow
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment