496
edits
No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
File permissions and chmod | File permissions and chmod | ||
What are file permissions? | == What are file permissions? == | ||
File permissions are important, they specify what you let people do to your files. There are generally three types of file permissions: | File permissions are important, they specify what you let people do to your files. There are generally three types of file permissions: | ||
* Read Permission | |||
This allows people to 'read' your files, for example to go into a text editor and load up a text file, however, read is all they can do, they can't edit it and save the changes, delete, or move the file but they can copy it into their own directory. | This allows people to 'read' your files, for example to go into a text editor and load up a text file, however, read is all they can do, they can't edit it and save the changes, delete, or move the file but they can copy it into their own directory. | ||
* Write Permission | |||
This allows people to change your file or even delete it. | This allows people to change your file or even delete it. | ||
* Execute Permission | |||
This means that people can 'run' your file, for example if it were a CGI or shell script. Folder-wise, it means that people can 'cd' into your directory, but remember, they can not list the files in that directory unless you have set read permissions on that directory. | This means that people can 'run' your file, for example if it were a CGI or shell script. Folder-wise, it means that people can 'cd' into your directory, but remember, they can not list the files in that directory unless you have set read permissions on that directory. | ||
edits