Linux Headquarters

I've installed Linux… now what???

chmod: Changing File and Directory Permissions

Introduction
chmod is a standard Unix/Linux command that allows you to change the permissions of a file/directory. If you do not understand permissions, see the Reading File/Directory Permissions guide before continuing.

Using chmod
There are two arguments for chmod: the permissions and the file/directory name. The permission argument for chmod is based on numbers.

1 stands for execute.
2 stands for write.
4 stands for read.

To set more than one permission on a file/directory, you just add up the permissions. For example, 7 means read, write, and execute permissions. Chmod takes the permissions as the first argument in the order user, group, global. Thus, the command chmod 777 hello will change the permissions of the file hello to read, write and execute by user, group, and everyone else.

Note: To change the permissions of a file/directory, you must be the owner of that file/directory. However, root can change permissions on any file/directory.

What is Related

Comments are closed.

Subscribe to email feed

  • RSS
  • Delicious
  • Digg
  • Facebook
  • Twitter
  • Linkedin
  • Youtube

Dedicated Linux Serv

Linux is the popular system nowadays, offering all the benefits ...

StarOffice 5.1

Introduction StarOffice 5.1 is a complete office suite with a word ...

AxY FTP

Introduction AxY FTP, formerly known as wxFTP, is a graphical FTP ...

Adobe Acrobat PDF Re

Introduction Many of you are probably familar with Adobe Acrobat Reader ...

Macromedia Shockwave

Introduction Macromedia has developed a version of its popular Shockwave plugin ...

Twitter updates

No public Twitter messages.