Basic Mason Web Instructions
- Basic Unix Commands
- Basic HTML
- Accessing Directories
- Setting Individual File Permissions
- Creating Group Access
- Setting Group Access Permissions
- cd: Change directory, cd path
- cd ..: Move up one directory, cd ..
- cp: Make a copy of a file, cp oldname newname
- ls: Show contents of directory
- ls -l:List files in long format
- man: Help on commands or topics
- man -k keyword: Help using a keyword
- mkdir: Create a directory, mkdir dirname
- mv: Rename a file, mv oldname newname
- pico: Edit a file, pico filename
- pwd: present working directory
- quota: Show space left in account
- rm: Delete a file, rm filename
- rmdir: Remove a directory, rmdir dirname
- more: View a file screen by screen, more filename
<HTML>
Accessing Directories on www.gmu.edu
<HEAD>
<TITLE> your organization </TITLE>
</HEAD>
<BODY>
Hello World!
</BODY>
</HTML>
TO Create New Files
Log on to your mason/osf1 account
Type: cd /usr/local/htdocs/ your_directory_path/your_directory
Type: pico filename.html
Note: index.html should be your main homepage
File transfer protocol (FTP) files using WS_FTP (PCs only):
Tab to Host Name
Type: osf1.gmu.edu
Tab to Host Type: select automatic detect from the pull-down menu by selecting the down arrow
Tab to User Id, type your osf1 username
Tab to Password, type in your password
Select OK
At this point you should see a split screen. The left side shows files that are on the PC you are working on; the right side shows files that are in your Mason account home directory.
Select ChgDir on the Local System and enter the directory path where your files are located.
Select ChgDir on the Remote System and enter:
/usr/local/htdocs/your_directory_path/your_directory_path
Highlight the file(s) in the left column that you want to transfer. In the middle of the window, you will see a button with a right arrow on it. Select this arrow.
The file(s) will now be moved to your directory on http://www.gmu.edu/your_directory_path/your_directory_path.
Setting Individual File Permissions
Move to your directory on http://www.gmu.edu
>cd /usr/local/htdocs/your_directory_path/your_directory_path
For .html Files
Type: chmod 644 filename.html
Type: chmod 644 *.html
or Type: chmod 755 filename.html (if you want to have the capability to do server-side includes)
For .gif/.jpg Files
Type: chmod 644 image.gif or Type: chmod 644 image.jpg
For Additional Assistance: Type: man chmod
If you need a group created for your directory on the Mason Web (www.gmu.edu), the owner of the directory must send an e-mail from the owner's mason/osf1 account to the Mason Web Master (webmaster@gmu.edu). In the e-mail, please state that you are requesting a group be created for your directory, give the directory path or the url, and list all mason/osf1 e-mail addresses to be included in the group.
Setting Group Access Permissions
Move to your directory on http://www.gmu.edu:
cd /usr/local/htdocs/your_directory_path/your_directory_path
For Directories: Type: chmod 775 directory_name
For .html Files:
Type: chmod 664 filename.html
Type: chmod 664 *.html
or Type: chmod 775 filename.html
(if you want to have the capability to do server-side includes)
For .gif/.jpg Files:
Type: chmod 664 image.gif
or
Type: chmod 664 image.jpg

