[thelist] Linux CHMOD

Raoul Snyman raoul.snyman at saturnlaboratories.co.za
Tue May 13 03:23:52 CDT 2008


On Tue, 13 May 2008 00:14:59 -0700 (PDT), XtiaN <indotekken at yahoo.com>
> This is my first time setting LAMP and i'm using fedora 6.0.
> I'm making some web application and i also need to chmod some directory
> 777 (i'm using upload features on my images directory)

If you're worried about security, then you don't want 777 on your
directories. 777 means that everyone can read, write and execute that

> - permission 755
> Is it ok and secure if i continue using mkdir this way? or perhaps should
> i change mkdir's permission mode  to another?

755 is normal for directories in Linux. It allows the directory's owner to
modify the directory (and write files to that directory) but doesn't allow
writing for anyone else. Others can still read the contents of the
directory, but that's all they can do.

It sounds like you're not familiar with Linux permissions. Here's an
article that should help you get to grips with how Linux and Unix
permissions work: http://www.freeos.com/articles/3127/

Raoul Snyman, B.Tech IT (Software Engineering)
Saturn Laboratories
e: raoul.snyman at saturnlaboratories.co.za
w: http://www.saturnlaboratories.co.za/
b: http://blog.saturnlaboratories.co.za/

More information about the thelist mailing list