Ubuntu 创建sudo用户

版权声明:知识在分享中升华,思想在交流中沉淀,欢迎大家转载。 https://blog.csdn.net/qwfys200/article/details/82589994
ubuntu@ubuntu16.04:~$ sudo adduser lwk
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
    LANGUAGE = (unset),
    LC_ALL = (unset),
    LC_PAPER = "zh_CN.UTF-8",
    LC_ADDRESS = "zh_CN.UTF-8",
    LC_MONETARY = "zh_CN.UTF-8",
    LC_NUMERIC = "zh_CN.UTF-8",
    LC_TELEPHONE = "zh_CN.UTF-8",
    LC_IDENTIFICATION = "zh_CN.UTF-8",
    LC_MEASUREMENT = "zh_CN.UTF-8",
    LC_NAME = "zh_CN.UTF-8",
    LANG = "en_US.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to a fallback locale ("en_US.UTF-8").
Adding user `lwk' ...
Adding new group `lwk' (1001) ...
Adding new user `lwk' (1001) with group `lwk' ...
Creating home directory `/home/lwk' ...
Copying files from `/etc/skel' ...
Enter new UNIX password: 
Retype new UNIX password: 
passwd: password updated successfully
Changing the user information for lwk
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
ubuntu@ubuntu16.04:~$ sudo usermod -aG sudo lwk
ubuntu@ubuntu16.04:~$ 

猜你喜欢

转载自blog.csdn.net/qwfys200/article/details/82589994