Diff for /doc/Attic/how_to_domain_coordinator.txt between versions 1.6 and 1.7

version 1.6, 2001/05/30 17:10:12 version 1.7, 2001/06/01 19:02:15
Line 5  Scott Harrison Line 5  Scott Harrison
 April 17, 2001  April 17, 2001
 05/28/2001  05/28/2001
   
 Example situation:  There are 16 steps to this procedure.  (Eventually
 Adding a user "dc103" to be a domain coordinator  this procedure will be replaced with interfaces.
 for the domain 103.  Till then, enjoy the UNIX command line.)
   
 1. login as super-user  You need to decide on three pieces of information
 2. /usr/sbin/adduser dc103  to create a domain coordinator.
 3. passwd dc103  
    enter in a password  * USERNAME (kermit, albert, joe, etc)
 4. Cause 'www' to be a member of the group 'dc103'  * DOMAIN (should be the same as lonDefDomain in /etc/httpd/conf/access.conf)
   * PASSWORD (don't tell me)
   
   The examples in these instructions will be based
   on three example pieces of information:
   * USERNAME=dc103
   * DOMAIN=103
   * PASSWORD=sesame
   
   You will also need to know your "root" password
   and your "www" password.
   
   1. login as root on your Linux system
      [prompt %] su
   
   2 (as root). add the user
      Command: [prompt %] /usr/sbin/adduser USERNAME
      Example: [prompt %] /usr/sbin/adduser dc103
   
   3 (as root). enter in a password
      Command: [prompt %] passwd USERNAME
               New UNIX password: PASSWORD
               Retype new UNIX passwd: PASSWORD
      Example: [prompt %] passwd dc103
               New UNIX password: sesame
               Retype new UNIX passwd: sesame
   
   4 (as root). Make www a member of the new user group.
      You will need to change 1 line in /etc/group
      Assuming USERNAME=dc103
      (your values are different)
    Change this line in /etc/group     Change this line in /etc/group
    dc103:x:NUMBER:        dc103:x:NUMBER:   
    to be     to be
    dc103:x:NUMBER:www     dc103:x:NUMBER:www
 5. Set permissions for /home/dc103 and /home/dc103/public_html  
   5. Login as the new user
      Command: [prompt %] su USERNAME
      Example: [prompt %] su dc103
   
   5 (as USERNAME).  Create a public_html directory for the new user.
      Command: [prompt %] install -d /home/USERNAME/public_html
      Example: [prompt %] install -d /home/dc103/public_html
   
   6. (as USERNAME). Set permissions for /home/dc103 and /home/dc103/public_html
     to be readable and writeable by www.      to be readable and writeable by www.
     chmod g+rw /home/dc103; chmod g+rw /home/dc103/public_html     Command: [prompt %] chmod g+rw /home/USERNAME
 6. login as user=www              [prompt %] chmod g+rw /home/USERNAME/public_html
 7. cd /home/httpd/lonUsers     Example: [prompt %] chmod g+rw /home/dc103
 8. install -d 103/d/c/1/dc103              [prompt %] chmod g+rw /home/dc103/public_html
 9. cd 103/d/c/1/dc103  
 10. echo "unix:" > passwd  7. login as user=www
 11. Run the following script with the arguments     Command: [prompt %] su www
 [script] 103 dc103              Password: WWWPASSWORD
   
   8 (as www). cd /home/httpd/lonUsers
   
   9. (as www) Create user directory for your new user.
      Let U equal first letter of USERNAME
      Let S equal second letter of USERNAME
      Let E equal third letter of USERNAME
      Command: [prompt %] install -d DOMAIN/U/S/E/USERNAME
      Example: [prompt %] install -d 103/d/c/1/dc103
   
   10. (as www) Enter the newly created user directory.
      Command: [prompt %] cd DOMAIN/U/S/E/USERNAME
      Example: [prompt %] cd 103/d/c/1/dc103
   
   11. (as www). Set your password mechanism to 'unix' 
      Command: [prompt %] echo "unix:" > passwd
   
   12. (as www). Create and run the following script with the arguments
     Create the file described below "script.pl" or whatever name you want.
   
     Command: [prompt %] perl script.pl DOMAIN USERNAME
     Example: [prompt %] perl script.pl 103 dc103
   
 #!/usr/bin/perl  #!/usr/bin/perl
   
Line 56  map { Line 117  map {
 close OUT;  close OUT;
   
 untie %hash;  untie %hash;
 12. Restart the lon processes (/etc/rc.d/init.d/loncontrol restart)  
 13. Restart the httpd processes (/etc/rc.d/init.d/httpd restart)  13. login as root
 14. You may further define the domain coordinator user (i.e. dc103)      Command: [prompt %] su
   
   14. Restart the lon processes (/etc/rc.d/init.d/loncontrol restart)
   15. Restart the httpd processes (/etc/rc.d/init.d/httpd restart)
   16. You may further define the domain coordinator user (i.e. dc103)
     by going to http://MACHINENAME/adm/createuser.      by going to http://MACHINENAME/adm/createuser.
   

Removed from v.1.6  
changed lines
  Added in v.1.7


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>