Skip to content

Commit

Permalink
Update ptsadd
Browse files Browse the repository at this point in the history
  • Loading branch information
MrDoobPG authored and MrDoobPG committed Oct 23, 2019
1 parent 618f681 commit 6bbe587
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions menu/alias/templates/ptsadd
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ if [ $(grep "1000" /etc/passwd | cut -d: -f1 | awk '{print $1}') ]; then
usermod -aG sudo $(grep "1000" /etc/passwd | cut -d: -f1 | awk '{print $1}')
sudo usermod -s /bin/bash $(grep "1000" /etc/passwd | cut -d: -f1 | awk '{print $1}')
sudo usermod -aG video $(grep "1000" /etc/passwd | cut -d: -f1 | awk '{print $1}')
sudo usermod -aG docker $(grep "1000" /etc/passwd | cut -d: -f1 | awk '{print $1}')
echo "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"
echo ""
echo " ✅ PASSED ! We found the user UID " $(grep "1000" /etc/passwd | cut -d: -f1 | awk '{print $1}')
Expand All @@ -26,6 +27,7 @@ else
usermod -aG sudo $username
sudo usermod -s /bin/bash $username
usermod -aG video $username
usermod -aG docker $username
echo ""
echo "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"
echo " ✅ PASSED ! User has been added to system!"
Expand Down

0 comments on commit 6bbe587

Please sign in to comment.