#adduser username
修改 /etc/sudoers 文件,找到下面一行,在root下面添加一行,如下所示:
## Allow root to run any commands anywhere
root ALL=(ALL) ALL
username ALL=(ALL) ALL
修改成功后用 sudo su命令或者su命令
2023-01-17 07:36:45
#adduser username
修改 /etc/sudoers 文件,找到下面一行,在root下面添加一行,如下所示:
## Allow root to run any commands anywhere
root ALL=(ALL) ALL
username ALL=(ALL) ALL
修改成功后用 sudo su命令或者su命令