Last active
March 10, 2024 13:21
-
-
Save KarimullinArthur/d5199fb7162dd547826e2d081d7c1011 to your computer and use it in GitHub Desktop.
Revisions
-
KarimullinArthur revised this gist
Mar 10, 2024 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
Empty file. -
KarimullinArthur created this gist
Oct 25, 2023 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,21 @@ #!/usr/bin/bash ADMIN_USER=arthur echo Bot Name read name useradd -s /bin/bash $name mkdir /home/$name passwd $name usermod -aG sudo $name ln -s /home/$ADMIN_USER/.profile /home/$name/.profile ln -s /home/$ADMIN_USER/.bashrc /home/$name/.bashrc mkdir /home/$name/.ssh ln -s /home/$ADMIN_USER/.ssh/id* /home/$name/ chown -R $name /home/$name chgrp -R $name /home/$name