Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I hardened the SSH by disallow direct root access. To access root, I need to login with normal user account first then use command "su -" to login as root.

However, after install cPanel, when I sent 'su -' command with normal user, it gives me "-bash: /bin/su: Permission denied"

It seems cPanel made some changes of permission to normal user. Now I can't find a way to login as root.

What can I do?

Thanks for any helps!

share|improve this question
up vote 4 down vote accepted

add the user to the wheel group in whm and it should give you su privileges again, alternatively use sudo as well but this probably also needs the user adding to the wheel group

share|improve this answer
Thanks for timely help, that works great. – gilzero Apr 1 '11 at 6:46
Wow! There is a unicorn that loves your answer very much! – rvs Apr 1 '11 at 6:48

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.