The following examples
will demonstrate the mechanics of setting permissions using chmod
in absolute mode.
Examples
This example
will give the user, group, and others read only access on the
ball file:
$ chmod 444
ball
$ ls -l ball
-r--r--r-- 1
chuck peanuts 1320 Oct 16 12:20 ball
$
Now we will
change the permissions on ball so that user and group have write
access as well:
$ chmod
664 ball
$ ls -l ball
-rw-rw-r-- 1
chuck peanuts 1320 Oct 16 12:22 ball
$