admin管理员组

文章数量:1542785

linux centos7新建用户赋予root权限

新建用户
adduser test

给新建的用户设置密码,test是新建的用户名字
passwd test

给新建用户赋予root权限
echo 'test ALL=(ALL) ALL' >> /etc/sudoers

查看/etc/sudoers是否已经加上
test ALL=(ALL) ALL

本文标签: 权限用户Linuxroot