From owner-freebsd-isp Thu Dec 26 11:13:35 1996 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id LAA03936 for isp-outgoing; Thu, 26 Dec 1996 11:13:35 -0800 (PST) Received: from Zero-Cool.Hades.Org (nobody@d1a23.uk.pi.net [194.73.76.23]) by freefall.freebsd.org (8.8.4/8.8.4) with ESMTP id LAA03930 for ; Thu, 26 Dec 1996 11:13:23 -0800 (PST) From: pumpkin@uk.pi.net Received: from localhost (scot@localhost) by Zero-Cool.Hades.Org (8.7.5/8.7.3) with SMTP id TAA02672 for ; Thu, 26 Dec 1996 19:01:10 GMT Date: Thu, 26 Dec 1996 19:01:10 +0000 (GMT) X-Sender: scot@Zero-Cool.Hades.Org To: FreeBSD ISP list Subject: Manual formatting Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-isp@freebsd.org X-Loop: FreeBSD.org Precedence: bulk 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" | ---------------------------------------------------------------------------