Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 26 Nov 2002 13:24:14 -0800
From:      "Paul A. Scott" <pscott@skycoast.us>
To:        Jerry McAllister <jerrymc@clunix.cl.msu.edu>, Peter Brezny <peter@skyrunner.net>
Cc:        <freebsd-questions@freebsd.org>
Subject:   Re: allow write to directory but not modify the dir itself possible?
Message-ID:  <BA09267E.14FA4%pscott@skycoast.us>
In-Reply-To: <200211261909.gAQJ9QS18175@clunix.cl.msu.edu>

next in thread | previous in thread | raw e-mail | index | archive | help

> From: Jerry McAllister <jerrymc@clunix.cl.msu.edu>
> Just take away write permissions on the directory, but leave it
> on the file[s] in the directory.   You have to leave x permission
> on the directory, but not necessarily r permission.

That will allow the owner of the file to write, but will not let a user
create new files in the directory.

The 'sticky' bit on the directory will allow anyone to write to the
directory and control their own files but not delete other peoples files or
the directory itself.

chown dirowner:dirgroup dirname
chmod 1777 dirname

This may or may not be what you want, but from the original description it
seems to fit the bill.

Paul


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?BA09267E.14FA4%pscott>