Error su: Module is unknown

General support questions
Post Reply
sanketphadke
Posts: 2
Joined: 2024/01/29 18:58:37

Error su: Module is unknown

Post by sanketphadke » 2024/01/29 19:05:22

When try to su to root account from normal user(having root privileges), it prompts error "su: Module is unknown" after entering password.

I checked /var/logs/secure logs showing message
su: PAM unable to resolve symbol: pam_sm_acct_mgmt

User avatar
jlehtone
Posts: 4509
Joined: 2007/12/11 08:17:33
Location: Finland

Re: Error su: Module is unknown

Post by jlehtone » 2024/01/31 07:25:28

yum provides */pam_sm_acct_mgmt\* tells that package pam-devel has a man page for that.

man pam_sm_acct_mgmt then reveals that:
The pam_sm_acct_mgmt function is the service module's implementation of the pam_acct_mgmt(3) interface.
The package pam-devel is merely headers, etc that is used to build binaries that do use those functions. The actual implementation for those functions, the library, that is in package pam. That package is very unlikely to be missing (as it is essential), and has not been updated in years.

You can nevertheless check the status of that package: rpm -V pam

---

One does not need to use 'su' in most situations. The 'sudo' has similar function. (And so do 'ksu' and 'runuser', but for more specific cases.)

sanketphadke
Posts: 2
Joined: 2024/01/29 18:58:37

Re: Error su: Module is unknown

Post by sanketphadke » 2024/01/31 08:59:19

Thank you @ jlehtone for your help.

Instead of using sudo su , I used sudo -i . it worked for me. I am able to switch to root user.

lightman47
Posts: 1508
Joined: 2014/05/21 20:16:00
Location: Central New York, USA

Re: Error su: Module is unknown

Post by lightman47 » 2024/02/07 20:17:44

there's also su -

User avatar
TrevorH
Site Admin
Posts: 33154
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Error su: Module is unknown

Post by TrevorH » 2024/02/08 01:11:54

I think it is su that is broken. I'd suggest trying `rpm -Va util-linux pam\*` and see if anything is reported as changed/missing.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

Post Reply