Results 1 to 10 of 13
I went for a fresh stage1-install of gentoo this time, and most seems to be working (Not all done yet...). But the problem is that I cant use su, I ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 05-03-2005 #1Linux Engineer
- Join Date
- Mar 2005
- Posts
- 1,431
SU not allowed...
I went for a fresh stage1-install of gentoo this time, and most seems to be working (Not all done yet...). But the problem is that I cant use su, I have to run "sudo su" to get root. I am in the wheel-group. Here's the error:
Any suggestions?Code:bash-2.05b$ su You are not authorized to su root
- 05-03-2005 #2Linux Engineer
- Join Date
- Oct 2004
- Location
- Vancouver
- Posts
- 1,366
have you tried
?Code:su -
Operating System: GNU Emacs
- 05-03-2005 #3
Have you double-checked the permissions of /bin/su?
- 05-04-2005 #4Linux Engineer
- Join Date
- Mar 2005
- Posts
- 1,431
The "su -" did'nt work neither, I am not authorised to su root. I also checked the permissions of /bin/su, the owner and group is root but everybody can exe (-rws--x--x). I checked the man for suauth and added this line to the not-existing file /etc/suauth:
*still humbling for himself*root:ALL EXCEPT GROUP wheel
ENY
- 05-04-2005 #5Linux Engineer
- Join Date
- Mar 2005
- Posts
- 1,431
Just found an article on google made by a guy called madhax0r (at) b0g (dot) org which pointed me in the direction of editing the file "/etc/login.defs". I searched for su (HUGE ammounts of them!), but found this variable which was set to yes by default:
I then changed "yes" to "no" and now I can su rootCode:# If "yes", the user must be listed as a member of the first gid 0 group # in /etc/group (called "root" on most Linux systems) to be able to "su" # to uid 0 accounts. If the group doesn't exist or is empty, no one # will be able to "su" to uid 0. # SU_WHEEL_ONLY yes

EDIT: here's the link of the article on google (just searched for the error-fraze): http://www.hackphreak.org/newbie/linuxbxj.txt
- 05-04-2005 #6Linux Newbie
- Join Date
- Mar 2005
- Location
- Minneapolis, MN
- Posts
- 112
You can always log in as root and add your user to group 'wheel.'
--Dachnaz [Fuzzy Llama]
- 05-04-2005 #7Linux Engineer
- Join Date
- Mar 2005
- Posts
- 1,431
My user was in the wheel-group, but I had to change the variable to allow ANYBODY not in the root-group to gain superuser-powers... Even after adding the wheel-section in /etc/suauth. Notice the comment in the file.
- 05-05-2005 #8Linux Engineer
- Join Date
- Apr 2005
- Location
- Buenos Aires, Argentina
- Posts
- 908
It says that you will be able to "su" to uid 0 accounts (root) if your user is listed in the gid 0 group (that's root group), is that what you did?
Originally Posted by jaboua
You shouldn't need to add your user to the "root" group just to use su
serzsite.com.ar
"All the drugs in this world won\'t save you from yourself"
- 05-05-2005 #9Linux Engineer
- Join Date
- Mar 2005
- Posts
- 1,431
No, I changed the SU_WHEEL_ONLY to no, so now I can su from anybody in the wheelgroup.
- 05-05-2005 #10Linux Engineer
- Join Date
- Apr 2005
- Location
- Buenos Aires, Argentina
- Posts
- 908
Ah, I didn't read correctly your post. It makes sense now.
Well, glad you got it fixed!
serzsite.com.ar
"All the drugs in this world won\'t save you from yourself"


Reply With Quote
