Find the answer to your Linux question:
Page 1 of 4 1 2 3 4 LastLast
Results 1 to 10 of 36
Ok now this is just killing me.... i just got Gentoo installed....and it is the greatest, however i cannot go su root from a user(the groups that this user has ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Linux Guru loft306's Avatar
    Join Date
    Oct 2003
    Location
    The DairyLand
    Posts
    1,666

    I can't go su root !!


    Ok now this is just killing me.... i just got Gentoo installed....and it is the greatest, however i cannot go su root from a user(the groups that this user has are: users,wheel,audio(wheel being the group to go su))... if i want root i have to log out and log in as root.
    This is true in kde,console(ctrl + alt + F2),konsole and xterm...and everywhere else..........what am i missing?
    ~Mike ~~~ Forum Rules
    Testing? What's that? If it compiles, it is good, if it boots up, it is perfect. ~ Linus Torvalds
    http://loft306.org

  2. #2
    Linux Newbie zdawg's Avatar
    Join Date
    Jan 2004
    Location
    Canada
    Posts
    218
    Code:
     usermod -G users,wheel <username>
    
    
    Issue this as root.

  3. #3
    Linux Guru loft306's Avatar
    Join Date
    Oct 2003
    Location
    The DairyLand
    Posts
    1,666
    Quote Originally Posted by zdawg
    Code:
     usermod -G users,wheel <username>
    
    
    Issue this as root.
    zdawg
    BEEN there done that ! more than once.
    ~Mike ~~~ Forum Rules
    Testing? What's that? If it compiles, it is good, if it boots up, it is perfect. ~ Linus Torvalds
    http://loft306.org

  4. $spacer_open
    $spacer_close
  5. #4
    Linux Engineer Giro's Avatar
    Join Date
    Jul 2003
    Location
    England
    Posts
    1,219
    Im not sure then all you have to do normally is add yourself to the wheel group and you should be able to su -

  6. #5
    Linux Guru loft306's Avatar
    Join Date
    Oct 2003
    Location
    The DairyLand
    Posts
    1,666
    I think i might of found it ... i think the permissions on the link file' ttyS0' are totaly borked or rather the ownership

    user: taz ........taz is a user i think it should be: root

    group: tty ...............i think this should be: wheel

    dose anyone know for shure?
    ~Mike ~~~ Forum Rules
    Testing? What's that? If it compiles, it is good, if it boots up, it is perfect. ~ Linus Torvalds
    http://loft306.org

  7. #6
    Linux Guru
    Join Date
    Oct 2001
    Location
    Täby, Sweden
    Posts
    7,578
    The tty perms should be: owner/group = username/tty if a user is logged in at that tty, root/root otherwise, perms = 620 if a user is logged in at that tty, 600 otherwise.

    As for the su issue, what does su actually say? What do the logs say?

  8. #7
    Linux Newbie zdawg's Avatar
    Join Date
    Jan 2004
    Location
    Canada
    Posts
    218
    Code:
     
    tail -f /var/log/messages

    Issue as root. Then su -

    Let's see the output.

  9. #8
    Linux Guru loft306's Avatar
    Join Date
    Oct 2003
    Location
    The DairyLand
    Posts
    1,666
    here's /var/log/messages

    • Feb 29 19:43:06 loft306 unix_chkpwd[2357]: check pass; user unknown
      Feb 29 19:43:06 loft306 su(pam_unix)[2356]: authentication failure; logname= uid=1000 euid=1000 tty=pts/0 ruser=taz rhost= user=root
      Feb 29 19:43:09 loft306 su[2356]: pam_authenticate: Authentication failure
      Feb 29 19:43:15 loft306 via_audio: ignoring drain playback error -11
      Feb 29 19:43:15 loft306 kde(pam_unix)[2204]: session closed for user taz
      Feb 29 19:43:18 loft306 kdm_greet[2439]: Can't open default user face
      Feb 29 19:43:32 loft306 kde(pam_unix)[2437]: session opened for user root by (uid=0)
      Feb


    and the ttyS0 thing was something going on that i confused for this prob.
    ~Mike ~~~ Forum Rules
    Testing? What's that? If it compiles, it is good, if it boots up, it is perfect. ~ Linus Torvalds
    http://loft306.org

  10. #9
    Linux Guru
    Join Date
    Oct 2001
    Location
    Täby, Sweden
    Posts
    7,578
    Was that really all the info that su generated? Check /var/log/auth as well, please. Also, is the setuid bit set in /bin/su (check `ls -l /bin/su')?

  11. #10
    Linux Guru loft306's Avatar
    Join Date
    Oct 2003
    Location
    The DairyLand
    Posts
    1,666
    Dolda i dont have a log /var/log/auth, is it possible to make one?

    this is how it is now:
    -rwsr-xr-x 1 root root 24376 Nov 28 11:20 /bin/su

    this is how it used to be befor scientica cought it:
    -rwsr-sr-x 1 root root 24376 Nov 28 11:20 /bin/su
    ~Mike ~~~ Forum Rules
    Testing? What's that? If it compiles, it is good, if it boots up, it is perfect. ~ Linus Torvalds
    http://loft306.org

Page 1 of 4 1 2 3 4 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
  •