psql -U <username> -W -d <databasename>
Replace the <username> and <databasename> with the names you have chosen before, e.g. htsys in both cases. Now run the sql command
insert into htuser (name, password, realname, email) values
('<name>', '<password>', '<realname>', '<email>');
Replace <name> with the login name, <password> with the encrypted password, <realname> with the real name of the user and <email> with his/her email. An encrypted password can be created with the following perl command:
perl -e "print crypt('<password>', '<salt>')"
Replace <password> with the readable password and <salt> with any two character alpha numeric string.
Keep in mind that this command may go into the history of your shell, which may reveal the password to others using the same Unix account.
A user can also be added to the internal user database by using a web interface (see figure 1). It can be found in the root directory of the hypertext system, e.g. http://mmc-demo.mmk-hagen.de/htsys/adduser.php. Just enter the data of the new user and hit the 'Add User' button. The currently available users are listed on the top of the page.