version 1.2, 2001/05/28 17:25:42
|
version 1.5, 2001/05/30 17:08:43
|
Line 3 a newly installed LON-CAPA system
|
Line 3 a newly installed LON-CAPA system
|
|
|
Scott Harrison |
Scott Harrison |
April 17, 2001 |
April 17, 2001 |
|
05/28/2001 |
|
|
Example situation: |
Example situation: |
Adding a user "dc103" to be a domain coordinator |
Adding a user "dc103" to be a domain coordinator |
Line 12 for the domain 103.
|
Line 13 for the domain 103.
|
2. /usr/sbin/adduser dc103 |
2. /usr/sbin/adduser dc103 |
3. passwd dc103 |
3. passwd dc103 |
enter in a password |
enter in a password |
4. login as user=www |
4. Cause 'www' to be a member of the group 'dc103' |
5. cd /home/httpd/lonUsers |
Change this line in /etc/group |
6. install -d 103/d/c/1/dc103 |
dc103:x:NUMBER: |
7. cd 103/d/c/1/dc103 |
to be |
8. echo "unix:" > passwd |
dc103:x:NUMBER:www |
9. Run the following script with the arguments |
5. Set permissions for /home/dc103 and /home/dc103/public_html |
|
to be readable and writeable by www. |
|
chmod g+rw /home/dc103; chmod g+rw /home/dc103/public_html |
|
6. login as user=www |
|
7. cd /home/httpd/lonUsers |
|
8. install -d 103/d/c/1/dc103 |
|
9. cd 103/d/c/1/dc103 |
|
10. echo "unix:" > passwd |
|
11. Run the following script with the arguments |
[script] 103 dc103 |
[script] 103 dc103 |
|
|
#!/usr/bin/perl |
#!/usr/bin/perl |
Line 47 map {
|
Line 56 map {
|
close OUT; |
close OUT; |
|
|
untie %hash; |
untie %hash; |
|
12. Restart the lon processes (/etc/rc.d/init.d/loncontrol restart) |
|
12. Restart the httpd processes (/etc/rc.d/init.d/httpd restart) |
|
13. You may further define the domain coordinator user (i.e. dc103) |
|
by going to http://MACHINENAME/adm/createuser. |
|
|