Unix File/Directory Permissions:Every file and directory has a set of values related to it that specifies its permissions. The permissions indicate for each user, the kind of access allowed read, write or execute.
When you use the Unix list long command: ls -l Files and directories will be displayed along with permissions assigned to each of these groups. The Unix command to change/assign permission is chmod. The following Unix instruction would give you the user (read, write, execute), group ( read, execute), other ( read, execute) permission for all files ending in htm.
The following screen capture illustrates the output from the ls -l command on UNIX account. I then issue the chmod command and then ls -l again. (My commands are highlighted in pink.) Notice the change in output before and after the chmod command.
My subdirectory test contains two directories; (d1, images), and two files; (first.htm, index.html). Before the chmod command was executed file first.htm had the following access rights: user (read,write), group (read), others (read) After the chmod 755 first.htm command was executed, file access rights were changed to: user (read,write,execute), group (read,execute), others (read,execute) The instruction for granting permissions to GIF & JPG files would be:
Again a reminder, in UNIX file names are case sensitive, so you may have to repeat these commands in upper and lower case if you have files in both formats.
This page was last updated on 01/21/2003 by L.M. Hicks |