Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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

1 Answer 1

up vote 3 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

 
discard

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.