I hav a line in my /var/spool/hylafax/etc/hosts file on my fax server machine like below:
^firstname.lastname@example.org$I don't know how to set passwd on this file.
If you really want to create a password for this entry then your best choice right now is to do the following: 1. Create a user with administrative privileges by setting up a hosts entry with a null administrator password. Consult hosts(4F) for info. 2. Use telnet to talk to hfaxd and use the SITE ADDUSER command to create the user account with the password; e.g. hyla% telnet oxford hylafax Trying 184.108.40.206... Connected to oxford.chez.sgi.com. Escape character is '^]'. 220 oxford.chez.sgi.com server (HylaFAX (tm) Version 4.0beta018) ready. user sam 230 User sam logged in. admin 230 Administrative privileges established. site help adduser 214 Syntax: SITE ADDUSER user-spec [passwd [adminwd]] site adduser ^email@example.com$ foobar 500 User password is all lower-case; use something more. site adduser ^firstname.lastname@example.org$ FooBar 200 User ^email@example.com$ added with uid 0. quit 221 Goodbye. Connection closed by foreign host. You will see that an entry w/ that password exists in the hosts file for the user: ^firstname.lastname@example.org$:0:YnBA.fn3C.d3U You can also copy encrypted password entries from your system password file but this is obviously not a great idea to use the same password for login as for fax access. A better solution for folks that want to have password-controlled user accounts is to write a little program like the passwd program that sets up/changes the passwords and/or a faxadduser program for creating accounts without using the client-server protocol. I've asked for these programs to be contributed in the past but received nothing so nothing will be available in the v4.0 release. If someone thinks they want to write this program; all the code you need is in hfaxd/User.c++. Sam