Date: Wed, 7 Mar 2001 15:51:17 +0100 From: Stijn Hoop <stijn@win.tue.nl> To: Jim Freeze <jim@freeze.org> Cc: questions@freebsd.org Subject: Re: Directory permissions and sticky bits Message-ID: <20010307155117.I14261@pcwin002.win.tue.nl> In-Reply-To: <Pine.BSF.4.32.0103070942140.42531-100000@www.stelesys.com>; from jim@freeze.org on Wed, Mar 07, 2001 at 09:48:22AM -0500 References: <Pine.BSF.4.32.0103070942140.42531-100000@www.stelesys.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Mar 07, 2001 at 09:48:22AM -0500, Jim Freeze wrote: > I now have > % dir /var/tmp > drwxr-xr-t 4 root wheel 512 Mar 1 22:19 ./ > drwxr-xr-t 20 root wheel 512 Jun 7 2000 ../ > drwxr-xr-t 5 jfreeze wheel 512 Mar 1 22:18 texfonts/ > drwxrwxrwx 2 root wheel 512 Mar 7 09:09 vi.recover/ > > But I cannot create a file in /var/tmp. > % touch xyz > touch: xyz: Permission denied No, see the first line of dir output; you still need write permission on the directory to create a file in it. All the sticky bit does is prevent others from deleting your files in a world writable directory. chmod a+w /var/tmp and try again. HTH, --Stijn -- What would this sentence be like if it weren't self-referential? To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010307155117.I14261>