Re: How to set sticky bit on all the subdirectories (recursively)
From: Barry Margolin (barmar_at_alum.mit.edu)
Date: 05/07/04
- Previous message: mgrd: "Re: sFTP compared with FTP via VPN"
- In reply to: iffriganovitch: "How to set sticky bit on all the subdirectories (recursively)"
- Next in thread: Juha Laiho: "Re: How to set sticky bit on all the subdirectories (recursively)"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Fri, 07 May 2004 00:20:47 -0400
In article <7f003b70.0405061520.220f68e6@posting.google.com>,
vidaubannais@caramail.com (iffriganovitch) wrote:
> Hi,
>
> I want users to be able to add files in a directory.
> But I want the users NOT to be able to delete any of the present
> files, not even the files they have created (it is a shared repository
> partition).
> Is it possible to set such a security policy with UNIX permissions
> somehow? I was thinking that using sticky bits on the directories in a
> clever way it could be possible ...
No. When the directory sticky bit is set, a file's owner is still
allowed to delete it, as is anyone with write permission to the file and
directory.
And even if they couldn't delete the files, they could just overwrite
the file's contents with garbage.
-- Barry Margolin, barmar@alum.mit.edu Arlington, MA *** PLEASE post questions in newsgroups, not directly to me ***
- Previous message: mgrd: "Re: sFTP compared with FTP via VPN"
- In reply to: iffriganovitch: "How to set sticky bit on all the subdirectories (recursively)"
- Next in thread: Juha Laiho: "Re: How to set sticky bit on all the subdirectories (recursively)"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]