Public Directories

Christofer C. Bell christofer.c.bell at gmail.com
Thu Jun 15 14:13:52 BST 2006


On 6/15/06, Ivan Krstic <krstic at fas.harvard.edu> wrote:
> Christofer C. Bell wrote:
> > So why can't people that want it create it?
> >
> > $ sudo mkdir /usr/share/public
> > $ sudo chmod 1777 /usr/share/public
>
> This is exactly the wrong way to do it, as it allows anyone to delete or
> rename anything within the directory, including things they didn't put
> there. This may be desired in certain situations, but not in the general
> case.

No, it does not.  Note the sticky bit.  This is the exact same
permission mode of the /tmp and /var/tmp directories.

-- 
Chris

"I trust the Democrats to take away my money, which I can afford.  I
trust the Republicans to take away my freedom, which I cannot."



More information about the ubuntu-devel mailing list