Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 10 Jul 1996 01:00:02 -0700 (PDT)
From:      J Wunsch <j@uriah.heep.sax.de>
To:        freebsd-bugs
Subject:   Re: gnu/1379: Man command problem, when it writes into symlinked dir
Message-ID:  <199607100800.BAA19283@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR gnu/1379; it has been noted by GNATS.

From: J Wunsch <j@uriah.heep.sax.de>
To: max@sfc.wide.ad.jp
Cc: FreeBSD-gnats-submit@freebsd.org
Subject: Re: gnu/1379: Man command problem, when it writes into symlinked dir
Date: Wed, 10 Jul 1996 09:37:39 +0200 (MET DST)

 As Masafumi NAKANE wrote:
 
 > The man command doesn't check the owner of the symbolic link when it
 > writes the formatted man page out to symlinked cat? directory.
 
 The man command itself does not need to check anything (except for
 deciding whether it should present the message ``Formatting man
 page.'')
 
 As long as the target directory permissions are sufficient for it to
 write something there (i.e., for the setuid man command, the target
 directory is writable by user `man'), it can write the cat page,
 otherwise it simply can't do it.  It's not running setuid root, and it
 never did.
 
 Btw., symlinks don't have an owner or other attributes.  What you see
 as their owner is the ownership and permission of their parent
 directory, but it's entirely meaningless as long as the *target* of
 the symlink is concerned.
 
 -- 
 cheers, J"org
 
 joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE
 Never trust an operating system you don't have sources for. ;-)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199607100800.BAA19283>