Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Can't 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
RuFI0
n00b
n00b


Joined: 16 Sep 2004
Posts: 30
Location: Malaysia

PostPosted: Thu Jun 09, 2005 6:42 pm    Post subject: Can't su Reply with quote

I was trying to get gensplash to work so i emerged splashutils. After the emerge finished, and after doing etc-update, my normal user can't seem to su as usual. I keep getting su: Permission denied. I even tried changing the password and even blanking the password but i still couldn't su. Anyone have any ideas?
Back to top
View user's profile Send private message
RBH
Apprentice
Apprentice


Joined: 31 Oct 2004
Posts: 184

PostPosted: Thu Jun 09, 2005 6:43 pm    Post subject: Reply with quote

The two usual things:
1. Check the user is in the wheel group.
2. Check the permissions of /bin/su
Back to top
View user's profile Send private message
RuFI0
n00b
n00b


Joined: 16 Sep 2004
Posts: 30
Location: Malaysia

PostPosted: Thu Jun 09, 2005 6:47 pm    Post subject: Reply with quote

my user is in the wheel group and i tried chmoding /bin/su to 777 but still no luck
Back to top
View user's profile Send private message
Naib
Watchman
Watchman


Joined: 21 May 2004
Posts: 5679
Location: Removed by Neddy

PostPosted: Thu Jun 09, 2005 6:48 pm    Post subject: Reply with quote

are you sur eyour user is still in the "wheel" group, ie you havn't overwritten your groups file by accident?

what is the output of

$groups
_________________
The best argument against democracy is a five-minute conversation with the average voter
Great Britain is a republic, with a hereditary president, while the United States is a monarchy with an elective king
Back to top
View user's profile Send private message
RuFI0
n00b
n00b


Joined: 16 Sep 2004
Posts: 30
Location: Malaysia

PostPosted: Thu Jun 09, 2005 6:50 pm    Post subject: Reply with quote

yup, my $groups output : wheel audio cdrom video games users.
Back to top
View user's profile Send private message
SpecvWillis
Tux's lil' helper
Tux's lil' helper


Joined: 09 May 2005
Posts: 142
Location: Ottawa, Canada

PostPosted: Thu Jun 09, 2005 6:52 pm    Post subject: Reply with quote

Check your sudoers file. I think the wheel group gets permission to su with an entry in the sudoers file. Maybe it got overwritten during a recent etc-update?
Back to top
View user's profile Send private message
RuFI0
n00b
n00b


Joined: 16 Sep 2004
Posts: 30
Location: Malaysia

PostPosted: Thu Jun 09, 2005 6:59 pm    Post subject: Reply with quote

$groups only listed the groups
$groups username however list the groups the user is in
Seems like my user was in the wheel group after all. I did a usermod -G users,wheel,audio user , but now i'm getting this error when i su: setgig: Operation not permitted
Back to top
View user's profile Send private message
RuFI0
n00b
n00b


Joined: 16 Sep 2004
Posts: 30
Location: Malaysia

PostPosted: Thu Jun 09, 2005 7:15 pm    Post subject: Reply with quote

I changed the permissions to the defaults and reset a new password, now i get this when i su: Authentication failure.
I tried opening a virtual terminal just to see if the root password is working and it seems to be working just fine.
Back to top
View user's profile Send private message
RuFI0
n00b
n00b


Joined: 16 Sep 2004
Posts: 30
Location: Malaysia

PostPosted: Thu Jun 09, 2005 7:38 pm    Post subject: Reply with quote

eureeka! Works now. I just chmod /bin/su to 4711. Thanks for all the help :)
Back to top
View user's profile Send private message
Maedhros
Bodhisattva
Bodhisattva


Joined: 14 Apr 2004
Posts: 5511
Location: Durham, UK

PostPosted: Thu Jun 09, 2005 7:51 pm    Post subject: Reply with quote

Moved from Portage & Programming in favour of this FAQ: https://forums.gentoo.org/viewtopic-t-23378.html
_________________
No-one's more important than the earthworm.
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