Find the answer to your Linux question:
Page 1 of 2 1 2 LastLast
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.
  1. #1
    Linux 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:
    Code:
    bash-2.05b$ su
    You are not authorized to su root
    Any suggestions?

  2. #2
    Linux Engineer
    Join Date
    Oct 2004
    Location
    Vancouver
    Posts
    1,366
    have you tried
    Code:
    su -
    ?
    Operating System: GNU Emacs

  3. #3
    Linux Guru Cabhan's Avatar
    Join Date
    Jan 2005
    Location
    Seattle, WA, USA
    Posts
    3,252
    Have you double-checked the permissions of /bin/su?

  4. $spacer_open
    $spacer_close
  5. #4
    Linux 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:
    root:ALL EXCEPT GROUP wheelENY
    *still humbling for himself*

  6. #5
    Linux 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:
    Code:
    # 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
    I then changed "yes" to "no" and now I can su root

    EDIT: here's the link of the article on google (just searched for the error-fraze): http://www.hackphreak.org/newbie/linuxbxj.txt

  7. #6
    Linux 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]

  8. #7
    Linux 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.

  9. #8
    Linux Engineer
    Join Date
    Apr 2005
    Location
    Buenos Aires, Argentina
    Posts
    908
    Quote Originally Posted by jaboua
    Code:
    # 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
    I then changed "yes" to "no" and now I can su root
    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?

    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"

  10. #9
    Linux 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.

  11. #10
    Linux 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"

Page 1 of 2 1 2 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •