Use UserAdm
A typical account creation scenario with UserAdm
might looking something like this:
- A new user logs into your system as new.
- The user fills out the appropriate information and
the account request is logged.
- You receive e-mail notification of the account request.
- You log in and manually approve the account using
approve.
- approve creates
the user account. The user can now log in.
This is the simplest scenario for use of the UserAdm
package. Following are a few simple ways to modify this
default behavior.
Restricting accounts to faculty
You may have a machine in your department on which only
faculty members should be able to request accounts. The
following configuration will automatically create accounts
for BU faculty, but will reject account requests from
anyone else.
- The degree lines
in your configuration file would look something like
this:
degree faculty * f * NONE
(There should be no other degree lines
in the file.)
- To enable automatic account creation, uncomment
the autoapprove line in
the configuration file.
- If a faculty member logs in as new, they will go
through the standard series of questions, and if they
provide the appropriate information their account
will be created automatically. If a non-faculty
member logs in, they will receive the following message:
Your current status doesn't
match with the configuration on this machine.
Putting each course in a separate directory
If you have students from several courses using your machine,
it is convenient to put all students in a particular course
in the same directory tree.
For this example, assume that your department offers
the following courses:
| Course |
Code |
| Introductory Basket Weaving |
bw111 |
| Advanced Basket Weaving |
bw200 |
- Add the following entries to your passwd file:
bw111:*:500:500:Template account:/home/course/bw111:/bin/nosh
bw200:*:501:501:Template account:/home/course/bw200:/bin/nosh
- This assumes that there is an entry in your /etc/group
group file for GIDs 500 and 501, corresponding to
the course names.
- Add the following course entries to your config
file:
| ## |
"course" |
[ col [dept] ] |
| course |
bw111 |
|
| course |
bw200 |
|
(The col and dept
fields will default to the values obtained from
the degree entries earlier in the file.)
- Assuming the default degree entries in
your config file, an undergraduate student enrolled
in bw111 would be given the following choice when
logging in as new:
You have been found to fit into more than one
course/status category.
Please choose the course or status from the following
list that fits your current situation/needs for
getting an account on this machine.
ugrad
student
bw111
Please type the status or course name (, e.g.,
ugrad):
- Provided the student selected bw111, his/her home
directory would end up in /home/course/bw111
(obtained from the template passwd file entry). Note
that you could easily remove the default degree entries
from the config file so that the student would not
have to choose between categories when running new.
prev next
|
 |