Created
May 18, 2011 12:53
-
-
Save cowboycoded/978519 to your computer and use it in GitHub Desktop.
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 characters
useradd app_user | |
passwd app_user | |
vi /etc/sudoers #open sudoers in your favorite text edit | |
# add the following line below "root ALL=(ALL) ALL" : | |
# app_user ALL=(ALL) ALL | |
# save file and exit | |
#disable root login from ssh, so nobody is able to brute force a root login | |
vi /etc/ssh/sshd_config | |
#uncomment "PermitRootLogin yes" and change it to "PermitRootLogin no" | |
/etc/init.d/sshd restart | |
#logout and login or su to your new user | |
su app_user | |
cd ~ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment