NetBSD Problem Report #889

From gnats  Tue Mar 21 16:49:49 1995
Received: from ledoux.arbld.unimelb.EDU.AU (ledoux.arbld.unimelb.EDU.AU [128.250.133.13]) by sun-lamp.cs.berkeley.edu (8.6.10/8.6.10) with ESMTP id QAA18028 for <gnats-bugs@sun-lamp.cs.berkeley.edu>; Tue, 21 Mar 1995 16:49:42 -0800
Message-Id: <199503220046.KAA07390@candella.arbld.unimelb.EDU.AU>
Date: Wed, 22 Mar 1995 10:46:15 +1000
From: Darren Reed <darrenr@vitruvius.arbld.unimelb.EDU.AU>
Reply-To: darrenr@vitruvius.arbld.unimelb.EDU.AU
To: gnats-bugs@sun-lamp.cs.berkeley.edu
Subject: bug with rm/ln -s
X-Send-Pr-Version: 3.2

>Number:         889
>Category:       kern
>Synopsis:       can't remove short symbolic links
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    kern-bug-people
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Mar 21 16:50:02 +0000 1995
>Closed-Date:    Thu Feb 08 09:19:36 +0000 1996
>Last-Modified:  Thu Feb 08 09:21:09 +0000 1996
>Originator:     Darren Reed
>Release:        NetBSD-current
>Organization:
University of Melbourne
>Environment:
Sun Sparc IPC, NetBSD-current
System: NetBSD candella.arbld.unimelb.edu.au 1.0A NetBSD 1.0A (1.0A) #4: Mon Feb 20 18:33:28 EST 1995 root@:/usr/src/sys/arch/sparc/compile/1.0A sparc


>Description:
	Can't remove short symbolic links to files which are owned by
another uid under certain circumstances, (notably the one below with
/tmp) due to the way ownership and permissions are inherited.

>How-To-Repeat:
(candella:/tmp) ln -s /etc/foo baz
(candella:/tmp) rm baz
remove baz? y
rm: baz: Operation not permitted.
(candella:/tmp) ls -algd .
drwxrwxrwt  4 root  wheel  512 Mar 21 20:49 .
(candella:/tmp) ls -algd baz
lrwxrwxrwt  1 root  wheel  8 Mar 21 20:49 baz -> /etc/foo
>Fix:
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: mycroft 
State-Changed-When: Thu Feb 8 04:19:36 EST 1996 
State-Changed-Why:  
Fixed. 
>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.