46 | | echo 'update users set admin=1 where uid="<username>"' | mysql tbdb |
| 44 | [deterbuild@boss ~/testbed/account]$ sudo /usr/testbed/sbin/tbadmin jhickey |
| 45 | Giving jhickey Red Dot on the web interface |
| 46 | Setting local password and shell |
| 47 | chpass: user information updated |
| 48 | Adding /usr/testbed/sbin to shell rc files |
| 49 | Adding user jhickey to group wheel in the database |
| 50 | User jhickey is already in group wheel, skipping ... |
| 51 | Updating groups for jhickey on control nodes |
| 52 | Processing user jhickey: emulab-ops testbed |
| 53 | Adding extra groups to list: tbadmin wheel |
| 54 | Updating user jhickey record on local node. |
| 55 | Updating user jhickey record on users.mini-isi.deterlab.net. |
| 56 | Group Update Completed! |
| 57 | [deterbuild@boss ~/testbed/account]$ |
48 | | |
49 | | === Shell on Boss === |
50 | | |
51 | | Testbed users are by default not allowed to log into boss. They have no password set and their shell is set to a dummy shell. |
52 | | |
53 | | This command will grab the password hash for the user out of the database and set a real shell. |
54 | | |
55 | | {{{ |
56 | | echo 'select usr_pswd from users where uid="<username>"' | mysql -N tbdb | pw user mod <username> -H 0 -s /usr/local/bin/bash |
57 | | }}} |
58 | | |
59 | | By default, users do not have /usr/testbed/sbin in their path. Add this in depending on your shell. |
60 | | |
61 | | === Working with UNIX groups (mostly for sudo) === |
62 | | |
63 | | By default, sudo comes configured to allow anyone in the group '''wheel''' to sudo. |
64 | | |
65 | | It is important that adding users to new UNIX groups be done through the testbed software, since /etc/group is regularly overwritten when new users are added to the testbed. So to add a user to wheel, we need to run: |
66 | | |
67 | | {{{ |
68 | | withadminprivs unixgroups -a <username> wheel |
69 | | }}} |
70 | | |
71 | | Make sure /usr/testbed/sbin is '''in your path.''' |