

Just as each column designates a specific combination of permissions, so the total value represents a specific combination of permissions associated with user types since the order is always given as: owner group other. Note that whatever combination of permissions we create, the numbers will always be a unique representation of that combination, as shown in the following chart: Column Value Permissions Represented by - 0 none - 1 execute-only -x 2 write -w- 3 execute and write -wx 4 read-only r- 5 read and execute r-x 6 read and write rw- 7 read, write, and execute rwx Total Value The total value is now 754 rather than 777. These changes are shown in the array below: owner group other read (r) 4 4 4 write (w) 2 0 0 execute (x) 1 1 0 - total value 7 5 4 And if we wish to deny both write and execute permissions to “others,” we subtract both 2 and 1, leaving a value of 4.

Thus, if we wish to deny write permission to the owner’s group, we subtract 2 from the total of that permission, which leaves a column value of 5. If we deny one or more type of permission, then that value (4, 2, or 1) is subtracted from the value for that category of user. (In the example above, all permissions have been granted.) For each category of user (owner, group member, or other) these three permission values potentially add up to seven. If a permission is denied, then its value is always zero. Note that each permission has a numeric value associated with it: Value The three by three array above shows the basis for describing the set of nine permissions. These variables are organized into a three by three array as follows: owner group other read (r) 4 4 4 write (w) 2 2 2 execute (x) 1 1 1 - total value 7 7 7 Column Values permission for the owner’s group members to:.This is required for directories to allow searching and access. Writing, changing, deleting, and saving the file is allowedĮxecuting and invoking the file is allowed. Reading, opening, viewing, and copying the file is allowed These three groups, in turn, may or may not have three different privileges: Privilege everyone else who has access to the server (referred to as “other”).

These permissions are categorized into three groups who have or do not have the permissions: Will return a long string of information that starts with the file’s permissions: -rw-r-r- PermissionsĮvery file and directory under UNIX or Linux has a set of permissions associated with it that is shown as a three digit number (such as 755). You can see the permissions of your file using the ls command with the -l option (lowercase L not 1): % ls -l myfile.txt
PUTTY VIEW FILE DETAILS FULL
Otherwise, this document provides a full explanation of how the UNIX command chmod works. If you are logged onto a Linux box running an Xsession you can use the Windows Explorer equivalent for Linux with either the nautilus or konqueror commands.
PUTTY VIEW FILE DETAILS SOFTWARE
If you want to set file or directory permissions by right-clicking on the file or directory and checking or unchecking boxes, you can do that in a GUI file transfer software interface like with the MobaXterm, SSH Secure Shell client, WinSCP etc. This allows you to share files or directories or to lock them down to be private. This document explains how directory and file permissions on a UNIX or Linux machine are set and can be changed by the user.
PUTTY VIEW FILE DETAILS HOW TO
How to Use UNIX and Linux File Permissions Introduction
