Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Can't su[solved]
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
xail
n00b
n00b


Joined: 14 May 2008
Posts: 7

PostPosted: Mon Feb 09, 2009 6:07 pm    Post subject: Can't su[solved] Reply with quote

After close to a year of running as root, yes I know most of the reasons not to, I've finally made a regular user. The problem is I can't su. I'm a member of the wheel group which seemed to be the only thing my searches turned up that might be a problem. I tried changing roots password and even deleting it, but I still couldn't get privileges.

Last edited by xail on Mon Feb 09, 2009 7:46 pm; edited 1 time in total
Back to top
View user's profile Send private message
szczerb
Veteran
Veteran


Joined: 24 Feb 2007
Posts: 1709
Location: Poland => Lodz

PostPosted: Mon Feb 09, 2009 6:11 pm    Post subject: Reply with quote

Why would you run as root all the time? Damn, it's not windows where almost everything requiers root privileges. I honestly don't understand.

BTW Unfortunately, I can't help you....
Back to top
View user's profile Send private message
nixnut
Bodhisattva
Bodhisattva


Joined: 09 Apr 2004
Posts: 10974
Location: the dutch mountains

PostPosted: Mon Feb 09, 2009 6:12 pm    Post subject: Reply with quote

Did you log out and log in again after putting yourself in wheel?
_________________
Please add [solved] to the initial post's subject line if you feel your problem is resolved. Help answer the unanswered

talk is cheap. supply exceeds demand
Back to top
View user's profile Send private message
xail
n00b
n00b


Joined: 14 May 2008
Posts: 7

PostPosted: Mon Feb 09, 2009 6:19 pm    Post subject: Reply with quote

I ran as root because I'm lazy and by the time I knew better, I started running gentoo as a complete noob, I was having issues with xorg on non-privileged users so I just kept pushing off fixing it.

The user has been wheel since he was created and yes the computer has been restarted several times with that being the case.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54236
Location: 56N 3W

PostPosted: Mon Feb 09, 2009 6:40 pm    Post subject: Reply with quote

xail,

Edit your /etc/sudoers file to allow wheel members to su.
By default, its full of commented examples
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
xail
n00b
n00b


Joined: 14 May 2008
Posts: 7

PostPosted: Mon Feb 09, 2009 7:05 pm    Post subject: Reply with quote

NeddySeagoon,
Thanks, I installed sudo, as I didn't have a /etc/sudoers file. I can sudo now, hurray.

I would still like to get su working if for no other reason then to figure out what was wrong, if you have any ideas. I realize that sudo is safer and usually considered a better choice then su.
Back to top
View user's profile Send private message
timeBandit
Bodhisattva
Bodhisattva


Joined: 31 Dec 2004
Posts: 2719
Location: here, there or in transit

PostPosted: Mon Feb 09, 2009 7:06 pm    Post subject: Reply with quote

If needed, see also Table of Contents :arrow: SA: System Administration :arrow: SA2: Why can't I su to root? (in the FAQs forum) for more possible causes.
_________________
Plants are pithy, brooks tend to babble--I'm content to lie between them.
Super-short f.g.o checklist: Search first, strip comments, mark solved, help others.
Back to top
View user's profile Send private message
xail
n00b
n00b


Joined: 14 May 2008
Posts: 7

PostPosted: Mon Feb 09, 2009 7:45 pm    Post subject: Reply with quote

timeBandit,
Thanks for the link. It was a permission error.
Back to top
View user's profile Send private message
timeBandit
Bodhisattva
Bodhisattva


Joined: 31 Dec 2004
Posts: 2719
Location: here, there or in transit

PostPosted: Mon Feb 09, 2009 8:18 pm    Post subject: Reply with quote

You're welcome.
Moved from Other Things Gentoo to Duplicate Threads, since the cause wasn't something new &/or exotic.
_________________
Plants are pithy, brooks tend to babble--I'm content to lie between them.
Super-short f.g.o checklist: Search first, strip comments, mark solved, help others.
Back to top
View user's profile Send private message
cwc
Veteran
Veteran


Joined: 20 Mar 2006
Posts: 1281
Location: Tri-Cities, WA USA

PostPosted: Tue Feb 17, 2009 11:19 pm    Post subject: su - = operation not permitted Reply with quote

I don't know what I did. But I was sshed into one of my servers via my gentoo work station and now
I can not get root priviledge using $su -.

I've checked the gnome gui to make sure my user is able to get admistrative permission adn that item is toggles on.

None of the users I have can get "#su -"

Any idea oh great ones?

Thanks,
cwc
_________________
Without diversity there can be no evolution:)
Back to top
View user's profile Send private message
alligator421
Apprentice
Apprentice


Joined: 30 Jul 2003
Posts: 191

PostPosted: Wed Feb 18, 2009 12:30 am    Post subject: Reply with quote

Your user must belong to the wheel group to be able to "su -".
Check /etc/group.
Back to top
View user's profile Send private message
Nerevar
l33t
l33t


Joined: 31 May 2008
Posts: 720

PostPosted: Wed Feb 18, 2009 12:41 am    Post subject: Reply with quote

This error sounds like the suid bit is no longer set on /bin/su.

If that's the case, you can add it back after logging in as root with:
Code:
# chmod u+s /bin/su
Back to top
View user's profile Send private message
jmbsvicetto
Moderator
Moderator


Joined: 27 Apr 2005
Posts: 4734
Location: Angra do Heroísmo (PT)

PostPosted: Wed Feb 18, 2009 1:46 am    Post subject: Reply with quote

Merged above 3 posts.
Check above for alternative links.
_________________
Jorge.

Your twisted, but hopefully friendly daemon.
AMD64 / x86 / Sparc Gentoo
Help answer || emwrap.sh
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