diff options
author | Roy Marples <roy@marples.name> | 2007-11-20 12:55:56 +0000 |
---|---|---|
committer | Roy Marples <roy@marples.name> | 2007-11-20 12:55:56 +0000 |
commit | 11a745ab0c3842e20251e58073ef0587ae68123b (patch) | |
tree | 6ac1648b09472b062bba1fd6ee50c5cd3431892f /init.d | |
parent | a8fcb36d72da61ebc00fb61e720d2f66e0999556 (diff) |
We no longer support pam_console directly. Also, we cannot use chgrp due to silly LDAP issues.
Diffstat (limited to 'init.d')
-rwxr-xr-x | init.d/bootmisc | 22 |
1 files changed, 4 insertions, 18 deletions
diff --git a/init.d/bootmisc b/init.d/bootmisc index 251186f2..8ea4e878 100755 --- a/init.d/bootmisc +++ b/init.d/bootmisc @@ -93,11 +93,11 @@ start() { fi done - # Setup login records + ebegin "Creating user login records" printf "" >/var/run/utmp [ -e /var/log/wtmp ] || printf "" >/var/log/wtmp - chgrp utmp /var/run/utmp /var/log/wtmp - chmod 0664 /var/run/utmp /var/log/wtmp + chmod 0644 /var/run/utmp /var/log/wtmp + eend 0 ebegin "Cleaning /var/run" for x in $(find /var/run ! -type d ! -name utmp ! -name innd.pid \ @@ -112,13 +112,6 @@ start() { esac rm -f "${x}" done - - # Reset pam_console permissions if we are actually using it - if [ -x /sbin/pam_console_apply ] && ! [ -c /dev/.devfsd ]; then - if grep -v -e '^[[:space:]]*#' /etc/pam.d/* | grep -q 'pam_console.so'; then - pam_console_apply -r - fi - fi eend 0 # Clean up /tmp directories @@ -147,18 +140,11 @@ start() { } stop() { - # Reset pam_console permissions if we are actually using it - if [ -x /sbin/pam_console_apply ] && ! [ -c /dev/.devfsd ]; then - if grep -v -e '^[[:space:]]*#' /etc/pam.d/* | grep -q 'pam_console.so' ;then - /sbin/pam_console_apply -r - fi - fi - # Write a halt record if we're shutting down case "${RC_SOFTLEVEL}" in reboot|shutdown) [ "${RC_UNAME}" = "Linux" ] && halt -w;; esac - + return 0 } |