» 2013 » April » 12 の記事

~ create user and allow sudo on centos ~

connie 2013.04.12 | Uncategorized | | No Comments

Create User

useradd connie

Change the password

passwd connie

Allow user to sudo -i

nano /etc/sudoers

找出這行

root    ALL=(ALL)       ALL

加入這行

connie   ALL=(ALL)       ALL

完成

順手關掉root 的ssh right

nano /etc/ssh/sshd_config

可以change port number

Port 2222

disable root access

PermitRootLogin no

 

| HOME |

Smiley face

April 2013
S M T W T F S
 123456
78910111213
14151617181920
21222324252627
282930