SuSE Linux System Directories
This example dirs_system_suse_linux_objects.cfg specifies SuSE Linux system directories, together with their intended ownerships and permissions. Note how, by the use of the '#if suse93' and #elsif suse90' preprocessor directives, we can customize the system directories set based on the SuSE Linux version number. This dirs_system_suse_linux_objects.cfg file is #include'd by the parent dirs_system_objects.cfg file.
/////////////////////////////////////////////////////////////////////////////// // // dirs_system_suse_linux_objects.cfg // /////////////////////////////////////////////////////////////////////////////// #if suse # if suse93 #indent bin drwxr-xr-x 755 0 0 root root /boot drwxr-xr-x 755 0 0 root root /boot/grub drwxr-xr-x 755 0 0 root root /dev drwxr-xr-x 755 0 0 root root /dev/cd drwxr-xr-x 755 0 0 root root /dev/cd/by-id drwxr-xr-x 755 0 0 root root /dev/cd/by-path drwxr-xr-x 755 0 0 root root /dev/ni drwxr-xr-x 755 0 0 root root /dev/rd drwxr-xr-x 755 0 0 root root /dev/cbd drwxr-xr-x 755 0 0 root root [...] /var/spool/postfix/deferred/9 drwx------ 700 51 51 postfix postfix /var/spool/postfix/deferred/A drwx------ 700 51 51 postfix postfix /var/spool/postfix/deferred/B drwx------ 700 51 51 postfix postfix /var/spool/postfix/deferred/C drwx------ 700 51 51 postfix postfix /var/spool/postfix/deferred/D drwx------ 700 51 51 postfix postfix /var/spool/postfix/deferred/E drwx------ 700 51 51 postfix postfix /var/spool/postfix/deferred/F drwx------ 700 51 51 postfix postfix /var/spool/postfix/public drwx--x--- 710 51 59 postfix maildrop /var/spool/postfix/incoming drwx------ 700 51 0 postfix root /var/spool/postfix/private drwx------ 700 51 0 postfix root #unindent # elsif suse90 [much the same, but with some differences] # endif // suse90 #endif // suse ///////////////////////////////////////////////////////////////////////////////
We recommend that you use the sample mkdirlist.pl Perl script to generate the system directory list #include files.
For more examples, see Samples.