This page is meant to consolidate all of the how-to's related to the Inventory System.
When we hire new co-ops and part time staff, we need to add them as users of the system. (See Adding a New User).
Co-op access typically includes an expiry date, so it is not critical that their accounts be deleted when they leave. You can optionally tidy upthe list of users.
Start by looking at the list of users who have access to the system. There will probably be some expired users that should obviously be removed. Once these users are identified, remove them as described in the Removing a User section.
Users must be added manually. There are two ways that this can be done; Either through the phpMyAdmin web interface (Method 1) or through terminal (Method 2).
Via phpMyAdmin
Added by drallen on 7 April 2013
CS
wm
(for 'write' and 'mass-action') - for most users; or wmd
(for 'write', 'mass-action', and 'delete')
Via SSH
users
- see the example after the syntax instructions for specific details
INSERT INTO `users` ( ` userid` , `comment` , `expires` , `unit` , `suFlag` , `swFlag` , `flags` ) VALUES ( '$USERID', 'added 2012/05/08 ST #82450', '2012-06-01', 'CS', NULL, NULL, '' );
MYSQL Insert Example for user in CS:
mysql > INSERT INTO `users` ( `userid` , `comment` , `expires` , `unit` , `suFlag` , `swFlag` , `flags` ) VALUES ( 'jsmith', 'updated 2013/07/08 -- ST #12345', '2014-10-31', 'CS', NULL, NULL, '' ); quit
flags
can be set to ''
for read-only access; 'wmd'
for read/write/delete and mass-add/edit access; 'wm'
for read/write and mass-add/edit access; and 'w'
for read/write access.
User access will expire automatically after the expiration date. The user record is still available in mysql to show that they previously had access, but the user cannot log in.
The issue is probably the fault of CAS. Users will have to remove their browser cookies related to cs.uwaterloo.ca
and re-authenticate.
The procedure for deleting cookies varies from browser to browser. http://www.aboutcookies.org/default.aspx?page=2 explains the process for all browsers.