优米格
分享有营养的

Debian 10增加SUDO用户、删除用户等操作

BraUndress.png

Debian系统增加用户、添加SUDO用户、删除用户、增加用户组的操作命令如下。

添加用户

root@debian-s:~# adduser winbert
Adding user `winbert' ...
Adding new group `winbert' (1001) ...
Adding new user `winbert' (1000) with group `winbert' ...
Creating home directory `/home/winbert' ...
Copying files from `/etc/skel' ...
New password: 
Retype new password: 
passwd: password updated successfully
Changing the user information for winbert
Enter the new value, or press ENTER for the default
    Full Name []: 
    Room Number []: 
    Work Phone []: 
    Home Phone []: 
    Other []: 
Is the information correct? [Y/n] Y

添加用户到SUDO用户组

usermod -aG sudo winbert

删除用户

deluser --remove-home winbert

新建用户组

groupadd www
赞(2)
未经允许禁止转载:优米格 » Debian 10增加SUDO用户、删除用户等操作

评论 抢沙发

合作&反馈&投稿

商务合作、问题反馈、投稿,欢迎联系

广告合作侵权联系