[thelist] Linux CHMOD

XtiaN indotekken at yahoo.com
Tue May 13 05:04:00 CDT 2008

Thanks Raoul for the reply,

Actually i knew about chmod and permission (octal 421, rwx user group other). 
But i don't know exactly the best practise for using that when i want to run some upload script.

I still confuse the default user n group  created from php mkdir in my fedora is 'apache'.
So if i want to chmod my directories to 755, then is it ok if i chown those directories to apache?

----- Original Message ----
From: Raoul Snyman <raoul.snyman at saturnlaboratories.co.za>
To: thelist at lists.evolt.org
Sent: Tuesday, May 13, 2008 3:23:52 PM
Subject: Re: [thelist] Linux CHMOD


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/


* * Please support the community that supports you.  * *

For unsubscribe and other options, including the Tip Harvester 
and archives of thelist go to: http://lists.evolt.org 
Workers of the Web, evolt ! 

Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ

More information about the thelist mailing list