Secondary Login in Pi-Star

General support for the Pi-Star System
Post Reply
VA2DG
Posts: 2
Joined: Tue Dec 25, 2018 4:17 pm
Location: Montreal South Shore

Secondary Login in Pi-Star

Post by VA2DG » Mon Mar 30, 2020 2:45 am

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?

Daniel
VA2DG
73's
Daniel VA2DG

User avatar
w7efs
Posts: 333
Joined: Sun Apr 22, 2018 4:26 pm

Re: Secondary Login in Pi-Star

Post by w7efs » Mon Mar 30, 2020 4:32 pm

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.

Post Reply