From MEPIS Documentation Wiki

(Difference between revisions)
Jump to: navigation, search
(added links)
Line 17: Line 17:
[[Category:Command line]]
[[Category:Command line]]

Revision as of 14:50, 15 March 2009

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