Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Can't login with sddm [solved]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
ace999999
n00b
n00b


Joined: 27 Jun 2018
Posts: 30

PostPosted: Wed Jun 19, 2019 3:37 pm    Post subject: Can't login with sddm [solved] Reply with quote

All of a sudden I can't login to my desktop.

Code:
pam_unix(sddm:auth): authentication failure; logname= uid=0 euid=0 tty= ruser= rhost= 


tty login works. ssh login works too.

I'm using xfce with sddm and openrc

I think it must be something in /etc/pam.d/ But there were no new config updates.
Code:

# etc-update
Scanning Configuration files...
Exiting: Nothing left to do; exiting. :)



Content of the sddm files.
Code:
cat sddm sddm-autologin sddm-greeter
#%PAM-1.0

auth            include         system-login
-auth           optional        pam_gnome_keyring.so
-auth   optional  pam_kwallet5.so

account         include         system-login

password        include         system-login
-password       optional        pam_gnome_keyring.so use_authtok

session         optional        pam_keyinit.so force revoke
session         include         system-login
-session                optional        pam_gnome_keyring.so auto_start
-session  optional  pam_kwallet5.so auto_start
#%PAM-1.0
auth        required    pam_env.so
auth        required    pam_tally.so file=/var/log/faillog onerr=succeed
auth        required    pam_shells.so
auth        required    pam_nologin.so
auth        required    pam_permit.so
-auth       optional    pam_gnome_keyring.so
-auth       optional    pam_kwallet5.so
account     include     system-local-login
password    include     system-local-login
session     include     system-local-login
-session    optional    pam_gnome_keyring.so auto_start
-session    optional    pam_kwallet5.so auto_start
#%PAM-1.0

# Load environment from /etc/environment and ~/.pam_environment
auth            required pam_env.so

# Always let the greeter start without authentication
auth            required pam_permit.so

# No action required for account management
account         required pam_permit.so

# Can't change password
password        required pam_deny.so

# Setup session
session         required pam_unix.so
#session                optional pam_systemd.so


Last edited by ace999999 on Sat Jun 22, 2019 8:47 am; edited 1 time in total
Back to top
View user's profile Send private message
lfs0a
n00b
n00b


Joined: 19 Oct 2016
Posts: 62

PostPosted: Thu Jun 20, 2019 3:53 pm    Post subject: Re: Can't login with sddm Reply with quote

ace999999 wrote:
All of a sudden I can't login to my desktop.

Code:
pam_unix(sddm:auth): authentication failure; logname= uid=0 euid=0 tty= ruser= rhost= 


tty login works. ssh login works too.

I'm using xfce with sddm and openrc

I think it must be something in /etc/pam.d/ But there were no new config updates.
Code:

# etc-update
Scanning Configuration files...
Exiting: Nothing left to do; exiting. :)



Content of the sddm files.
Code:
cat sddm sddm-autologin sddm-greeter
#%PAM-1.0

auth            include         system-login
-auth           optional        pam_gnome_keyring.so
-auth   optional  pam_kwallet5.so

account         include         system-login

password        include         system-login
-password       optional        pam_gnome_keyring.so use_authtok

session         optional        pam_keyinit.so force revoke
session         include         system-login
-session                optional        pam_gnome_keyring.so auto_start
-session  optional  pam_kwallet5.so auto_start
#%PAM-1.0
auth        required    pam_env.so
auth        required    pam_tally.so file=/var/log/faillog onerr=succeed
auth        required    pam_shells.so
auth        required    pam_nologin.so
auth        required    pam_permit.so
-auth       optional    pam_gnome_keyring.so
-auth       optional    pam_kwallet5.so
account     include     system-local-login
password    include     system-local-login
session     include     system-local-login
-session    optional    pam_gnome_keyring.so auto_start
-session    optional    pam_kwallet5.so auto_start
#%PAM-1.0

# Load environment from /etc/environment and ~/.pam_environment
auth            required pam_env.so

