Last active
August 23, 2017 10:41
-
-
Save Edison-Hsu/b90acf5af30ee5217cb08f6535d5ed86 to your computer and use it in GitHub Desktop.
Revisions
-
Edison-Hsu revised this gist
Aug 23, 2017 . 1 changed file with 7 additions and 1 deletion.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 @@ -6,4 +6,10 @@ usermod -aG sudo #{username} # Test sudo access on new user account su - #{username} sudo ls -la /root su - #{username} mkdir ~/.ssh touch authorized_keys # add key -
Edison-Hsu renamed this gist
Aug 21, 2017 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
Edison-Hsu renamed this gist
Aug 21, 2017 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
Edison-Hsu revised this gist
Aug 21, 2017 . 1 changed file with 9 additions and 1 deletion.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 @@ -1 +1,9 @@ # Use the adduser command to add a new user to your system. adduser #{username} # Use the usermod command to add the user to the sudo group. usermod -aG sudo #{username} # Test sudo access on new user account su - #{username} sudo ls -la /root -
Edison-Hsu created this gist
Aug 21, 2017 .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 @@ `adduser username`