Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Solved] Systemd interferes with sudo
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
Leo Lausren
Apprentice
Apprentice


Joined: 24 Feb 2004
Posts: 198
Location: Denmark

PostPosted: Sat Mar 10, 2012 9:25 am    Post subject: [Solved] Systemd interferes with sudo Reply with quote

I have recently installed systemd, and I kind of like it, even if it is a bit rough at the edges.
Yesterday suddenly, sudo started to malfuntion.
Code:
leo@nagual ~ $ sudo su -
leo@nagual ~ $

Nothing happens. I can su to root, but would like to avoid typing password.

If I boot using openrc, the command works as normal.
Anybody have a suggestion as how to remedy this, or how to find out what goes wrong?
I'm guessing pam, but I have never really messed with it, I gave up trying to understand what goes on there.

Incidentally, the Danish translation in sudo confused me quite a lot:
Code:
leo@nagual ~ $ sudo -l
Bruger leo må ikke køre de følgende kommandoer på denne vært:
    (ALL) NOPASSWD: ALL
leo@nagual ~ $ export LANG=C
leo@nagual ~ $ sudo -l
User leo may run the following commands on this host:
    (ALL) NOPASSWD: ALL
leo@nagual ~ $

The translation is actuallly: User leo may not run the following commands on this host:
I searched the po file on the translation project, but didn't see this phrase.
_________________
Blog: common sense – nonsense


Last edited by Leo Lausren on Mon Mar 12, 2012 11:23 am; edited 1 time in total
Back to top
View user's profile Send private message
yngwin
Retired Dev
Retired Dev


Joined: 19 Dec 2002
Posts: 4572
Location: Suzhou, China

PostPosted: Sat Mar 10, 2012 9:29 am    Post subject: Re: Systemd interferes with sudo Reply with quote

Leo Lausren wrote:
If I boot using openrc, the command works as normal.
Anybody have a suggestion as how to remedy this

Don't use systemd.
_________________
"Those who deny freedom to others deserve it not for themselves." - Abraham Lincoln
Free Culture | Defective by Design | EFF
Back to top
View user's profile Send private message
Leo Lausren
Apprentice
Apprentice


Joined: 24 Feb 2004
Posts: 198
Location: Denmark

PostPosted: Mon Mar 12, 2012 11:23 am    Post subject: Re: Systemd interferes with sudo Reply with quote

After finally getting syslog-ng to work, I found a solution.
The systemd page on Gentoo Linux Wiki, led me to add this to /etc/pam.d/system-auth
Code:
session     optional    pam_systemd.so kill-user=1 controllers=

In the log I found
Code:
pam_systemd(su:session): Option kill-user=1 not supported anymore, ignoring

removing "kill-user=1" didn't help, but removing the line did.
Bottom line is, just ignore the pam support section on the wiki.
_________________
Blog: common sense – nonsense
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software 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