![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| To What files root does not have access to?? | mgirinath | Shell Programming and Scripting | 3 | 12-07-2005 09:14 PM |
| log root access | dsbeck | UNIX for Dummies Questions & Answers | 1 | 08-30-2005 11:27 PM |
| root access | RBurer | SCO | 2 | 05-18-2005 02:36 PM |
| how to access root priveliges if root password is lost | wojtyla | Linux | 1 | 02-18-2005 06:24 AM |
| root access on sun os and permissions | allinone | UNIX for Dummies Questions & Answers | 2 | 03-12-2002 10:34 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
|||||
|
i, myself, would never create an automatic user creation script from a webpage but since you asked for ideas ...
you can have the users fill a form that corresponds to the /etc/passwd fields and then have a background job --- running as root --- look at the form, create the accounts, and zero out the form again ... *** make sure your script sets the uid and gid as well as do sanity checks on the information so you don't automatically give somebody full access to your server without knowing who they are ... |
|
|||||
|
If, on Linux, you can try the newusers utility: Code:
NAME
newusers - update and create new users in batch
SYNOPSIS
newusers [new_users]
DESCRIPTION
newusers reads a file of user name and cleartext password pairs and uses
this information to update a group of existing users or to create new
users. Each line is in the same format as the standard password file (see
passwd(5)) with the following exceptions.
pw_passwd This field will be encrypted and used as the new value of the
encrypted password.
pw_age This field will be ignored for shadow passwords if the user
already exists.
pw_gid This field may be the name of an existing group, in which case
the named user will be added as a member. If a non-existent
numerical group is given, a new group will be created having
this number.
pw_dir This field will be checked for existence as a directory and a
new directory with the same name will be created if it does not
already exist. The ownership of the directory will be set to be
that of the user being created or updated.
(more)
There are many important web applications where accounts need to be created on a server, certainly if you are selling inexpensive web hosting with shell access, mail accounts, etc. |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|