Linux中配置sudo用户访问权限

一、如何在 Linux 中配置 sudo 的访问权限

1.1、添加一个Linux普通用户有 sudo 权限

[root@localhost ~]# useradd test  // 创建一个普通用户为:test

[root@localhost ~]#

[root@localhost ~]# passwd test  // 设置用户test密码为:test

Changing password for user test.

New password: # test

BAD PASSWORD: The password is shorter than 8 characters

Retype new password:   # test

passwd: all authentication tokens updated successfully.  # 看到successfully 表示设置成功

你可能感兴趣的:(《网络建设与运维》知识讲座,linux,运维,服务器)