| 10 | |
| 11 | == Managing additional users == |
| 12 | |
| 13 | === Giving users "Red Dot" === |
| 14 | |
| 15 | Red Dot allows a user to enter administrative mode on the web interface. |
| 16 | |
| 17 | {{{ |
| 18 | echo 'update users set admin=1 where uid="<username>"' | mysql tbdb |
| 19 | }}} |
| 20 | |
| 21 | === Shell on Boss === |
| 22 | |
| 23 | 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. |
| 24 | |
| 25 | This command will grab the password hash for the user out of the database and set a real shell. |
| 26 | |
| 27 | {{{ |
| 28 | echo select usr_pswd from users where uid=\"<username>\" | mysql -N tbdb | pw user mod jhickey -h 0 -s /usr/local/bin/bash |
| 29 | }}} |
| 30 | |
| 31 | By default, users do not have /usr/testbed/sbin in their path. Add this in depending on your shell. |
| 32 | |
| 33 | === Working with UNIX groups (mostly for sudo) === |
| 34 | |
| 35 | By default, sudo comes configured to allow anyone in the group '''wheel''' to sudo. |
| 36 | |
| 37 | 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: |
| 38 | |
| 39 | {{{ |
| 40 | withadminprivs unixgroups -a <username> wheel |
| 41 | }}} |
| 42 | |
| 43 | Make sure /usr/testbed/sbin is '''in your path.''' |