How to Change Permissions on ce.uml.edu

 

Setting File Permissions:

The "chmod" command modifies the read, write, and execute permissions of specified files and the search permissions of specified directories.
 

The format for the command is as shown below:

               chmod [who] permission file
 

[who] refers to who you are giving permissions to.

Specified in the order:  user, group, others.

The permissions that can be given are : read, write or execute.

 

The Octal digits used for assigning permissions are as follows:

Octal Digit

Permissions

3-Character Display

7

read, write, execute
rwx

6

read, write
rw-

5

read, execute
r-x

4

read
r--

3

write, execute
-wx

2

write
-w-

1

execute
--x

0

(none)
---

 

Example:

$ chmod 711 .file

This command will give read, write, execute permissions to the user (owner), execute permission to the group and execute permission to others.

$ chmod 644 .plan

sets the permissions for the file .plan as

-rw-r--r--

meaning that the user has permission to read and write and everyone else has read-only permission.

Another way to give permissions is:

Example:

$ chmod g+r .plan
 

This command adds (hence '+')  read permissions to the group for the file .plan.

You can also use multiple abbreviations within the chmod syntax to add or subtract multiple permissions within one single command line. For example:

$ chmod ugo+rwx .plan
This command gives read, write, and execute permissions to the user (owner), the group, and all others

Viewing File permissions:

You can view the permissions by using the command

    ls -la

This lists the files with the permissions assigned to them.