Gentoo Archives: gentoo-user

From: Iain Buchanan <iaindb@××××××××××××.au>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] SSH fixed; now su doesn't work
Date: Mon, 15 Sep 2008 02:22:01
Message-Id: 48CDC6AA.6020602@netspace.net.au
In Reply to: [gentoo-user] SSH fixed; now su doesn't work by Michael Sullivan
1 Michael Sullivan wrote:
2 > I can ssh over to the old box now, but my su command doesn't work:
3 >
4 >
5 > michael@bullet ~ $ su -
6 > su: Authentication failure
7 >
8 >> From /var/log/messages:
9 >
10 > Sep 13 23:23:07 bullet sshd[24134]: pam_unix(sshd:session): session
11 > opened for user michael by (uid=0)
12 > Sep 13 23:23:10 bullet su[24142]: FAILED su for root by michael
13 > Sep 13 23:23:10 bullet su[24142]: - pts/1 michael:root
14 >
15 > At first, I thought I might not be in the wheel group, so I checked:
16 >
17 > bullet log # grep wheel /etc/group
18 > wheel:x:10:root,michael,amy
19 >
20 > What have I done wrong this time? (I know somebody's going to gripe at
21 > me about using the root account this way; don't bother. There are far
22 > too many tasks I do every day that require root privileges to configure
23 > them all for sudo...)
24
25 does "sudo su -" work? A bit round-about but if su works from sudo,
26 then it probably isn't a pam issue...
27
28 And as much as you might like sudo, sometimes it just ain't suitable.
29
30 eg:
31
32 sudo echo performance > /sys/devices/system/cpu/cpu0/cpufreq
33 scaling_governor
34
35 won't work because the redirection is done as the user :)
36 --
37 Iain Buchanan <iaindb at netspace dot net dot au>
38
39 I have a friend whose a billionaire. He invented Cliff's notes. When
40 I asked him how he got such a great idea he said, "Well first I...
41 I just... to make a long story short..."
42 -- Steven Wright

Replies

Subject Author
Re: [gentoo-user] SSH fixed; now su doesn't work Norberto Bensa <nbensa@×××××.com>