Date: Thu, 25 Jan 1996 01:09:28 -0800 From: Josh MacDonald <jmacd@CS.Berkeley.EDU> To: freebsd-hackers@freebsd.org Subject: sticky directory symlinks Message-ID: <199601250909.BAA19980@paris.CS.Berkeley.EDU>
next in thread | raw e-mail | index | archive | help
I apologize if this has been discussed before, though I couldn't find anything on the subject. I asked a NetBSD user and he said he recalled some discussion on this topic but didn't recall the results. I just encountered the following problem: axis-/tmp % ls -ld . drwxrwsrwt 4 root wheel 512 Jan 25 00:46 ./ axis-/tmp % ln -s this sucks axis-/tmp % ls -l sucks lrwxrwsrwt 1 root wheel 4 Jan 25 00:46 sucks@ -> this axis-/tmp % rm sucks rm: sucks: Operation not permitted /tmp is mode 1777 and when I create a symlink I can't remove it. I notice that the link shares the sticky dirs inode. I think this is very very bad. I guess that an optimization is made where the linkname is kept in the directory file instead of on disk but if its a sticky directory, then I can't remove something I create. That sucks a lot. Has this been brought up before? -josh
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199601250909.BAA19980>