Changes between Version 1 and Version 2 of faq/files/chmod


Ignore:
Timestamp:
Aug 27, 2008, 11:12:39 AM (12 years ago)
Author:
Jamie McClelland
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • faq/files/chmod

    v1 v2  
    2020If 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.
    2121
    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:
     22If 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.
    2323
    2424{{{
    2525# remove read access from others
    26 chmod o-r foo.txt
     26chmod o-r foo
    2727
    2828# remove read access from the group
    29 chmod g-r foo.txt
     29chmod g-r foo
    3030
    3131# remove read and execute from all users execpt the owner
    32 chmod o-rx foo.txt
    33 chmod g-rx foo.txt
     32chmod o-rx foo
     33chmod g-rx foo
    3434
    3535# Add read and execute access for everyone
    36 chmod o+rx foo.txt
     36chmod o+rx foo
    3737}}}