version 1.8, 2001/07/18 17:06:56
|
version 1.11, 2002/02/21 16:01:12
|
Line 41 and your "www" password.
|
Line 41 and your "www" password.
|
Retype new UNIX passwd: sesame |
Retype new UNIX passwd: sesame |
|
|
4 (as root). Make www a member of the new user group. |
4 (as root). Make www a member of the new user group. |
|
[This should be updated with the usermod command... the |
|
instructions for step #4 (this step) are only good |
|
for non-shadow passwd systems.] |
|
|
You will need to change 1 line in /etc/group |
You will need to change 1 line in /etc/group |
Assuming USERNAME=dc103 |
Assuming USERNAME=dc103 |
(your values are different) |
(your values are different) |
Line 54 and your "www" password.
|
Line 58 and your "www" password.
|
Example: [prompt %] su dc103 |
Example: [prompt %] su dc103 |
|
|
6 (as USERNAME). Create a public_html directory for the new user. |
6 (as USERNAME). Create a public_html directory for the new user. |
|
(This step does not need to be done. Only if new user will |
|
also be an "author" on the system.) |
Command: [prompt %] install -d /home/USERNAME/public_html |
Command: [prompt %] install -d /home/USERNAME/public_html |
Example: [prompt %] install -d /home/dc103/public_html |
Example: [prompt %] install -d /home/dc103/public_html |
|
|
7. (as USERNAME). Set permissions for /home/dc103 and /home/dc103/public_html |
7. (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. |
Command: [prompt %] chmod g+rwx /home/USERNAME |
# See immediately below for newer instructions: |
[prompt %] chmod g+rwx /home/USERNAME/public_html |
# Command: [prompt %] chmod g+rwx /home/USERNAME |
Example: [prompt %] chmod g+rwx /home/dc103 |
# [prompt %] chmod g+rwx /home/USERNAME/public_html |
[prompt %] chmod g+rwx /home/dc103/public_html |
# Example: [prompt %] chmod g+rwx /home/dc103 |
|
# [prompt %] chmod g+rwx /home/dc103/public_html |
|
New instructions: |
|
(This step does not need to be done. Only if the new user will |
|
also be an author on the system.) |
|
As root, make /home world executable (chmod a+x /home) |
|
As dc103 (or whatever the domain coordinator name is, |
|
chmod g+x /home/dc103 |
|
chmod g+srw /home/dc103/public_html |
|
|
8. login as user=www |
8. login as user=www |
Command: [prompt %] su www |
Command: [prompt %] su www |
Line 85 and your "www" password.
|
Line 99 and your "www" password.
|
Command: [prompt %] echo "unix:" > passwd |
Command: [prompt %] echo "unix:" > passwd |
|
|
13. (as www). Create and run the following script with the arguments |
13. (as www). Create and run the following script with the arguments |
Create the file described below "script.pl" or whatever name you want. |
Create the file described below "script.pl" or whatever name you want |
|
(it is in CVS:loncapa/doc/rolesmanip.pl). |
|
|
Command: [prompt %] perl script.pl DOMAIN USERNAME |
Command: [prompt %] perl script.pl DOMAIN USERNAME |
Example: [prompt %] perl script.pl 103 dc103 |
Example: [prompt %] perl script.pl 103 dc103 |