olistudent
IPPF-Urgestein
- Mitglied seit
- 19 Okt 2004
- Beiträge
- 14,787
- Punkte für Reaktionen
- 13
- Punkte
- 38
Das könnte dann so aussehen:
Gruß
Oliver
Code:
--- fwmod (Revision 6614)
+++ fwmod (Arbeitskopie)
@@ -383,7 +383,14 @@
# Fix some permissions
chmod -R u+w "$FILESYSTEM_MOD_DIR"
- find "${FILESYSTEM_MOD_DIR}" -maxdepth 1 -type d -exec chmod +rx {} ';'
+ for dir in "${FILESYSTEM_MOD_DIR}" "${VARTAR_MOD_DIR}"; do
+ find "$dir" -type d -exec chmod +rx {} '+'
+ done
+ # Give all users write permissions to /var/tmp to allow it to be used as a temp-directory.
+ # Set sticky bit to prevent users from deleting/renaming files they are not the owners of.
+ # NB: The permissions set are the regular temp-directory permissions on Unix-like systems.
+ chmod a+w+t "${VARTAR_MOD_DIR}/var/tmp"
+
# o-users should be allowed to access files in /etc/default.049
find "${FILESYSTEM_MOD_DIR}/etc" -maxdepth 1 -type d -name default.0* -exec chmod o+x {} ';'
@@ -619,14 +626,6 @@
chmod 644 "${VARTAR_MOD_DIR}/var/tmp/hosts" "${VARTAR_MOD_DIR}/var/tmp/resolv.conf"
touch "${VARTAR_MOD_DIR}/var/tmp/onlinechanged"
chmod +x "${VARTAR_MOD_DIR}/var/tmp/onlinechanged"
- for dir in /var /var/log /var/lock /var/run /var/tmp; do
- chmod +x "${VARTAR_MOD_DIR}${dir}"
- done
- # Give all users write permissions to /var/tmp to allow it to be used as a temp-directory.
- # Set sticky bit to prevent users from deleting/renaming files they are not the owners of.
- # NB: The permissions set are the regular temp-directory permissions on Unix-like systems.
- chmod a+w+t "${VARTAR_MOD_DIR}/var/tmp"
-
ln -s ../var/tmp/ethers "${FILESYSTEM_MOD_DIR}/etc/ethers"
ln -s ../var/tmp/exports "${FILESYSTEM_MOD_DIR}/etc/exports"
ln -s ../var/tmp/gshadow "${FILESYSTEM_MOD_DIR}/etc/gshadow"
Oliver