WHM Cpanel sshd: /var/empty/sshd must be owned by root and not group or world-writable

 

Error: WHM Cpanel sshd: /var/empty/sshd must be owned by root and not group or world-writable is reported via email notifications.

Note: Our server is running Centos

 

Servercpanel2.interactivewebs.com
Primary IPAddressxxx.xxx.xxx.xxx
Service Namesshd
Service Statusfailed ⛔
NotificationThe service “sshd” appears to be down.
Service Check MethodThe system’s command to check or to restart this service failed.
Number of Restart Attempts19
Service Check Raw Output(XID cg7fzv) The “sshd” service is down.

The subprocess “/usr/local/cpanel/scripts/restartsrv_sshd” reported error number 3 when it ended.

Startup LogDec 07 02:34:37 xx.interactivewebs.com systemd[1]: Failed to start OpenSSH server daemon.
Dec 07 02:34:37 xx.interactivewebs.com systemd[1]: Unit sshd.service entered failed state.
Dec 07 02:34:37 xx.interactivewebs.com systemd[1]: sshd.service failed.
Log MessagesDec 7 02:34:37 cpanel2 sshd: /var/empty/sshd must be owned by root and not group or world-writable.
Memory Information
Used1.12 GB
Available14.01 GB
Installed15.13 GB
Load Information0.00 0.01 0.07
Uptime1 hour, 30 minutes, and 42 seconds
IOStat Informationavg-cpu: %user %nice %system %iowait %steal %idle 4.15 0.01 0.18 0.02 0.00 95.64 Device: tps kB_read/s kB_wrtn/s kB_read kB_wrtn sda 7.43 185.24 24.84 1007925 135152 dm-0 4.69 146.09 17.67 794896 96128 dm-1 0.02 0.41 0.00 2228 0 dm-2 2.62 33.66 6.80 183144 36976
Top Processes
PIDOwnerCPU%Memory %Command
5182root18.070.09/usr/local/cpanel/scripts/restartsrv_cpanel_dovecot_solr
5080root5.880.17tailwatchd – chkservd – cpanel-dovecot-solr check
5138root1.200.01dovecot/auth -w
5167root0.720.00[whostmgrd – ser]
5108dovecot0.680.02dovecot/auth

 

The Fix

1. Login to WHM and click on terminal

Screenshot 2018 12 07 21 36 49

Type these 3 commands into there terminal window:

# chown root:root /var/empty/sshd 
# chmod 711 /var/empty/sshd 
# ls -ld /var/empty/sshd

 

2. Restart the ssh Daemon in WHM

WHM ssh

 

Tags:

Leave a Reply

Your email address will not be published. Required fields are marked *