View previous topic :: View next topic |
Author |
Message |
xail n00b
Joined: 14 May 2008 Posts: 7
|
Posted: Mon Feb 09, 2009 6:07 pm Post subject: Can't su[solved] |
|
|
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 |
|
|
szczerb Veteran
Joined: 24 Feb 2007 Posts: 1709 Location: Poland => Lodz
|
Posted: Mon Feb 09, 2009 6:11 pm Post subject: |
|
|
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 |
|
|
nixnut Bodhisattva
Joined: 09 Apr 2004 Posts: 10974 Location: the dutch mountains
|
Posted: Mon Feb 09, 2009 6:12 pm Post subject: |
|
|
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 |
|
|
xail n00b
Joined: 14 May 2008 Posts: 7
|
Posted: Mon Feb 09, 2009 6:19 pm Post subject: |
|
|
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 |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54236 Location: 56N 3W
|
Posted: Mon Feb 09, 2009 6:40 pm Post subject: |
|
|
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 |
|
|
xail n00b
Joined: 14 May 2008 Posts: 7
|
Posted: Mon Feb 09, 2009 7:05 pm Post subject: |
|
|
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 |
|
|
timeBandit Bodhisattva
Joined: 31 Dec 2004 Posts: 2719 Location: here, there or in transit
|
|
Back to top |
|
|
xail n00b
Joined: 14 May 2008 Posts: 7
|
Posted: Mon Feb 09, 2009 7:45 pm Post subject: |
|
|
timeBandit,
Thanks for the link. It was a permission error. |
|
Back to top |
|
|
timeBandit Bodhisattva
Joined: 31 Dec 2004 Posts: 2719 Location: here, there or in transit
|
Posted: Mon Feb 09, 2009 8:18 pm Post subject: |
|
|
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 |
|
|
cwc Veteran
Joined: 20 Mar 2006 Posts: 1281 Location: Tri-Cities, WA USA
|
Posted: Tue Feb 17, 2009 11:19 pm Post subject: su - = operation not permitted |
|
|
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 |
|
|
alligator421 Apprentice
Joined: 30 Jul 2003 Posts: 191
|
Posted: Wed Feb 18, 2009 12:30 am Post subject: |
|
|
Your user must belong to the wheel group to be able to "su -".
Check /etc/group. |
|
Back to top |
|
|
Nerevar l33t
Joined: 31 May 2008 Posts: 720
|
Posted: Wed Feb 18, 2009 12:41 am Post subject: |
|
|
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 |
|
|
jmbsvicetto Moderator
Joined: 27 Apr 2005 Posts: 4734 Location: Angra do Heroísmo (PT)
|
Posted: Wed Feb 18, 2009 1:46 am Post subject: |
|
|
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 |
|
|
|