命令创建账号和密码 adduser Mysticbinary #添加一个Mysticbinary用户 passwd Mysticbinary # 输入密码 授予可以切换root的权限 修改/etc/sudoers文件. vim /etc/sudoers # Allow root to run any commands anywhere root ALL=(ALL) ALL Mysticbinary ALL=(ALL) ALL 修改完后,就可以用Mysticbinary帐号登录,然后用命令 su
[root@ok ~]# vim /etc/pam.d/su 下面是/etc/pam.d/su文件的内容 #%PAM-1.0 auth sufficient pam_rootok.so # Uncomment the following line to implicitly trust users in the "wheel" group. #auth sufficient pam_wheel.so trust use_uid # Uncomment the following lin