From 0e4ff39e5a5c72b7d4e8d251d029d4342f68b7b6 Mon Sep 17 00:00:00 2001 From: Aaron Griffin Date: Tue, 23 Dec 2008 14:41:09 -0800 Subject: chmod /var/run/utmp to 664 when creating This allows X terminals to write to /var/run/utmp so that they are reported properly to commands like who and w Signed-off-by: Aaron Griffin --- rc.sysinit | 1 + 1 file changed, 1 insertion(+) (limited to 'rc.sysinit') diff --git a/rc.sysinit b/rc.sysinit index 76ce5a2..6c29be9 100755 --- a/rc.sysinit +++ b/rc.sysinit @@ -325,6 +325,7 @@ stat_busy "Removing Leftover Files" /bin/rm -f /forcefsck &>/dev/null (cd /var/run && /usr/bin/find . ! -type d -exec /bin/rm -f -- {} \; ) : > /var/run/utmp +/bin/chmod 0664 /var/run/utmp # Keep {x,k,g}dm happy with xorg /bin/mkdir /tmp/.ICE-unix && /bin/chmod 1777 /tmp/.ICE-unix /bin/mkdir /tmp/.X11-unix && /bin/chmod 1777 /tmp/.X11-unix -- cgit v1.2.3