From MEPIS Documentation Wiki

Revision as of 14:50, 15 March 2009 by Marvin02 (Talk | contribs)
Jump to: navigation, search

The chmod command is used to change permissions of files and folders. For complete information, see the chmod man page (man chmod). chmod is a very flexible command in terms of syntax, so you'll see it used in a variety of ways. A few useful applications of chmod:

To remove all read/write/execute restrictions on a file:

chmod 777 filename

To make a file executable (needed for scripts that you've written or downloaded):

chmod +x filename

To make a program or script run with root priveleges regardless of who runs it (be careful!):

chmod +s filename

To lock down a file so only the owner can do anything to it:

chmod 700 filename


Personal tools