Password Is Required for Switching from the root User to a Common User
Symptom
During software package installation, the error message "The Root use cmd(su user) must enter the user passwd forcibly(set by /etc/pam.d/su)" may be displayed. See Figure 9-14.
Possible Causes
When the root user runs the su command to switch to another user, the user password is required.
Solution
- Enter the password of the running user to continue the installation.
- Modify the system configuration file /etc/pam.d/su so that the password is not required when the root user runs the su command to switch to another user. The modification procedure is as follows:
- Run the following command to open the configuration file /etc/pam.d/su:
vi /etc/pam.d/su
- Delete the comment tag (#) before auth sufficient pam_rootok.so, save the file, and exit.
- Run the following command to open the configuration file /etc/pam.d/su: