View Full Version : CHMOD-ding

07-13-2002, 01:41 AM
How do I CHMOD a file to 755?

What does tis mean? CHMOD...

07-13-2002, 03:26 AM
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.

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

07-14-2002, 12:29 AM
SOunding like a buffoon here; how do I conduct the act of CHMODding?:o

07-14-2002, 01:19 AM
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.

07-15-2002, 02:04 PM
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'.

07-15-2002, 02:15 PM
Got it sorted thanks ;)