Subject: misc/6166: No obvious documentation on symlink modes
To: None <gnats-bugs@gnats.netbsd.org>
From: None <dave@dtsp.co.nz>
List: netbsd-bugs
Date: 09/15/1998 22:19:25
>Number:         6166
>Category:       misc
>Synopsis:       No obvious documentation on symlink modes
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    misc-bug-people (Misc Bug People)
>State:          open
>Class:          doc-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Sep 15 16:05:01 1998
>Last-Modified:
>Originator:     Dave Sainty
>Organization:
Dynamic Technology Services and Products Ltd
>Release:        August sup
>Environment:
System: NetBSD tequila.dave.dtsp.co.nz 1.3G NetBSD 1.3G (TEQUILA) #1: Thu Aug 20 00:13:30 NZST 1998 dave@tequila.dave.dtsp.co.nz:/vol/tequila/userC/NetBSD-current/src/sys/arch/i386/compile/TEQUILA i386


>Description:
	Now we have these wonderful (???) lch{own,mod} system calls I wondered
	if it was possible to set setuid/setgid bits on symlinks.  Finding out
	that you could (!) I then went to the man pages to find out what it
	actually means to do so, and found no mention.

>How-To-Repeat:
	ln -s =sh y
	chmod -h u+s y
	ls -la y
	lrws------  1 dave  user  7 Sep 16 10:00 y@ -> /bin/sh
	man ln
	man 2 symlink
	man 7 symlink
	man chmod
>Fix:
	Find out (or know :) what its effect is and update symlink(7).
>Audit-Trail:
>Unformatted: