Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Can't do SU (yes my user is in group wheel) HELP!
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
maxmc
Guru
Guru


Joined: 14 Oct 2002
Posts: 480
Location: Linköping, Sweden

PostPosted: Tue Oct 29, 2002 12:40 am    Post subject: Can't do SU (yes my user is in group wheel) HELP! Reply with quote

Before going to xXx on the theater I did:
Code:
emerge -u readline fontconfig portage e2fsprogs mod_ssl glib pam baselayout

It wanted to update 28 config files after that.. no biggie I thought
and keept all of my password and shadow files (note I didn't modify them at all)
And Now I can't do su all I get is:
Code:
max@k27 max $ su     
Password:
su: Permission denied
Sorry.
max@k27 max $


groups return:
Code:
users disk [b]wheel[/b] audio cdrom ftp video games mysql cdrw usb 407


So I should be able to do su, I am using the correct password.
I can't even starta a root session in konsole it just closes automatically.

Whats wrong? I guess pam could have screwed something up but.. what?
HELP!
Back to top
View user's profile Send private message
rac
Bodhisattva
Bodhisattva


Joined: 30 May 2002
Posts: 6553
Location: Japanifornia

PostPosted: Tue Oct 29, 2002 4:22 am    Post subject: Reply with quote

Can you log in as root on a console? If not, you may have to boot from an install CD. Check to see that root has a valid login shell, and if not, use chsh to change it to /bin/sh or something.
_________________
For every higher wall, there is a taller ladder
Back to top
View user's profile Send private message
maxmc
Guru
Guru


Joined: 14 Oct 2002
Posts: 480
Location: Linköping, Sweden

PostPosted: Tue Oct 29, 2002 10:01 pm    Post subject: Reply with quote

Yes I can login as root in a shell..
I just can't SU

It's a pain but it works..
Back to top
View user's profile Send private message
pjp
Administrator
Administrator


Joined: 16 Apr 2002
Posts: 20048

PostPosted: Tue Oct 29, 2002 10:26 pm    Post subject: Reply with quote

What is in your /etc/suauth file?
_________________
Quis separabit? Quo animo?
Back to top
View user's profile Send private message
maxmc
Guru
Guru


Joined: 14 Oct 2002
Posts: 480
Location: Linköping, Sweden

PostPosted: Tue Oct 29, 2002 10:58 pm    Post subject: Reply with quote

I have none.. maybe thats the problem...
I can't remember having one but it's allways worked before I did that
fatal emerge
Back to top
View user's profile Send private message
rac
Bodhisattva
Bodhisattva


Joined: 30 May 2002
Posts: 6553
Location: Japanifornia

PostPosted: Wed Oct 30, 2002 3:33 am    Post subject: Reply with quote

As I asked before, are you sure that root has a valid login shell? While we're at it, does your user?
_________________
For every higher wall, there is a taller ladder
Back to top
View user's profile Send private message
maxmc
Guru
Guru


Joined: 14 Oct 2002
Posts: 480
Location: Linköping, Sweden

PostPosted: Wed Oct 30, 2002 4:58 am    Post subject: Reply with quote

I use /bin/bash for both my user and root
Code:
BASH=/bin/bash
BASH_VERSINFO=([0]="2" [1]="05a" [2]="0" [3]="1" [4]="release" [5]="i686-pc-linux-gnu")
BASH_VERSION='2.05a.0(1)-release'
SHELL=/bin/bash


How do I know they are valid?
Everything has worked until I did that emerge I told you about a few posts up. So something in those emerges has to have done it.
I ran an etc-update after that and replaced many config files with the updated one since I hadn't been poking around in any of them.

Is it possible that suauth was removed? or isn't that the problem?
BTW Konsoles root shell doesn't work either
Back to top
View user's profile Send private message
pjp
Administrator
Administrator


Joined: 16 Apr 2002
Posts: 20048

PostPosted: Wed Oct 30, 2002 5:39 am    Post subject: Reply with quote

Login shells are set in the last entry of the passwd file for each user.
_________________
Quis separabit? Quo animo?
Back to top
View user's profile Send private message
maxmc
Guru
Guru


Joined: 14 Oct 2002
Posts: 480
Location: Linköping, Sweden

PostPosted: Wed Oct 30, 2002 6:00 am    Post subject: Reply with quote

Well they are still set to /bin/bash in my passwd file..
I don't see what that has to do with it.

That suauth file that you asked about isnt that important?
cause I ain't got one of those..

I thought being in the wheel group would be sufficient..
Back to top
View user's profile Send private message
rac
Bodhisattva
Bodhisattva


Joined: 30 May 2002
Posts: 6553
Location: Japanifornia

PostPosted: Wed Oct 30, 2002 6:15 am    Post subject: Reply with quote

You don't need an /etc/suauth file. What does /etc/pam.d/su look like?
_________________
For every higher wall, there is a taller ladder
Back to top
View user's profile Send private message
maxmc
Guru
Guru


Joined: 14 Oct 2002
Posts: 480
Location: Linköping, Sweden

PostPosted: Wed Oct 30, 2002 6:42 am    Post subject: Reply with quote

Ok I feel stupid... my gentoo pal across the hal just woke up and
asked me how my /etc/groups looked like..
It seems like after the latest restart Im not in wheel anymore..

I guess I messed it upp with etc-update, I don't understand why it
should go in there and mess things up... anyway everything works
now.. gaah.. need a nicer system than etc-update...
Back to top
View user's profile Send private message
Mr. Pointy
Tux's lil' helper
Tux's lil' helper


Joined: 27 May 2002
Posts: 77

PostPosted: Wed Oct 30, 2002 12:52 pm    Post subject: Reply with quote

/etc/group is in baselayout. So, i think you got a new copy when you emerged baselayout.

Then you selected to overwrite your original group file.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo 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