Changes between Version 1 and Version 2 of faq/files/chmod
- Timestamp:
- Aug 27, 2008, 3:12:39 PM (16 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
faq/files/chmod
v1 v2 20 20 If you are using [wiki:sftp an SFTP program] to access your directories, the method for will vary depending on the program you are using. If you are using WinSCP, simply right click on the file or folder and click properties. You will see the current permissions and be given an opportunity to change them. 21 21 22 If you are using [wiki:secure_shell secure shell] you can change the mode of a file or directory with the `chmod` command. For example:22 If you are using [wiki:secure_shell secure shell] you can change the mode of a file or directory with the `chmod` command. In the following examples, the change in mode is being applied to the directory called foo. 23 23 24 24 {{{ 25 25 # remove read access from others 26 chmod o-r foo .txt26 chmod o-r foo 27 27 28 28 # remove read access from the group 29 chmod g-r foo .txt29 chmod g-r foo 30 30 31 31 # remove read and execute from all users execpt the owner 32 chmod o-rx foo .txt33 chmod g-rx foo .txt32 chmod o-rx foo 33 chmod g-rx foo 34 34 35 35 # Add read and execute access for everyone 36 chmod o+rx foo .txt36 chmod o+rx foo 37 37 }}}