summaryrefslogtreecommitdiffstats
path: root/etc/rc.bsdextended
diff options
context:
space:
mode:
authortrhodes <trhodes@FreeBSD.org>2006-04-22 11:02:44 +0000
committertrhodes <trhodes@FreeBSD.org>2006-04-22 11:02:44 +0000
commit954529dea307ae0360dea65771c0c56f6a84b6e3 (patch)
tree7e259eeac97cdedf7905b895eefb4bcfac13cf39 /etc/rc.bsdextended
parentcadc3729394c285df2b9fab773e799077225266a (diff)
downloadFreeBSD-src-954529dea307ae0360dea65771c0c56f6a84b6e3.zip
FreeBSD-src-954529dea307ae0360dea65771c0c56f6a84b6e3.tar.gz
Clean up, comment out non-base utilities, fix up comments.
Prodded by: hrs
Diffstat (limited to 'etc/rc.bsdextended')
-rw-r--r--etc/rc.bsdextended48
1 files changed, 14 insertions, 34 deletions
diff --git a/etc/rc.bsdextended b/etc/rc.bsdextended
index 69ecd54..b933a96 100644
--- a/etc/rc.bsdextended
+++ b/etc/rc.bsdextended
@@ -48,34 +48,25 @@ CMD=/usr/sbin/ugidfw
####
# WARNING: recommended reading is the handbook's MAC
-# chapter and the ugidfw(8)
-# manual page. You can lock yourself out of the system
-# very quickly by setting incorrect values here.
-####
-
-####
-# Set the value of 'x' to system users. This would be nice but it
-# does not get the \n proper. Work around is used below.
-#x=`awk -F: '($3 >= 1001) && ($3 != 65534) { print $1 }' /etc/passwd`;
-#l=`awk -F: '($3 >= 1001) && ($3 != 65534) { print $3 }' /etc/passwd`;
+# chapter and the ugidfw(8) manual page. You can
+# lock yourself out of the system very quickly by setting
+# incorrect values here. These are only examples.
####
####
# Build a generic list of rules here, these should be
# modified before using this script.
-# ugidfw add 1 subject uid USER1 object uid USER2 mode n
-# ugidfw add 2 subject gid USER1 object gid USER2 mode n
#
# For apache to read user files, the ruleadd must give
# it permissions by default.
####
-${CMD} add subject uid 80 object not uid 80 mode rxws;
-${CMD} add subject gid 80 object not gid 80 mode rxws;
+#${CMD} add subject uid 80 object not uid 80 mode rxws;
+#${CMD} add subject gid 80 object not gid 80 mode rxws;
####
# majordomo compat:
#${CMD} add subject uid 54 object not uid 54 mode rxws;
-${CMD} add subject gid 26 object gid 54 mode rxws;
+#${CMD} add subject gid 26 object gid 54 mode rxws;
####
# This is for root:
@@ -83,14 +74,9 @@ ${CMD} add subject uid 0 object not uid 0 mode arxws;
${CMD} add subject gid 0 object not gid 0 mode arxws;
####
-# And for mailnull:
-${CMD} add subject uid 26 object not uid 26 mode rxws;
-${CMD} add subject gid 26 object not gid 26 mode rxws;
-
-####
# And for majordomo:
-${CMD} add subject uid 54 object not uid 54 mode rxws;
-${CMD} add subject gid 54 object not gid 54 mode rxws;
+#${CMD} add subject uid 54 object not uid 54 mode rxws;
+#${CMD} add subject gid 54 object not gid 54 mode rxws;
####
# And for bin:
@@ -99,8 +85,8 @@ ${CMD} add subject gid 7 object not gid 7 mode rxws;
####
# And for mail/pop:
-${CMD} add subject uid 68 object not uid 68 mode rxws;
-${CMD} add subject gid 6 object not gid 6 mode arxws;
+#${CMD} add subject uid 68 object not uid 68 mode rxws;
+#${CMD} add subject gid 6 object not gid 6 mode arxws;
####
# And for smmsp:
@@ -114,13 +100,13 @@ ${CMD} add subject gid 26 object not gid 26 mode rxws;
####
# For cyrus:
-${CMD} add subject uid 60 object not uid 60 mode rxws;
-${CMD} add subject gid 60 object not gid 60 mode rxws;
+#${CMD} add subject uid 60 object not uid 60 mode rxws;
+#${CMD} add subject gid 60 object not gid 60 mode rxws;
####
# For stunnel:
-${CMD} add subject uid 1018 object not uid 1018 mode rxws;
-${CMD} add subject gid 1018 object not gid 1018 mode rxws;
+#${CMD} add subject uid 1018 object not uid 1018 mode rxws;
+#${CMD} add subject gid 1018 object not gid 1018 mode rxws;
####
# For the nobody account:
@@ -136,12 +122,6 @@ for x in `awk -F: '($3 >= 1001) && ($3 != 65534) { print $1 }' /etc/passwd`;
done;
####
-# Work around majordomo problem where gid is `4'.
-for x in `awk -F: '($3 >= 1001) && ($3 != 65534) { print $1 }' /etc/passwd`;
- do ${CMD} add subject uid $x object gid 4 mode arwxs;
-done;
-
-####
# Use some script to get a list of users and
# add all users to mode n for all other users. This
# will isolate all users from other user home directories while
OpenPOWER on IntegriCloud