深圳坪山人民医院官网:Linux的超级管理员

来源:百度文库 编辑:杭州交通信息网 时间:2024/05/03 02:46:05
[root@localhost root]# useradd flyingzl
[root@localhost root]# passwd flyingzl
Changing password for user flyingzl:
New password:12345
Retype new password:12345
Passwd:all authentication tokens upgrated successfully.
能象windows一样用net localgroup administrators flyingzl /add
一样把flyingzl的权限提升吗?我想让flyingzl和root一样具有超级权限.

首先LINUX下的ROOT权限是没有任何USER能够替代的
因为ROOT的UID和GID都是0
就算把你的FLYINGZL帐号的GID修改成0在某些操作上系统还是会去检测UID的
你可以到/etc/passwd 文件里去吧FLYINGZL的GID改成0试验一下是否能满足你的需求.