![]() |
Building 3D Models for the WebSetting File Permissions in Unix |
The SGI workstations and the DECstations use variations of the Unix operating system. You need to set access permissions on your Web files so that everyone can read them. If you are working in groups, then you also have to set permissions so that the others in your group can modify your files.
jaguar 1% ls -l
That's an ell, not a one after the hyphen. The output will look something
like this.
-rw-r--r-- 1 jbhkvwa iupsouth 362 Mar 29 20:47 nontrdbse.wrl
-rw-rw-r-- 1 mmccarty iupsouth 771 Mar 16 17:39 nontrdhse.html
drwxrwxr-x 2 mmccarty ls499 4096 Mar 29 21:01 objects
jaguar 3% chgrp iupsouth objects
You can change the group ownership for all of the files in the current
directory by using an asterisk
jaguar 4% chgrp iupsouth *
Use the chmod command to change access permissions. The chmod command has two forms--a comprehensible form and a bizarro form. The comprehensible form is
jaguar 4% chmod g+r nontrdbse.wrl
This adds read access for the group. Use u for the owner (or user), g for
the group, o for others, and a for all three. You can combine them.
jaguar 4% chmod go+r nontrdbse.wrl
jaguar 5% chmod go+rx objects
jaguar 6% chmod g+rw,o+r nontrdbse.wrl
The bizarro form uses numbers to set access permissions.
Digit Access
----- ------
0 ---
4 r--
5 r-x
6 rw-
7 rwx
So
jaguar 7% chmod 664 nontrdbse.wrl
jaguar 8% chmod 600 nontrdhse.html
jaguar 9% chmod 775 objects
will set the following permissions
-rw-rw-r-- 1 jbhkvwa iupsouth 362 Mar 29 20:47 nontrdbse.wrl
-rw----r-- 1 mmccarty iupsouth 771 Mar 16 17:39 nontrdhse.html
drwxrwxr-x 2 mmccarty ls499 4096 Mar 29 21:01 objects
![]()
Maintained by
H. Edward Donley
<hedonley@grove.iup.edu>
Last Modified Monday, 13-Aug-2001 16:53:27 EDT