What If SSH Root Login Disabled and “su” Getting Permission Denied Error

What If SSH Root Login Disabled and “su” Getting Permission Denied Error

Sometimes, we get the permission denied error while we switched to sudo.

eg: user [~] # su –

-bash: /bin/su : permission denied

On checking the SSH configuration file /etc/ssh/sshd_config, we had found the entry

“PermitRootLogin No”. Also, we try the option “Manage root’s SSH Keys” on the

Home >> Security Center >> Manage root’s SSH Keys. It won’t work since the root login is disabled as well as “su” command is denied for all users by default.

In this case, the “su” belongs to the wheel group and the only option is to adding users to “wheel” group. Hence they can able to use “su” command.

Wheel group is a special user group used on some Unix systems to control access to the su or sudo command, which allows a user to masquerade as another user (usually the superuser). The ‘wheel’ group was used to create a pool of user accounts that were allowed to get that level of access to the server.

We can discuss the steps to resolve the issue by adding the users to the wheel group.

1) Login to WHM.

2) Select the “Security Center” option from the left side.

ssh disabled

 

3) Choose ” Manage Wheel Group Users ” option from the Security Center.

ssh disabled

 

4) Here, you can add the users to the wheel group and also remove the users from the wheel group.

ssh disabled

This group controls which users can use the systems “su” utility.

If you need any further help, please do reach our support department.

 

  • 0

How to Enable Plaintext Authentication in Dovecot?

How to Enable Plaintext Authentication in Dovecot? Dovecot is an IMAP or POP3 server for...

Install Apache Tomcat using EasyApache4

Install Apache Tomcat using EasyApache4 The Apache Tomcat is an Apache module that provides a...

How to Enable Extended Logging in Exim

How to Enable Extended Logging in Exim The extended Exim logs in cPanel server will help you to...

Maximum number of connections from user+IP exceeded

Maximum number of connections from user+IP exceeded If you are getting an error like ‘ Error –...

How To Set Up Remote Access Key in WHM

How To Set Up Remote Access Key in WHM Remote Access Key is a cPanel feature that allows...