Page 1 of 1

Secondary Login in Pi-Star

Posted: Mon Mar 30, 2020 2:45 am
by VA2DG
Hi, can a secondary login be set?
Example: add a user let say va2dg and have the same right as pi-star. So we can log SSH and Web.
We have a repeater that there is 2 Sysop and just want that each user have its own login for tracking purpose.

useradd va2dg i am able to login SSH no problem but Web access i get Restricted
va2dg is present in /home/va2dg has the same entry as pi-star in /etc/passwd and /etc/group.
Any clue?


Re: Secondary Login in Pi-Star

Posted: Mon Mar 30, 2020 4:32 pm
by w7efs
Web passwords are kept in a different file than system passwords. "man htpasswd" will give you all the details, but after rpi-rw, essentially you want:

Code: Select all

sudo htpasswd -b /var/www/.htpasswd va2dg password
The web user/password is entirely arbitrary and can be different than any system user/password, if desired. The arbitrary web user can make configuration and expert changes due to the magic of sudo in the PHP scripts that drive the web interface.