You are not logged in.

#1 2020-05-12 16:32:20

archdom
Member
Registered: 2018-09-12
Posts: 96

[SOLVED]PAM and ROOT user

Hi guys,
I can't log in as root user.
i run

su

password entering and don't takes effect.
journalctl -f

su[2766]: pam_unix(su:session): session opened for user root by ...(uid=1000)
su[2766]: pam_unix(su:session): session closed for user root

/etc/pam.d/su

cat /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.
#auth           required        pam_wheel.so use_uid
auth            required        pam_unix.so
account         required        pam_unix.so
session         required        pam_unix.so

pam close the session.
I reinstalled pam package but dont works.
Anyone can help me?
Regards

Last edited by archdom (2020-05-12 19:55:16)

Offline

#2 2020-05-12 18:11:29

loqs
Member
Registered: 2014-03-06
Posts: 19,070

Re: [SOLVED]PAM and ROOT user

What if you login as root at a login prompt instead of using su?

Offline

#3 2020-05-12 18:19:13

archdom
Member
Registered: 2018-09-12
Posts: 96

Re: [SOLVED]PAM and ROOT user

loqs wrote:

What if you login as root at a login prompt instead of using su?

entering root user and password in sddm login redirects my user login.

Last edited by archdom (2020-05-12 18:39:50)

Offline

#4 2020-05-12 18:43:28

archdom
Member
Registered: 2018-09-12
Posts: 96

Re: [SOLVED]PAM and ROOT user

/etc/shadow

root:....:18394::::::

/etc/passwd

root:x:0:0::/root:/bin/bash

Last edited by archdom (2020-05-12 20:00:42)

Offline

#5 2020-05-12 19:54:48

archdom
Member
Registered: 2018-09-12
Posts: 96

Re: [SOLVED]PAM and ROOT user

there was wrong in .bashrc file of root user.
I delete it and works.
Mark as solved

Offline

#6 2020-05-12 19:57:47

loqs
Member
Registered: 2014-03-06
Posts: 19,070

Re: [SOLVED]PAM and ROOT user

I would suggest you edit post #4 to remove sharing the hash of the system's root password.

Offline

#7 2020-05-12 20:01:13

archdom
Member
Registered: 2018-09-12
Posts: 96

Re: [SOLVED]PAM and ROOT user

loqs wrote:

I would suggest you edit post #4 to remove sharing the hash of the system's root password.

done. Thanks!

Offline

Board footer

Powered by FluxBB