aboutsummaryrefslogtreecommitdiff
path: root/rc.sysinit
diff options
context:
space:
mode:
authorAaron Griffin <aaronmgriffin@gmail.com>2008-12-23 14:41:09 -0800
committerAaron Griffin <aaronmgriffin@gmail.com>2008-12-23 14:41:09 -0800
commit0e4ff39e5a5c72b7d4e8d251d029d4342f68b7b6 (patch)
tree94732bbac5a436eb9b7a72db2c4f60e7d39be5c6 /rc.sysinit
parentaf3ac0dc954d96855555aa8cb12633494d465a77 (diff)
downloadinitscripts-0e4ff39e5a5c72b7d4e8d251d029d4342f68b7b6.tar.xz
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 <aaronmgriffin@gmail.com>
Diffstat (limited to 'rc.sysinit')
-rwxr-xr-xrc.sysinit1
1 files changed, 1 insertions, 0 deletions
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