diff options
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | init-sh/perm.0 | 26 | ||||
-rw-r--r-- | init-sh/perm.1 | 27 | ||||
-rw-r--r-- | init-sh/perm.2 | 29 | ||||
-rw-r--r-- | init-sh/perm.3 | 38 | ||||
-rw-r--r-- | init-sh/perm.4 | 27 | ||||
-rw-r--r-- | init-sh/perm.5 | 27 |
7 files changed, 90 insertions, 88 deletions
@@ -1,3 +1,7 @@ +1999-12-22 Yoann Vandoorselaere <yoann@mandrakesoft.com> + * init-sh/perm[15]: files should be constant in their content. + all entry should be in each perm file + 1999-12-21 Pixel <pixel@mandrakesoft.com> * init-sh/perm.4: changed /etc/lilo.conf to 600 to make lilo quiet * init-sh/lib.sh (LiloUpdate): replace the -z ${LILO_PASSWORD} by diff --git a/init-sh/perm.0 b/init-sh/perm.0 index 735d617..5249019 100644 --- a/init-sh/perm.0 +++ b/init-sh/perm.0 @@ -1,8 +1,8 @@ # Welcome in Level 1 ### -/bin root.root 755 -/boot root.root 755 -/dev root.root 755 +/bin/ root.root 755 +/boot/ root.root 755 +/dev/ root.root 755 /dev/audio* root.audio 660 /dev/dsp* root.audio 660 /etc/ root.root 755 @@ -13,6 +13,7 @@ /etc/cron.weekly/ root.root 755 /etc/crontab root.root 644 /etc/dhcpcd/ root.root 755 +/etc/dhcpcd/* root.root 644 /etc/esd.conf root.root 644 /etc/ftpaccess root.root 644 /etc/ftpconversions root.root 644 @@ -43,20 +44,21 @@ /etc/updatedb.conf root.root 644 /home/ root.root 755 /home/* current 755 -/lib root.root 755 -/mnt root.root 755 -/root root.root 755 -/sbin root.root 755 -/tmp root.root 1777 -/usr root.root 755 +/lib/ root.root 755 +/mnt/ root.root 755 +/root/ root.root 755 +/sbin/ root.root 755 +/tmp/ root.root 1777 +/usr/ root.root 755 /usr/* root.root 755 /usr/X11R6/ root.root 755 /usr/bin/ root.root 755 /usr/bin/* root.root 755 /usr/sbin/ root.root 755 -/var root.root 755 -/var/log root.root 755 +/usr/sbin/* root.root 755 +/var/ root.root 755 +/var/log/ root.root 755 /var/log/* root.adm 644 /var/log/security/ root.root 700 /var/log/security/* root.root 600 -/var/spool/mail root.mail 771
\ No newline at end of file +/var/spool/mail/ root.mail 771 diff --git a/init-sh/perm.1 b/init-sh/perm.1 index e6824b7..39ded6d 100644 --- a/init-sh/perm.1 +++ b/init-sh/perm.1 @@ -1,8 +1,8 @@ # Welcome in Level 1 ### -/bin root.root 755 -/boot root.root 755 -/dev root.root 755 +/bin/ root.root 755 +/boot/ root.root 755 +/dev/ root.root 755 /dev/audio* root.audio 660 /dev/dsp* root.audio 660 /etc/ root.root 755 @@ -13,6 +13,7 @@ /etc/cron.weekly/ root.root 755 /etc/crontab root.root 644 /etc/dhcpcd/ root.root 755 +/etc/dhcpcd/* root.root 644 /etc/esd.conf root.root 644 /etc/ftpaccess root.root 644 /etc/ftpconversions root.root 644 @@ -43,21 +44,21 @@ /etc/updatedb.conf root.root 644 /home/ root.root 755 /home/* current 755 -/lib root.root 755 -/mnt root.root 755 -/root root.root 755 -/sbin root.root 755 -/tmp root.root 1777 -/usr root.root 755 +/lib/ root.root 755 +/mnt/ root.root 755 +/root/ root.root 755 +/sbin/ root.root 755 +/tmp/ root.root 1777 +/usr/ root.root 755 /usr/* root.root 755 /usr/X11R6/ root.root 755 /usr/bin/ root.root 755 /usr/bin/* root.root 755 /usr/sbin/ root.root 755 -/var root.root 755 -/var/log root.root 755 +/usr/sbin/* root.root 755 +/var/ root.root 755 +/var/log/ root.root 755 /var/log/* root.adm 644 /var/log/security/ root.root 700 /var/log/security/* root.root 600 -/var/spool/mail root.mail 2775 - +/var/spool/mail/ root.mail 2775 diff --git a/init-sh/perm.2 b/init-sh/perm.2 index c2ce992..d8cbec2 100644 --- a/init-sh/perm.2 +++ b/init-sh/perm.2 @@ -1,8 +1,8 @@ # Welcome in Level 2 ### -/bin root.root 755 -/boot root.root 755 -/dev root.root 755 +/bin/ root.root 755 +/boot/ root.root 755 +/dev/ root.root 755 /dev/audio* root.audio 660 /dev/dsp* root.audio 660 /etc/ root.root 755 @@ -13,6 +13,7 @@ /etc/cron.weekly/ root.root 755 /etc/crontab root.root 644 /etc/dhcpcd/ root.root 755 +/etc/dhcpcd/* root.root 644 /etc/esd.conf root.root 644 /etc/ftpaccess root.root 644 /etc/ftpconversions root.root 644 @@ -43,21 +44,21 @@ /etc/updatedb.conf root.root 644 /home/ root.root 755 /home/* current 755 -/lib root.root 755 -/mnt root.root 755 -/root root.root 700 -/sbin root.root 755 -/tmp root.root 1777 -/usr root.root 755 +/lib/ root.root 755 +/mnt/ root.root 755 +/root/ root.root 700 +/sbin/ root.root 755 +/tmp/ root.root 1777 +/usr/ root.root 755 /usr/* root.root 755 /usr/X11R6/ root.root 755 /usr/bin/ root.root 755 /usr/bin/* root.root 755 /usr/sbin/ root.root 755 -/var root.root 755 -/var/log root.root 755 +/usr/sbin/* root.root 755 +/var/ root.root 755 +/var/log/ root.root 755 /var/log/* root.adm 640 -/var/log/security root.root 700 +/var/log/security/ root.root 700 /var/log/security/* root.root 600 -/var/spool/mail root.mail 2775 - +/var/spool/mail/ root.mail 2775 diff --git a/init-sh/perm.3 b/init-sh/perm.3 index 80c59b9..69f9fe5 100644 --- a/init-sh/perm.3 +++ b/init-sh/perm.3 @@ -1,8 +1,8 @@ # Welcome in Level 3 ### -/bin root.root 755 -/boot root.root 755 -/dev root.root 755 +/bin/ root.root 755 +/boot/ root.root 755 +/dev/ root.root 755 /dev/audio* root.audio 660 /dev/dsp* root.audio 660 /etc/ root.root 755 @@ -13,6 +13,7 @@ /etc/cron.weekly/ root.root 755 /etc/crontab root.root 644 /etc/dhcpcd/ root.root 755 +/etc/dhcpcd/* root.root 644 /etc/esd.conf root.root 644 /etc/ftpaccess root.root 644 /etc/ftpconversions root.root 644 @@ -43,30 +44,21 @@ /etc/updatedb.conf root.root 644 /home/ root.root 755 /home/* current 700 -/lib root.root 755 -/mnt root.root 755 -/root root.root 700 -/sbin root.root 755 -/tmp root.root 1777 -/usr root.root 755 +/lib/ root.root 755 +/mnt/ root.root 755 +/root/ root.root 700 +/sbin/ root.root 755 +/tmp/ root.root 1777 +/usr/ root.root 755 /usr/* root.root 755 /usr/X11R6/ root.root 755 /usr/bin/ root.root 755 /usr/bin/* root.root 755 /usr/sbin/ root.root 755 -/var root.root 755 -/var/log root.root 755 +/usr/sbin/* root.root 755 +/var/ root.root 755 +/var/log/ root.root 755 /var/log/* root.root 600 -/var/log/security root.root 700 +/var/log/security/ root.root 700 /var/log/security/* root.root 600 -/var/spool/mail root.mail 2775 - - - - - - - - - - +/var/spool/mail/ root.mail 2775 diff --git a/init-sh/perm.4 b/init-sh/perm.4 index 09d4f65..d976e49 100644 --- a/init-sh/perm.4 +++ b/init-sh/perm.4 @@ -1,8 +1,8 @@ # Welcome in Level 4, aka secure & usable. ### -/bin root.root 711 -/boot root.root 700 -/dev root.root 711 +/bin/ root.root 711 +/boot/ root.root 700 +/dev/ root.root 711 /dev/audio* root.audio 600 /dev/dsp* root.audio 600 /etc/ root.adm 711 @@ -25,6 +25,7 @@ /etc/hosts.deny root.adm 640 /etc/hosts.equiv root.adm 640 /etc/inetd.conf root.adm 640 +/etc/init.d/ root.root 750 /etc/inittab root.adm 640 /etc/ld.so.conf root.adm 640 /etc/lilo.conf root.adm 600 @@ -43,21 +44,21 @@ /etc/updatedb.conf root.adm 640 /home/ root.adm 751 /home/* current 700 -/lib root.adm 751 -/mnt root.adm 750 -/root root.root 700 -/sbin root.adm 751 -/tmp root.root 1777 -/usr root.adm 751 +/lib/ root.adm 751 +/mnt/ root.adm 750 +/root/ root.root 700 +/sbin/ root.adm 751 +/tmp/ root.root 1777 +/usr/ root.adm 751 /usr/* root.adm 751 /usr/X11R6/ root.xgrp 751 /usr/bin/ root.adm 751 /usr/bin/* root.root 755 /usr/sbin/ root.adm 751 /usr/sbin/* root.root 755 -/var root.root 755 -/var/log root.root 700 +/var/ root.root 755 +/var/log/ root.root 700 /var/log/* root.root 600 -/var/log/security root.root 700 +/var/log/security/ root.root 700 /var/log/security/* root.root 600 -/var/spool/mail root.mail 771
\ No newline at end of file +/var/spool/mail/ root.mail 771 diff --git a/init-sh/perm.5 b/init-sh/perm.5 index 5f8c1d9..ec1b9b9 100644 --- a/init-sh/perm.5 +++ b/init-sh/perm.5 @@ -1,8 +1,8 @@ # Welcome in Level 5, aka paranoid. ### -/bin root.root 711 -/boot root.root 700 -/dev root.root 711 +/bin/ root.root 711 +/boot/ root.root 700 +/dev/ root.root 711 /dev/audio* root.audio 600 /dev/dsp* root.audio 600 /etc/ root.root 711 @@ -25,6 +25,7 @@ /etc/hosts.deny root.root 600 /etc/hosts.equiv root.root 600 /etc/inetd.conf root.root 600 +/etc/init.d/ root.root 700 /etc/inittab root.root 600 /etc/ld.so.conf root.root 600 /etc/lilo.conf root.root 600 @@ -43,12 +44,12 @@ /etc/updatedb.conf root.root 600 /home/ root.root 711 /home/* current 700 -/lib root.root 711 -/mnt root.root 710 -/root root.root 700 -/sbin root.root 711 -/tmp root.root 1777 -/usr root.root 711 +/lib/ root.root 711 +/mnt/ root.root 710 +/root/ root.root 700 +/sbin/ root.root 711 +/tmp/ root.root 1777 +/usr/ root.root 711 /usr/* root.root 711 /usr/X11R6/ root.xgrp 710 /usr/bin/ root.root 711 @@ -56,9 +57,9 @@ /usr/sbin/ root.root 711 /usr/sbin/* root.root 700 /usr/sbin/sendmail root.root 755 -/var root.root 755 -/var/log root.root 700 +/var/ root.root 755 +/var/log/ root.root 700 /var/log/* root.root 600 -/var/log/security root.root 700 +/var/log/security/ root.root 700 /var/log/security/* root.root 600 -/var/spool/mail root.mail 771 +/var/spool/mail/ root.mail 771 |