Skip to main content

wheel group management

Comments

5 comments

  • quizknows
    If a user is properly in the wheel group, it should be able to use 'su -' and the root password should be the one used to escalate privileges. In my case I use an unpriveleged user "sshuser" for this who can su to root. Check /etc/group to see if the user was added correctly: [root@new /home/temp]# grep wheel /etc/group wheel:x:10:root,sshuser
    0
  • jeremys_ppc
    The user is in the wheel group as indicated. root@teal [~]# grep wheel /etc/group wheel:x:10:cpadmin
    I login as the admin via ssh successfully login as: cpadmin cpadmin@teal.mydomain.com's password: Last login: Wed May 7 16:27:53 2014 from x.x.x.x
    Yet when I su - it doesn't take the credentials. cpadmin@teal.mydomain.com [~]# su - Password: su: incorrect password
    I'm at a loss.
    0
  • cPanelMichael
    Hello :) Have you made any changes to the standard /etc/ssh/sshd_config file on your system? Thank you.
    0
  • jeremys_ppc
    The only modification to the sshd_config was the Port value. Nothing else was changed. Once I get the wheel group stuff working I was going to disable root login. PermitRootLogin No per the securing SSH from the following guide /http://www.webhostinghero.com/10-tips-secure-cpanel-server/
    0
  • quizknows
    Out of curiosity how could sshd_config prevent an already logged in user from being able to use su? Check /var/log/secure. If I put in the wrong root PW with su I get: May 9 19:13:50 new su: pam_unix(su-l:auth): authentication failure; logname=sshuser uid=32014 euid=0 tty=pts/0 ruser=sshuser rhost= user=root When I use the right password: May 9 19:13:56 new su: pam_unix(su-l:session): session opened for user root by sshuser(uid=32014)
    0

Please sign in to leave a comment.