1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81
|
Subject: SETUP: Dont' set permissions, the result is weird
Author: Martin Pitt <martin@piware.de>
Date: 2004-01-28 (or earlier)
Bug-Debian: https://bugs.debian.org/190169
Forwarded: unknown
--- a/SETUP.in
+++ b/SETUP.in
@@ -1477,39 +1477,39 @@
do_check_permissions()
{
clear
- echo "Checking permissions of $APS_BASEDIR"
-
- DIR_OWNER=`ls -lgd | "$AWK" '{ print $3 }'`
- DIR_GROUP=`ls -lgd | "$AWK" '{ print $4 }'`
- case $DIR_OWNER in
- root|daemon|bin|lp)
- # ok, secure directory owner found
- echo "found dir owner=$DIR_OWNER, ok!" ;;
- *)
- # set secure directory owner
- echo "found dir owner=$DIR_OWNER, not ok!"
- echo "setting dir owner=bin!"
- DIR_OWNER=bin ;;
- esac
- case $DIR_GROUP in
- root|wheel|other|bin|lp)
- # ok, secure directory group found
- echo "found dir group=$DIR_GROUP, ok!" ;;
- *)
- # set secure directory group
- echo "found dir group=$DIR_OWNER, not ok!"
- echo "setting dir group=bin!"
- DIR_GROUP=bin ;;
- esac
-
- # after having set sane defaults, fix permissions
- echo $n "changing permissions of $APS_BASEDIR... $c"
- chmod 555 .
- chown -R $DIR_OWNER:$DIR_GROUP .
- find . -type d -print | xargs chmod 555
- find . -type f -print | xargs chmod a+r,a-w
- echo "done."
- echo
+# echo "Checking permissions of $APS_BASEDIR"
+#
+# DIR_OWNER=`ls -lgd | "$AWK" '{ print $3 }'`
+# DIR_GROUP=`ls -lgd | "$AWK" '{ print $4 }'`
+# case $DIR_OWNER in
+# root|daemon|bin|lp)
+# # ok, secure directory owner found
+# echo "found dir owner=$DIR_OWNER, ok!" ;;
+# *)
+# # set secure directory owner
+# echo "found dir owner=$DIR_OWNER, not ok!"
+# echo "setting dir owner=bin!"
+# DIR_OWNER=bin ;;
+# esac
+# case $DIR_GROUP in
+# root|wheel|other|bin|lp)
+# # ok, secure directory group found
+# echo "found dir group=$DIR_GROUP, ok!" ;;
+# *)
+# # set secure directory group
+# echo "found dir group=$DIR_OWNER, not ok!"
+# echo "setting dir group=bin!"
+# DIR_GROUP=bin ;;
+# esac
+#
+# # after having set sane defaults, fix permissions
+# echo $n "changing permissions of $APS_BASEDIR... $c"
+# chmod 555 .
+# chown -R $DIR_OWNER:$DIR_GROUP .
+# find . -type d -print | xargs chmod 555
+# find . -type f -print | xargs chmod a+r,a-w
+# echo "done."
+# echo
echo "Now we are checking file permissions in spooldir"
set -- `ls -ld "$SPOOL"`
|