Linux CentOS 8 添加用戶到組中 Add User to Group


lizzy是我們新建的用戶

添加lizzy到work中:

Now to add the user lizzy to the work group with the following command:

$ sudo usermod -aG work lizzy
 
 
查看所有用戶組:

cat etc/group

grep出hadoop用戶組:

cat etc/group |grep hadoop

hadoop:x:1000:hadoop

 

添加用戶:

add another user ash.

sudo useradd -m ash

Also set password for ash.

sudo passwd ash


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM