Question & Answer
Question
Rule : SHC108 Issue Detected : Wrong permissions of /root/.ssh directory Severity : High Components : Permissions for directory /root/.ssh are drw------- but they should be drwx
Cause
Permissions for directory /root/.ssh are drw-------
but they should be drwx
Answer
Check on both hosts
# ssh ha1 ls -lahrt /root
# ssh ha2 ls -lahrt /root
Change permission to 700 if they are incorrect
[root@netezza ~]# ls -lahrt /root
total 416K
-rw-r--r--. 1 root root 100 Sep 22 2004 .cshrc
-rw-r--r--. 1 root root 176 Sep 22 2004 .bashrc
-rw-r--r--. 1 root root 129 Dec 3 2004 .tcshrc
-rw-r--r--. 1 root root 176 May 20 2009 .bash_profile
-rw-r--r--. 1 root root 18 May 20 2009 .bash_logout
-rw-r--r--. 1 root root 7.9K Nov 17 14:16 install.log.syslog
-rw-r--r--. 1 root root 30K Nov 17 14:17 install.log
-rw-------. 1 root root 12K Nov 17 14:17 anaconda-ks.cfg
drwxr-xr-x 2 root root 4.0K Nov 17 21:34 :
-rw-r--r-- 1 root root 1.5K Dec 10 01:20 CmdTool.log
-rw-r--r-- 1 root root 303K Mar 23 19:34 MegaSAS.log
drwxr-xr-x 2 root root 4.0K Mar 25 04:28 kuppsu50:
dr-xr-x---. 5 root root 4.0K Mar 25 04:28 .
dr-xr-xr-x. 31 root root 4.0K Mar 25 17:23 ..
drw------- 2 root root 4.0K Mar 27 15:41 .ssh <---
-rw------- 1 root root 7.8K Mar 27 20:44 .bash_history
[root@netezza ~]# chmod 700 /root/.ssh
[root@netezza ~]# ls -lahrt /root
total 416K
-rw-r--r--. 1 root root 100 Sep 22 2004 .cshrc
-rw-r--r--. 1 root root 176 Sep 22 2004 .bashrc
-rw-r--r--. 1 root root 129 Dec 3 2004 .tcshrc
-rw-r--r--. 1 root root 176 May 20 2009 .bash_profile
-rw-r--r--. 1 root root 18 May 20 2009 .bash_logout
-rw-r--r--. 1 root root 7.9K Nov 17 14:16 install.log.syslog
-rw-r--r--. 1 root root 30K Nov 17 14:17 install.log
-rw-------. 1 root root 12K Nov 17 14:17 anaconda-ks.cfg
drwxr-xr-x 2 root root 4.0K Nov 17 21:34 :
-rw-r--r-- 1 root root 1.5K Dec 10 01:20 CmdTool.log
-rw-r--r-- 1 root root 303K Mar 23 19:34 MegaSAS.log
drwxr-xr-x 2 root root 4.0K Mar 25 04:28 kuppsu50:
dr-xr-x---. 5 root root 4.0K Mar 25 04:28 .
dr-xr-xr-x. 31 root root 4.0K Mar 25 17:23 ..
drwx------ 2 root root 4.0K Mar 27 15:41 .ssh <---
-rw------- 1 root root 7.8K Mar 27 20:44 .bash_history
[{"Product":{"code":"SSULQD","label":"IBM PureData System"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Component":"--","Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"1.0.0","Edition":"","Line of Business":{"code":"LOB10","label":"Data and AI"}}]
Was this topic helpful?
Document Information
Modified date:
17 October 2019
UID
swg21981131