diff options
author | Erik Troan <ewt@redhat.com> | 1999-04-07 06:35:49 +0000 |
---|---|---|
committer | Erik Troan <ewt@redhat.com> | 1999-04-07 06:35:49 +0000 |
commit | ef3d1e10d2012c9e2eec27cc87ffc8683e38a955 (patch) | |
tree | 922060f2b917d71d9edf80ad501943a0488a2636 | |
parent | c37b4d914245ac93d7cc04b6a3a41f35fe28d98b (diff) | |
download | initscripts-ef3d1e10d2012c9e2eec27cc87ffc8683e38a955.tar initscripts-ef3d1e10d2012c9e2eec27cc87ffc8683e38a955.tar.gz initscripts-ef3d1e10d2012c9e2eec27cc87ffc8683e38a955.tar.bz2 initscripts-ef3d1e10d2012c9e2eec27cc87ffc8683e38a955.tar.xz initscripts-ef3d1e10d2012c9e2eec27cc87ffc8683e38a955.zip |
made wtmp, utmp mode 664 and owned by group wtmp
-rw-r--r-- | initscripts.spec | 11 | ||||
-rwxr-xr-x | rc.d/rc.sysinit | 3 |
2 files changed, 12 insertions, 2 deletions
diff --git a/initscripts.spec b/initscripts.spec index 895d5c12..0d274d07 100644 --- a/initscripts.spec +++ b/initscripts.spec @@ -4,12 +4,12 @@ Name: initscripts Version: %{version} Copyright: GPL Group: System Environment/Base -Release: 4 +Release: 5 Source: initscripts-%{version}.tar.gz BuildRoot: /var/tmp/initbld Requires: mingetty, bash, /bin/awk, /bin/sed, mktemp, modutils >= 2.1.85-3, e2fsprogs, sysklogd >= 1.3.31, procps Conflicts: redhat-release <= 5.1 -Prereq: /sbin/chkconfig +Prereq: /sbin/chkconfig, /usr/sbin/groupadd %description The initscripts package contains the basic system scripts used to boot @@ -75,10 +75,14 @@ ln -s ../rc.local $RPM_BUILD_ROOT/etc/rc.d/rc2.d/S99local ln -s ../rc.local $RPM_BUILD_ROOT/etc/rc.d/rc3.d/S99local ln -s ../rc.local $RPM_BUILD_ROOT/etc/rc.d/rc5.d/S99local +%pre +/usr/sbin/groupadd -r -f utmp %post if [ ! -f /var/log/wtmp ]; then touch /var/log/wtmp + chgrp utmp /var/log/wtmp + chmod 664 /var/log/wtmp fi chkconfig --add random @@ -169,6 +173,9 @@ rm -rf $RPM_BUILD_ROOT %doc sysconfig.txt sysvinitfiles %changelog +* Wed Apr 07 1999 Erik Troan <ewt@redhat.com> +- changed utmp,wtmp to be group writeable and owned by group wtmp + * Tue Apr 06 1999 Bill Nottingham <notting@redhat.com> - fix loading of consolefonts/keymaps - three changelogs. three developers. one day. Woohoo! diff --git a/rc.d/rc.sysinit b/rc.d/rc.sysinit index 69b5992c..f7832b21 100755 --- a/rc.d/rc.sysinit +++ b/rc.d/rc.sysinit @@ -283,6 +283,9 @@ fi # Clean out /etc. rm -f /etc/mtab~ /fastboot /fsckoptions /forcefsck >/var/run/utmp +>/var/log/wtmp +chgrp utmp /var/run/utmp /var/log/wtmp +chmod 0664 /var/run/utmp /var/log/wtmp # Delete pam_console lock and refcount files rm -f /var/lock/console.lock |