Changes between Version 2 and Version 3 of faq/files/chmod
- Timestamp:
- Aug 29, 2008, 3:05:26 PM (17 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
faq/files/chmod
v2 v3 1 1 = How do I know if a file is world readable? How can I change that? = 2 2 3 On a typical y linuxsystem, there are three sets of permissions:3 On a typical Unix-style system, there are three sets of permissions: 4 4 5 5 * user: the permissions for the person who owns the file 6 * group: the permissions for users who are in the group ass igned tothe file6 * group: the permissions for users who are in the group associated with the file 7 7 * other: the permissions for everyone else who has an account on the server 8 8 … … 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. In the following examples, the change in mode is being applied to the directory called foo.22 If 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`. 23 23 24 24 {{{ … … 29 29 chmod g-r foo 30 30 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 32 chmod go-rx foo 33 34 # remove all permissions from anyone but the owner 35 chmod go-rwx foo 34 36 35 37 # Add read and execute access for everyone 36 chmod o+rx foo38 chmod a+rx foo 37 39 }}}