Mailing List Archive

Support open source code!


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: access mode of a directory



A.Sajjad Zaidi wrote:

> Hector Akamine wrote:
>
> > I am using .htaccess in apache to restrict the files of a
> > directory (originally with mode 755) to be viewed only when the correct
> > username and password is provided. But the contents of the directory can
> > obviously be seen by anybody who can log to the machine. Does changing
> > the permissions to 711 prevent this?
>
> To do this you will have to set the permissions to 750 for the directory
> and change group to nobody (or whatever apache is set to use).

Oh, don't do that.  If you only want apache to see it, make a separate group
apache (unless it already exists) and change the directory's group to this
apache group.

> However anyone in the same group will be able to see inside.

Exactly.  That might mean every samba client, and there might be other ways
to get in too.  "Nobody" doesn't exactly mean everybody, but it comes pretty
close to meaning every stranger.

Home | Main Index | Thread Index

Home Page Mailing List Linux and Japan TLUG Members Links