Re: How to hide . folders

Ken Moffat
2004-08-06T08:13:35Z

On Thu, 5 Aug 2004, Eve Atley wrote:

>
> Ken, thanks for the reply.
>
> You're correct... This is SSH via a graphical client. They are non-technical
> folks who need something simple. I'm just trying to protect any system files
> from accidental deletion.
>
> Is my question better stated, then, as how to prevent users from deleting
> any of the directories they encounter? If that's the correct question, then
> is my solution to set a read-only on any folders that I don't wish deleted?
>
I'm not an expert on this, but a quick test suggests users need write
permission on the directory to be able to write/delete the contents.

For genuine system directories, users should already be unable to
delete them (hint: don't test this on the real directories just in
case!). For your new data directories, maybe some of the data can
conveniently live in read-only directories. Beyond that, frequent
backups (search for backing up with rsync) are good.

> > something : system directories show up if you go too far up the
> > hierarchy, but permissions should prevent you writing in them.
>
> Is it possible to keep users from proceeding up further in the hierarchy, by
> chance?
>
> - Eve
>
>

I don't think so. Normally, everyone can read the top-level
directories except lost+found and they certainly need access to /tmp,

Ken
--
das eine Mal als Tragödie, das andere Mal als Farce