Use the ls command and shell GLOB characters to list only user Dot-Files, enter:
ls -ld /root/.[A-Za-z0-9]*Sample Outputs:
ls -ld $HOME/.[A-Za-z0-9]*
-rw-r--r-- 2 root wheel 1455 Jun 12 18:47 /root/.cshrcRun chmod command on misconfigured file to remove group- or world-writable permissions, enter:
-rw------- 1 root wheel 2650 Jul 28 06:26 /root/.history
-rw-r--r-- 1 root wheel 299 Jun 12 18:40 /root/.login
-rw------- 1 root wheel 57 Jun 12 22:07 /root/.mysql_history
-rw-r--r-- 2 root wheel 260 Jun 12 18:40 /root/.profile
# chmod go-w $HOME/.dot-file-name
Owners can run the same command to fix permission issue.
No comments:
Post a Comment