Helpful Information
 
 
Category: Other server side languages / issues
CHMOD-ding

How do I CHMOD a file to 755?

What does tis mean? CHMOD...

chmod is a *nix comand. It basically sets the permissions on the file:

chmod 755 filename

I rarely use the number values, but rather rely on x (execute, r (read), and w(write):

chmod a=rxw filename

Gives read, write, and executable permissions to all users.

chmod a+r filename

Adds read permission to all users, etc.

I often mix up chmod and chown though :D.

Yes, incidentally - what exactly is 'CHOWN'?? And how do you do it? (I'm using WS-FTP) Also, what is it used for?
Thanks :)

SOunding like a buffoon here; how do I conduct the act of CHMODding?:o

chown is "change owner"

In *nix, you need permissions to perform actions on files. If you're the owner, you have ful control over the file.

For example, say I was in Linux, and I ran a file downloading utility as root.

Whatever files I download will belong to root. Now, I logout and login in as my normal user, "jason". When trying to do anything with the file, I'll get permission denied errors because root is the highest user, and has full control over the machine, the most privileges, etc. If I want the user "jason" to access the file I downloaded, I'd have to go:

chown jason filename

Which makes the user "jason" the owner of the file.


Anyway, I always use a terminal interface for FTP and such, where I can just type in:

chmod a=rw filename

For example. I believe each graphical client has its own way of accomplishing that.

Mouse: what FTP utility are you using? In WS-FTP or CUTE-FTP just right click on the file you want to set permissions for and go to 'CHMOD'.

Got it sorted thanks ;)










privacy (GDPR)