Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Su problems
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
Leafy-dono
n00b
n00b


Joined: 04 Nov 2002
Posts: 22
Location: Rockanje, The Netherlands

PostPosted: Tue Sep 16, 2003 11:09 am    Post subject: Su problems Reply with quote

Ok, before I get flamed for posting a thing that has problably come up millions of times before, I want to mention that I indeed have used the search but su is a 2 letter word, and I think the search requires a minimum of 3, hence I haven't been able to find a solution yet.

This happened when I tried to run k3bsetup using kdesu. I got an error saying the password was invalid, so I tried again, made sure the password was correct, but nothing.
Then I tried a normal command line su, guess what, same error
Code:
max@Mitsuki max $ su
Password:
su: Authentication failure
Sorry.

But when I look at /etc/group I AM in fact registered to the wheel:
Code:
root::0:root
bin::1:root,bin,daemon
daemon::2:root,bin,daemon
sys::3:root,bin,adm
adm::4:root,adm,daemon
tty::5:
disk::6:root,adm
lp::7:lp
mem::8:
kmem::9:
wheel::10:root,max
floppy::11:root
mail::12:mail,postfix
news::13:news
uucp::14:uucp
man::15:man
cron::16:cron
console::17:
audio::18:max
cdrom::19:
dialout::20:root
ftp::21:
sshd::22:
at::25:at
tape::26:root
video::27:root
squid::31:squid
gdm::32:gdm
xfs::33:xfs
games::35:user
named::40:named
mysql:x:60:
postgres::70:
cdrw::80:
apache::81:
nut::84:
usb::85:
vpopmail:x:89:
users::100:games,max
nofiles:x:200:
qmail:x:201:
postfix:x:207:
postdrop:x:208:
smmsp:x:209:smmsp
slocate::245:
portage::250:portage,wheel,max
utmp:x:406:
nogroup::65533:
nobody::65534:

And a "groups max" gives the following:
Code:
max@Mitsuki max $ groups max
max : users wheel audio portage


An even stranger thing is that something like
Code:
sudo su
or
Code:
sudo su -
does work.
Code:
max@Mitsuki max $ su
Password:
su: Authentication failure
Sorry.
max@Mitsuki max $ sudo su
root@Mitsuki max #

This however does not solve my problem.

Can anyone help me out with this?
Back to top
View user's profile Send private message
silverter
Guru
Guru


Joined: 10 Apr 2002
Posts: 491
Location: Ulm, DE

PostPosted: Tue Sep 16, 2003 11:47 am    Post subject: Reply with quote

What output do you get when you issue
Code:
su - root
and type in the ROOT's password not the USER's password...

HTH

regards
_________________
-- A Guru was once a Beginner --
Back to top
View user's profile Send private message
Leafy-dono
n00b
n00b


Joined: 04 Nov 2002
Posts: 22
Location: Rockanje, The Netherlands

PostPosted: Tue Sep 16, 2003 2:09 pm    Post subject: Reply with quote

silverter wrote:
What output do you get when you issue
Code:
su - root
and type in the ROOT's password not the USER's password...

HTH

regards


It's basicly the same output
Code:
max@Mitsuki max $ su - root
Password:
su: Authentication failure
Sorry.
max@Mitsuki max $


And ofcourse I'm typing in the root password :)
Back to top
View user's profile Send private message
cederberg
Guru
Guru


Joined: 23 Jan 2003
Posts: 349
Location: Stockholm / Sweden

PostPosted: Tue Sep 16, 2003 2:15 pm    Post subject: Reply with quote

Leafy-dono wrote:
And ofcourse I'm typing in the root password :)

Ok, dumb question: are you sure you can login with the root password? I mean, have you tested it on the console or something?
Back to top
View user's profile Send private message
ank
Apprentice
Apprentice


Joined: 06 Aug 2003
Posts: 185
Location: Maribor, Slovenia

PostPosted: Tue Sep 16, 2003 2:36 pm    Post subject: Reply with quote

Are you in wheel group?

Type group to see.
Back to top
View user's profile Send private message
silverter
Guru
Guru


Joined: 10 Apr 2002
Posts: 491
Location: Ulm, DE

PostPosted: Tue Sep 16, 2003 3:26 pm    Post subject: Reply with quote

ank wrote:
Are you in wheel group?

Type group to see.

He is in the wheel group, read his first post !!!!
_________________
-- A Guru was once a Beginner --
Back to top
View user's profile Send private message
Leafy-dono
n00b
n00b


Joined: 04 Nov 2002
Posts: 22
Location: Rockanje, The Netherlands

PostPosted: Tue Sep 16, 2003 5:01 pm    Post subject: Reply with quote

cederberg wrote:
Leafy-dono wrote:
And ofcourse I'm typing in the root password :)

Ok, dumb question: are you sure you can login with the root password? I mean, have you tested it on the console or something?

I can login as root aswell :?
Wether I SSH from any computer to this one, or wether I just login as root, it's no problem, just when it comes to su or su - it denies me.
Back to top
View user's profile Send private message
cederberg
Guru
Guru


Joined: 23 Jan 2003
Posts: 349
Location: Stockholm / Sweden

PostPosted: Tue Sep 16, 2003 10:15 pm    Post subject: Reply with quote

Leafy-dono wrote:
I can login as root aswell :?
Wether I SSH from any computer to this one, or wether I just login as root, it's no problem, just when it comes to su or su - it denies me.

I see, the root user really works... So, next dumb question:
You're not having a /etc/security/suauth.allow file or something weird in /etc/pam.d/su?

You can read "man pam" for more information (if you dare)... ;-)

EDIT: Maybe this thread contains some relevant information.
Back to top
View user's profile Send private message
Leafy-dono
n00b
n00b


Joined: 04 Nov 2002
Posts: 22
Location: Rockanje, The Netherlands

PostPosted: Thu Sep 18, 2003 6:43 pm    Post subject: Reply with quote

cederberg wrote:
Leafy-dono wrote:
I can login as root aswell :?
Wether I SSH from any computer to this one, or wether I just login as root, it's no problem, just when it comes to su or su - it denies me.

I see, the root user really works... So, next dumb question:
You're not having a /etc/security/suauth.allow file or something weird in /etc/pam.d/su?

You can read "man pam" for more information (if you dare)... ;-)

EDIT: Maybe this thread contains some relevant information.


Thanks! :)
That link looks promising. I infact compiled this system from a stage 1 tarball using gcc 3.3.1-r2 as my compiler. Someone in that thread mentioned it was broken (WHY isn't it masked :?), so I'm recompiling gcc to the latest 3.2 version and after that I'm gonna run an emerge -e world, as suggested there.

I"ll post my results when it finishes (ough to take a while indeed :roll: )
Back to top
View user's profile Send private message
Leafy-dono
n00b
n00b


Joined: 04 Nov 2002
Posts: 22
Location: Rockanje, The Netherlands

PostPosted: Thu Sep 18, 2003 6:44 pm    Post subject: Reply with quote

[EDIT]Sorry, double post[/EDIT]
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