View previous topic :: View next topic |
Author |
Message |
maxmc Guru
Joined: 14 Oct 2002 Posts: 480 Location: Linköping, Sweden
|
Posted: Tue Oct 29, 2002 12:40 am Post subject: Can't do SU (yes my user is in group wheel) HELP! |
|
|
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 |
|
|
rac Bodhisattva
Joined: 30 May 2002 Posts: 6553 Location: Japanifornia
|
Posted: Tue Oct 29, 2002 4:22 am Post subject: |
|
|
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 |
|
|
maxmc Guru
Joined: 14 Oct 2002 Posts: 480 Location: Linköping, Sweden
|
Posted: Tue Oct 29, 2002 10:01 pm Post subject: |
|
|
Yes I can login as root in a shell..
I just can't SU
It's a pain but it works.. |
|
Back to top |
|
|
pjp Administrator
Joined: 16 Apr 2002 Posts: 20048
|
Posted: Tue Oct 29, 2002 10:26 pm Post subject: |
|
|
What is in your /etc/suauth file? _________________ Quis separabit? Quo animo? |
|
Back to top |
|
|
maxmc Guru
Joined: 14 Oct 2002 Posts: 480 Location: Linköping, Sweden
|
Posted: Tue Oct 29, 2002 10:58 pm Post subject: |
|
|
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 |
|
|
rac Bodhisattva
Joined: 30 May 2002 Posts: 6553 Location: Japanifornia
|
Posted: Wed Oct 30, 2002 3:33 am Post subject: |
|
|
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 |
|
|
maxmc Guru
Joined: 14 Oct 2002 Posts: 480 Location: Linköping, Sweden
|
Posted: Wed Oct 30, 2002 4:58 am Post subject: |
|
|
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 |
|
|
pjp Administrator
Joined: 16 Apr 2002 Posts: 20048
|
Posted: Wed Oct 30, 2002 5:39 am Post subject: |
|
|
Login shells are set in the last entry of the passwd file for each user. _________________ Quis separabit? Quo animo? |
|
Back to top |
|
|
maxmc Guru
Joined: 14 Oct 2002 Posts: 480 Location: Linköping, Sweden
|
Posted: Wed Oct 30, 2002 6:00 am Post subject: |
|
|
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 |
|
|
rac Bodhisattva
Joined: 30 May 2002 Posts: 6553 Location: Japanifornia
|
Posted: Wed Oct 30, 2002 6:15 am Post subject: |
|
|
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 |
|
|
maxmc Guru
Joined: 14 Oct 2002 Posts: 480 Location: Linköping, Sweden
|
Posted: Wed Oct 30, 2002 6:42 am Post subject: |
|
|
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 |
|
|
Mr. Pointy Tux's lil' helper
Joined: 27 May 2002 Posts: 77
|
Posted: Wed Oct 30, 2002 12:52 pm Post subject: |
|
|
/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 |
|
|
|