Date: Thu, 26 Dec 1996 19:01:10 +0000 (GMT) From: pumpkin@uk.pi.net To: FreeBSD ISP list <freebsd-isp@freebsd.org> Subject: Manual formatting Message-ID: <Pine.BSI.3.95.961226185648.2655A-100000@Zero-Cool.Hades.Org>
next in thread | raw e-mail | index | archive | help
I recently noticed that the man command on my 2.1.5-RELEASE system was not
saving formatted copies of man pages into their respective cat[n]
directories unless I requested the man page whilst I was in root.
Weather of not it this behaviour used to be standard I'm not sure, but it
appears that the man binary should be owned and suid to the 'man' user
which it is not on my system.
However, I prefer set-gid binaries to suid ones, so the following is my
suggested scheme:
chown bin.man /usr/share/man/cat* /usr/local/man/cat*
chmod ug=rwx,o=rx /usr/share/man/cat* /usr/local/man/cat*
chown bin.man `which man`
chmod u=rwx,g=rxs,o=rx `which man`
For all I know this used to be the scheme that was used and some sort of
security hole was discovered... if anyone knows anything then I'd
appreciate your letting me know.
Also there doesn't seem to be a system script which removes cat-pages that
haven't been viewed for a while... here's mine:
--------- Cut here --------------------
!#/bin/sh
# produce a list of cat directories in man dirs that are configuered in
# /etc/manpath.conf
MANDIRS=`manpath 2>/dev/null | awk -F: '{for (n=1;n<=NF;n++) print
$n"/cat*"}'`
# Remove the formatted man pages not accessed in 2 weeks...
for nextdir in $MANDIRS; do
if [ -d $nextdir ]; then
find $nextdir -atime +14 -type f -prune -exec rm -f {} \;
fi
done
-------- End -------------------------
Yours
Scot.
---------------------------------------------------------------------------
| Scot Elliott | Please note that any opinions |
| MEng Computing IV. | expressed are mine, and not those |
| Imperial College, London | of the department or college. |
---------------------------------------------------------------------------
| e-mail: s.elliott@ic.ac.uk | IRC nick: PlumbrBoy |
| pumpkin@uk.pi.net | "You are everything in my fridge" |
---------------------------------------------------------------------------
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSI.3.95.961226185648.2655A-100000>
