CS 200 User IDs, Passwords, Permissions & Groups 1
Needed to control access to sharepoints and their contents Because Macs & PCs now support multiple accounts, user IDs and passwords are also needed on your client machine by default, you and only you, have access to the folders & files you create for the most part you don t notice them because it s automatic ie. happens by default, although you can give others access A group is a named collection of user IDs User IDs & Passwords on unix machines (eg. Macs), access to a file or folder can be given to the members of a group in addition to the owner 2
Permissions as seen by OS X s Finder Permissions for files Read & Write Read Only No Access Permissions for folders Read & Write (full access) Read Only (list contents) Write Only (Drop Box) No Access Permissions are granted separately to the owner (identified by a userid) a group others ie everyone else, aka public permissions if you are not the owner & your userid is in the group, you get group access otherwise you have whatever access the file or folder s public permissions provide Only the owner can change a file or folder s permissions 3
Changing Permissions in a Unix Terminal Open a Terminal/Unix shell Applications: Utilities: Terminal Log into your student.cs.account ssh bmdaly@linux.student.cs.uwaterloo.ca Change to your public_html directory (web root folder) cd public_html Look at the permissions of the files within that folder CS 200 Spring 2016 4 Userids, Passwords, Permissions & Groups
What do the permissions mean? User (u) first three or four letters Group (g) next set of three letters Other (o) last set of three letters r Read Only w Write Only x Executable d Directory 5
Final steps to change permissions on a folder Change the group and everyone permissions to be readable chmod go+rx cs200.html This will change the permissions on the file cs200.html to be: readable and executable to the group and everyone chmod -R go+rx publc_html This will change the permissions of all files within the public_html folder to be: readable and executable to the group and everyone it applies to all the files within public_html because -R means recursive chmod g+rwx cs200.html This will change the permissions on the file cs200.html to be: readable, writable, executable to the group chmod g-w cs200.html This changes the permissions of the file cs200.html: It removes the writable permissions for the group CS 200 Fall 2016 6 Userids, Passwords, Permissions & Groups
Using your own machine (1) You can change permissions on files on your own machine by accessing a unix shell such as Terminal To change permissions on files on your student.cs network drive from your own machine: use a unix shell such as Terminal login to your student.cs account by typing ssh userid@linux.student.cs.uwaterloo.ca, where userid is your Quest/student.cs username, then press Enter type your student.cs password and press Enter you can now change permissions on the files in your student.cs network drive as you would from a campus machine 7
Using your own machine (2) If you want to access and use the files from your student.cs network drive on your own machine: Connect to the server smb://smb-files.student.cs.uwaterloo.ca On a mac, go to Finder > Go > Connect to Server Enter your Quest/student.cs username and your student.cs password You can then select your username to mount your network drive If you want to access and use these files on your own machine and you are off campus: Follow the instructions here: https://uwaterloo.ca/informationsystems-technology/services/virtual-private-network-vpn/aboutvirtual-private-network-vpn#difference-vpn-remote-desktop to set up a VPN client and access the university s VPN You can then follow the above instructions 8