# Always let the greeter start without authentication
auth            required pam_permit.so

# No action required for account management
account         required pam_permit.so

# Can't change password
password        required pam_deny.so

# Setup session
session         required pam_unix.so
#session                optional pam_systemd.so


uid=0,
You login as root?
Back to top
View user's profile Send private message
ace999999
n00b
n00b


Joined: 27 Jun 2018
Posts: 30

PostPosted: Thu Jun 20, 2019 4:09 pm    Post subject: Reply with quote

Quote:
uid=0,
You login as root?

No. But it shows there always uid=0 doesn't matter which user or if I login by ssh. My user id is 1000.

Code:

sddm-helper: pam_unix(sddm:auth): authentication failure; logname= uid=0 euid=0 tty= ruser= rhost=  user=ace
sddm-helper: pam_unix(sddm:auth): authentication failure; logname= uid=0 euid=0 tty= ruser= rhost=  user=frank
sshd[21277]: pam_unix(sshd:session): session opened for user ace by (uid=0)
Back to top
View user's profile Send private message
ace999999
n00b
n00b


Joined: 27 Jun 2018
Posts: 30

PostPosted: Fri Jun 21, 2019 8:57 am    Post subject: Reply with quote

May its not pam.d because I deleted the content of /etc/pam.d rebuild with everything with
Code:
emerge -e world ; etc-update
Still not working.
Back to top
View user's profile Send private message
wrc1944
Advocate
Advocate


Joined: 15 Aug 2002
Posts: 3345
Location: Gainesville, Florida

PostPosted: Fri Jun 21, 2019 4:47 pm    Post subject: Reply with quote

What version are you running? You might try downgrading sddm to 0.15.0. I run three Gentoo ~amd64 systems, and no version higher than 0.15.0 has ever worked for over a year. It is masked, but they keep it available just for this reason- some Gentoo systems can't seem to use anything else, and for me at least the reason is still unknown. :?

AFAIK, there is as yet no answer as to why this is the case. :roll:
_________________
Main box- AsRock x370 Gaming K4
Ryzen 7 3700x, 3.6GHz, 16GB GSkill Flare DDR4 3200mhz
Samsung SATA 1000GB, Radeon HD R7 350 2GB DDR5
Gentoo ~amd64 plasma, glibc-2.30-r6, gcc-9.3.0 kernel-5.5.11-gentoo USE=experimental
Back to top
View user's profile Send private message
ace999999
n00b
n00b


Joined: 27 Jun 2018
Posts: 30

PostPosted: Fri Jun 21, 2019 5:11 pm    Post subject: Reply with quote

Interesting. After I read your comment I tried version 1.18.1 and 0.15.0 but no change.
Back to top
View user's profile Send private message
wrc1944
Advocate
Advocate


Joined: 15 Aug 2002
Posts: 3345
Location: Gainesville, Florida

PostPosted: Fri Jun 21, 2019 7:14 pm    Post subject: Reply with quote

I run kde mostly but do use xfce4 also, and 0.15.0 always works. lightdm also works, but I prefer sddm.

Maybe run revdep-rebuild -pv and see if anything needs a rebuild. I see you did rebuild pam and even -e world.

Does lightdm work? Might be worth a shot even if just to see if the problem is sddm.
_________________
Main box- AsRock x370 Gaming K4
Ryzen 7 3700x, 3.6GHz, 16GB GSkill Flare DDR4 3200mhz
Samsung SATA 1000GB, Radeon HD R7 350 2GB DDR5
Gentoo ~amd64 plasma, glibc-2.30-r6, gcc-9.3.0 kernel-5.5.11-gentoo USE=experimental
Back to top
View user's profile Send private message
ace999999
n00b
n00b


Joined: 27 Jun 2018
Posts: 30

PostPosted: Sat Jun 22, 2019 8:46 am    Post subject: Reply with quote

Thanks for the help. I installed Lightdm and somehow it works now.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum