Add User for 1H Interface
How to add a new authorized user for the 1H Interface?
Adding a new authorized user is not hard. You can easily manage password protection for the 1H interface via the following script:
Usage: /usr/local/1h/bin/pwmanager.sh change|add|remove|list|enable|disable [username] [password]
- change - Change password for user 'username'. Password required.
- add - Add new user 'username' to the list of authorized users. Password required.
- remove - Remove user 'username' from the list of authorized users.
- suspend - Temporary disable access for user 'username' to the 1H web interfaces.
- unsuspend - Enable previously disabled access for user 'username' to the 1H web interfaces.
- enable - Enable password authentication for 1H web interfaces.
- disable - Disable password authentication for 1H web interfaces.
- status - Report current status of the password protection system (enabled/disabled, active/suspended users etc.).
It is also possible to manually add a user. The file where 1H interface passwords are kept is /home/1h/etc/web.passwd. You can add additional authorized users by executing the following command:
/usr/local/apache/bin/htpasswd /home/1h/etc/web.passwd <username>
You will be prompted to type a password then confirm by typing it again. The <username> should be replaced with the actual username you would like to authenticate with. That is all. If you want to remove access for a newly added user you can do so by deleting the line for its username from the /home/1h/etc/web.passwd file.