User Management on Linux

2017-05-02  本文已影响0人  n5ken

Show all users:

cut -d: -f1 /etc/passwd

[For Ubuntu] Add user, change password and assign to admin group (create a sudo user)

# adduser [user name]

# passwd [user name]

# usermod -aG sudo [user name]

[For CentOS]

# usermod -aG wheel [user name]

上一篇下一篇

猜你喜欢

热点阅读