next up previous contents index
Next: Execute Permissions Up: File Permissions Previous: Read Permissions   Contents   Index

Write Permissions

Write permissions allow the user to write information to the file. The user may or may not have permissions set to view the contents of this file. If you are creating a log that you do not intend others to read, but you would like them to be able to add to you could create a write only file. If you wanted people to be able to read the file, but not modify it you could take away the write permissions and make it a read only file. Note that if a user has permissions to write to a file, then the user can erase the file also. To give write access to everyone type:

bash$ chmod a+w text2.txt

If you wanted to take away everyones write permissions you would replace the plus sign with a minus sign:

bash$ chmod a-w text2.txt

Joseph Colton 2002-09-24