Người dùng con người trong linux hàng trăm
2. Khi một bùn chuyển sang tài khoản gốc thành một dung dịch, nó ngấm xuống [su] để làm như Show 3. Nếu họ rơi trở lại vào rừng [su], hanya giống như sau usermod -G wheel centos vi /etc/pam.d/su root@localhost ~]# usermod -G wheel centos [root@localhost ~]# vi /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 line to require a user to be in the "wheel" group. # uncomment the following line auth required pam_wheel.so use_uid auth substack system-auth auth include postlogin account sufficient pam_succeed_if.so uid = 0 use_uid quiet account include system-auth password include system-auth session include system-auth session include postlogin session optional pam_xauth.so # verify settings with a user that is not in allowed group [redhat@localhost ~]$ su - Password: su: Permission denied # denied normally Quay trở lại Huấn luyện người dùng CentOSIf a snowflake delete user account, hanya set as after userdel centos serdel -r centos # remove a user [centos] (only removed user account) [root@localhost ~]# userdel centos # remove a user [centos] (removed user account and his home directory both) [root@localhost ~]# userdel -r centos
|