创建超级权限用户

Share on:

Overview

  1. MobaxXterm:

    1. 【Session】–【SSH】–【Remote host】–【勾选Specify username:root】–【OK】

    2. root@140.82.16.71’s password: 粘贴密码并回车选择Yes

    3. 清屏 输入 clear 并回车

    4. 添加新用户scaleya: adduser scaleya

1root@vultr:~# adduser scaleya
2Adding user `scaleya' ...
3Adding new group `scaleya' (1000) ...
4Adding new user `scaleya' (1000) with group `scaleya' ...
5Creating home directory `/home/scaleya' ...
6Copying files from `/etc/skel' ...
7New password:
5. 输入新密码并回车: `scaleya.com` 然后再输入一遍
1Retype new password:
6. 设置用户信息,直接回车即可,输入y
1passwd: password updated successfully
2Changing the user information for scaleya
3Enter the new value, or press ENTER for the default
4        Full Name []:
5        Room Number []:
6        Work Phone []:
7        Home Phone []:
8        Other []:
9Is the information correct? [Y/n] y
7. 赋予用户`scaleya`超级权限
1usermod -aG sudo scaleya
8. 切换用户到`scaleya`
1root@vultr:~# su - scaleya

sudo apt-get install libncurses5-dev libncursesw5-dev