Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
cant su
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Duplicate Threads
View previous topic :: View next topic  
Author Message
thardy01
Tux's lil' helper
Tux's lil' helper


Joined: 05 Aug 2002
Posts: 76

PostPosted: Tue Aug 06, 2002 4:14 am    Post subject: cant su Reply with quote

ok first off im fairly new to linux and a complete noob to gentoo. The only distro Ive tried before a week ago is Mandrake 8.2 The reason im metioning this is so hopefully if anyone responds to my post they wont assume I know anything because I dont. :-D

Anyhow my question is after installing gentoo and setting up Xfree and kde I wanted to make a login for myself. So I emerged superadduser being as it seemed the easiest way to do.

All went well except when I log in as the user I cant use the su command whenever I do it tells me that permission is denied. Ive also tried doing it with the wrong password on purpose and that gives a totally different message. So I know im using the right password .

Any help as to what I might be doing wrong is greatly appreciated.
Back to top
View user's profile Send private message
rac
Bodhisattva
Bodhisattva


Joined: 30 May 2002
Posts: 6553
Location: Japanifornia

PostPosted: Tue Aug 06, 2002 4:18 am    Post subject: Re: cant su Reply with quote

Check out the FAQ, search for wheel. While you're at it, search for "wheel group" using the forums search, too. Add your user to the wheel group if not a member already as many have done before you.
_________________
For every higher wall, there is a taller ladder
Back to top
View user's profile Send private message
thardy01
Tux's lil' helper
Tux's lil' helper


Joined: 05 Aug 2002
Posts: 76

PostPosted: Tue Aug 06, 2002 4:47 am    Post subject: Reply with quote

Thanks for the quick answer. I havent been able to test it yet because I currently compiling a program. As far as searching the forum that seems to be broke. It just reloads all post.
Back to top
View user's profile Send private message
WarMachine
Apprentice
Apprentice


Joined: 15 Jul 2002
Posts: 181

PostPosted: Tue Aug 06, 2002 5:07 am    Post subject: Reply with quote

nano /etc/group

go down to the one that says wheel and add the username there
for example mine says

Code:

wheel::10:root,warmachine
Back to top
View user's profile Send private message
therobot
Apprentice
Apprentice


Joined: 07 Jun 2002
Posts: 256
Location: Canada

PostPosted: Tue Aug 06, 2002 9:12 am    Post subject: Reply with quote

do people even read the faq anymore???
Back to top
View user's profile Send private message
thardy01
Tux's lil' helper
Tux's lil' helper


Joined: 05 Aug 2002
Posts: 76

PostPosted: Tue Aug 06, 2002 9:46 am    Post subject: Reply with quote

OK I deserved that. :-( But atleast before I posted I did try to search the forum
Back to top
View user's profile Send private message
bahkyp
Tux's lil' helper
Tux's lil' helper


Joined: 19 Jul 2002
Posts: 86
Location: Sydney Australia

PostPosted: Wed Aug 14, 2002 11:58 pm    Post subject: Reply with quote

Ahh, Ive read the FAQ and searched the posts but still no luck.

What used to happen,
Code:

bash-2.05a$ su root
Password:
su: Permission denied
Sorry.
bash-2.05a$

But the I read the FAQ!

So now I get
Code:

bash-2.05a$ su root
Password:
su: Authentication failure
Sorry.
bash-2.05a$

Setup is Gnome terminal, Gnome 2, PPC.
_________________
I'm so small, I can fit under the door.
I was here yesterday, this is a recording.
Back to top
View user's profile Send private message
pjp
Administrator
Administrator


Joined: 16 Apr 2002
Posts: 16113
Location: Colorado

PostPosted: Thu Aug 15, 2002 12:02 am    Post subject: Reply with quote

Did you log out, then in again? Groups are set at login. There are ways around this, but for the most part, you have to log out and in.
_________________
lolgov. 'cause where we're going, you don't have civil liberties.

In Loving Memory
1787 - 2008
Back to top
View user's profile Send private message
rac
Bodhisattva
Bodhisattva


Joined: 30 May 2002
Posts: 6553
Location: Japanifornia

PostPosted: Thu Aug 15, 2002 12:02 am    Post subject: Reply with quote

You should be able to omit the "root" and just type "su", as it defaults to root. You need to type root's password at the password prompt, not your user's. Can root log in normally? The last field of root's entry in /etc/passwd should be a valid shell, like "/bin/bash".
_________________
For every higher wall, there is a taller ladder
Back to top
View user's profile Send private message
bahkyp
Tux's lil' helper
Tux's lil' helper


Joined: 19 Jul 2002
Posts: 86
Location: Sydney Australia

PostPosted: Sat Sep 14, 2002 3:51 am    Post subject: Reply with quote

Ok, really weird development. I corrupted my version of portage, so I had to reinstall from the stage_ppc_2.tbz2 (originally installed from the stage 3 PPC ISO) and when I added user to wheel this time su worked???
_________________
I'm so small, I can fit under the door.
I was here yesterday, this is a recording.
Back to top
View user's profile Send private message
rac
Bodhisattva
Bodhisattva


Joined: 30 May 2002
Posts: 6553
Location: Japanifornia

PostPosted: Wed Nov 20, 2002 6:31 am    Post subject: Reply with quote

bahkyp wrote:
Ok, really weird development. I corrupted my version of portage, so I had to reinstall from the stage_ppc_2.tbz2

Knowing what I know now, this probably fixed the suid bit on /bin/su.
_________________
For every higher wall, there is a taller ladder
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Duplicate Threads 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