|
|
introduction
|
Your files in your network data space are protected by Unix security features. These
features control read, write, and execute access to your folders and files.
For each folder and file, you can set the level of access. You need to change
the permission settings for the "public_html" folder to allow users to view (read)
your Web pages from a Web browser.
|
|
definitions
|
- Read: The action of transferring data from an input source into a computer's
memory or from memory into the central processing unit (CPU).
- Write: A transfer of information to a storage device, such as a disk, or to
an output device, such as the monitor or printer. For example, a disk write means
that information is transferred from memory to storage on disk.
- Execute: To perform an instruction. In programming, execution implies loading
the machine code of the program into memory and then performing the instructions.
(Definitions obtained from the online Microsoft Press Computer Dictionary, Third
Edition.)
|
|
before you start
|
Before trying the following steps, be sure that you have a NetID.
For the following steps, you need to already be logged
on to the ITS Unix environment.
|
|
steps
|
viewing a list of directories with details
NOTE At the gamera% prompt, type "cd ..", and press Enter to move up from the
public_html folder to the root level.
At the gamera% prompt, type "ls -l", and press Enter.
You will see:
drwx--l-- <your NetID> 512 Nov 13 0:47
public_html
changing permissions on your files
At the gamera% prompt, type "chmod 711 ~netid" and press Enter.
NOTE Replace "netid" with your actual NetID.
changing permissions on public_html
At the gamera% prompt, type "chmod 711 public_html" and press Enter.
changing permissions on folders in public_html
At the gamera% prompt, type "chmod 755 name of folder" and press Enter.
NOTE Replace "name of folder" with the actual folder name.
changing permissions on files
- Change to the public_html folder by typing "cd public_html" and press Enter.
- Type "ls -l" to view the folder's contents.
- To set permissions for a file within the public_html folder, type "chmod 644
name of file" and press Enter.
NOTE Replace "name of file" with the actual file name. For example, "index.html".
To set permissions for all files within the folder, type "chmod 644 *.*" and press Enter.
|
|
useful commands
|
|
chmod
|
To change mode or permissions.
|
|
u, g, or o
|
To change permission for user, group, or other.
|
|
+ or -
|
To add or subtract permission.
|
|
r, w, or e
|
To add or subtract read, write, or execute permissions.
|
|
cd name of folder
|
To change to a directory.
|
|
cd ..
|
To move up a directory.
|
|
|
help
|
|
return to web pages |
continue to moving HTML files to the CMS Unix environment
|