O'Reilly logo

CFEngine 3 Beginner's Guide by Rajneesh

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Time for action - file and directory permissions audit

  1. We are already aware that a file system has specific permissions for a few important files and directories, by default. These permissions are set keeping in mind the access each user needs on these files and directories, which in turn builds a layer of security. Lets see the default permissions of a few important files and directories:
    root@my1.system.com# ls -lh /etc/passwd
    -rw-r--r-- 1 root root 1.5K 2010-08-26 14:54 /etc/passwd
    root@my1.system.com# ls -lh /etc/shadow
    -rw-r----- 1 root shadow 1.1K 2010-08-20 11:05 /etc/shadow
    root@my1.system.com# ls -lh /etc/sysctl.conf
    -rw-r--r-- 1 root root 2.3K 2009-03-19 03:47 /etc/sysctl.conf
    
  2. As we see in the previous screenshot, these are the default ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required