当前位置:网站首页>Debian10 create users, user groups, switch users

Debian10 create users, user groups, switch users

2022-06-23 01:26:00 Halyace

#  New user group 
groupadd hausers
#  Create a new user and join the user group  
# -m  Create user home directory automatically  
# -g  Join user groups 
# -s  User login shell
# -d  User home directory 
useradd hauser -m -g hausers -s /bin/bash -d /home/hauser
#  Set the password 
passwd hauser
#  Set user permission sudo
/sbin/usermod -aG sudo hauser
#  Switching users 
su -l hauser
原网站

版权声明
本文为[Halyace]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/173/202206220916546414.html