Annotation of doc/how_to_domain_coordinator.txt, revision 1.6
1.1 harris41 1: How to make a domain coordinator on
2: a newly installed LON-CAPA system
3:
4: Scott Harrison
5: April 17, 2001
1.4 harris41 6: 05/28/2001
1.1 harris41 7:
8: Example situation:
9: Adding a user "dc103" to be a domain coordinator
10: for the domain 103.
11:
12: 1. login as super-user
13: 2. /usr/sbin/adduser dc103
14: 3. passwd dc103
15: enter in a password
1.3 harris41 16: 4. Cause 'www' to be a member of the group 'dc103'
17: Change this line in /etc/group
18: dc103:x:NUMBER:
19: to be
20: dc103:x:NUMBER:www
21: 5. Set permissions for /home/dc103 and /home/dc103/public_html
1.5 harris41 22: to be readable and writeable by www.
23: chmod g+rw /home/dc103; chmod g+rw /home/dc103/public_html
1.3 harris41 24: 6. login as user=www
25: 7. cd /home/httpd/lonUsers
26: 8. install -d 103/d/c/1/dc103
27: 9. cd 103/d/c/1/dc103
28: 10. echo "unix:" > passwd
29: 11. Run the following script with the arguments
1.1 harris41 30: [script] 103 dc103
31:
32: #!/usr/bin/perl
33:
34: # quick temporary script
35: # brought up-to-date by Scott Harrison, 03/01/2001
36:
37:
38: print "Usage: rolesmanip.pl DOMAIN USERNAME\n" unless @ARGV;
39:
40: my $domain=shift @ARGV;
41: my $name=shift @ARGV;
42:
43: my ($l1,$l2,$l3)=split(//,substr($name,0,3));
44:
45: use GDBM_File;
46: my %hash;
47: tie(%hash,'GDBM_File',
48: "/home/httpd/lonUsers/$domain/$l1/$l2/$l3/$name/roles.db",
49: &GDBM_WRCREAT,0640);
50:
51: $hash{'/'.$domain.'/_dc'}='dc';
52: open OUT, ">/home/httpd/lonUsers/$domain/$l1/$l2/$l3/$name/roles.hist";
53: map {
54: print OUT $_.' : '.$hash{$_}."\n";
55: } keys %hash;
56: close OUT;
57:
58: untie %hash;
1.3 harris41 59: 12. Restart the lon processes (/etc/rc.d/init.d/loncontrol restart)
1.6 ! harris41 60: 13. Restart the httpd processes (/etc/rc.d/init.d/httpd restart)
! 61: 14. You may further define the domain coordinator user (i.e. dc103)
1.5 harris41 62: by going to http://MACHINENAME/adm/createuser.
63:
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>