The purpose of this document is to explain how to upload files to a group directory on the webserver, such as a course directory (www.physics.ucsb.edu/~astro1), and make your files "group writable" so that other people in your group can update them.
PCS will change your main group in /etc/passwd to match your group directory.
For further help on this step see: Transferring files to our webserver
We suggest using WinSCP or SFTP from a command prompt so that you can easily change the permissions on the file after it's uploaded.
Using WinSCP:
- Highlight the file you just uploaded and then right click on it.
- Select Properties.
- You will see a window with check boxes for all the permissions.
- Select "read" and "write" under group.
- Click OK.
Using SFTP from a command prompt:
- Upload the file to your group directory as you normally would.
- List the directory contents to verify the name of the file you just uploaded:
sftp> dir- Type the Unix command to change file's permissions:
- sftp> chmod 660 <filename.html>
You will not see the resulting permission change until you log out and log
back in. You should see rw-rw---- which means the file is read-writable to
both the owner of the file and the group:
-rw-rw---- 1 testuser pcs
20 Feb 5 16:17 <filename.html>
Please keep in mind that your fellow group members can overwrite your changes when you make your files group writable.