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!

link|improve this question

feedback

1 Answer

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

link|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
feedback

Your Answer

 
or
required, but never shown

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