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


Ignore:
Timestamp:
Aug 29, 2008, 3:05:26 PM (17 years ago)
Author:
Daniel Kahn Gillmor
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • faq/files/chmod

    v2 v3  
    11= How do I know if a file is world readable? How can I change that? =
    22
    3 On a typicaly linux system, there are three sets of permissions:
     3On a typical Unix-style system, there are three sets of permissions:
    44
    55 * user: the permissions for the person who owns the file
    6  * group: the permissions for users who are in the group assigned to the file
     6 * group: the permissions for users who are in the group associated with the file
    77 * other: the permissions for everyone else who has an account on the server
    88
     
    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. In the following examples, the change in mode is being applied to the directory called foo.
     22If you are using [wiki:secure_shell secure shell (ssh)] you can change the mode of a file or directory with the [Man:chmod] command. In the following examples, the change in mode is being applied to the directory or file named `foo`.
    2323
    2424{{{
     
    2929chmod g-r foo
    3030
    31 # remove read and execute from all users execpt the owner
    32 chmod o-rx foo
    33 chmod g-rx foo
     31# remove read and execute from all users except the owner
     32chmod go-rx foo
     33
     34# remove all permissions from anyone but the owner
     35chmod go-rwx foo
    3436
    3537# Add read and execute access for everyone
    36 chmod o+rx foo
     38chmod a+rx foo
    3739}}}