From: system administration account <sysadmin () astro ! su ! se>
To: tru64-unix-managers
Subject: Alternative /sbin/it workaround?
Date: Fri, 15 Dec 2000 11:35:15 +0000 [thread overview]
Message-ID: <97688018719475.tru64-unix-managers.marc@archive.invalid> (raw)
Someone claiming to be "Paul Szabo" has been recommending that we disable
/sbin/it and /sbin/init.d/rmtmpfiles on our Tru64 systems. Apparently that
person expects us to do it on faith. The words "social engineering" come
to mind.
I have looked at /sbin/it (and /sbin/init.d/rmtmpfiles) and concluded that
whatever problems there may be are most likely related to unwarranted
assumptions about the contents of the /tmp directory. That being the case,
let me suggest an alternative workaround for /sbin/it:
1) Create a directory /root_tmp, owned by root.root, mode 0700.
2) Edit /sbin/it so that TMP_PATH=/root_tmp instead of the current
TMP_PATH=/tmp .
As for rmtmpfiles, replacing /tmp/pty_list with /root_tmp/pty_list
should also work around the problem. Alternatively, one could play with
find and xargs and remove the need for the temporary file entirely.
(Hopefully the permanent fix from Compaq will do this.)
Something like
find /dev -type c -name 'tty[a-ce-zA-Z][0-9a-f]' \
-exec /bin/chown root:system {} \; \
-exec /bin/chmod 666 {} \;
and similarly for /dev/pts . It's a shame that find can't select on the
device major number, but that's life. (Perl's File::Find module can do
it, of course.)
next reply other threads:[~2000-12-15 11:35 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-12-15 11:35 system administration account [this message]
-- strict thread matches above, loose matches on Subject: below --
2000-12-17 20:33 Alternative /sbin/it workaround? psz
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox