Section 3 : Running a Server

Q342: How to set passwd for remote users ?

? Got something to say about this answer? Hit the question mark to invoke the mailer and send your comments to the HylaFAQ maintainers.

How to set passwd for remote users ?

I hav a line in my /var/spool/hylafax/etc/hosts file on my fax server machine like below:

I don't know how to set passwd on this file.

Date: Fri, 09 Aug 1996 08:12:18 -0700
From: Sam Leffler <>
Subject: Re: How to set passwd for remote users

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
Connected to
Escape character is '^]'.
220 server (HylaFAX (tm) Version 4.0beta018) ready.
user sam
230 User sam logged in.
230 Administrative privileges established.
site help adduser
214 Syntax: SITE ADDUSER user-spec [passwd [adminwd]]
site adduser ^$ foobar
500 User password is all lower-case; use something more.
site adduser ^$ FooBar
200 User ^$ added with uid 0.
221 Goodbye.
Connection closed by foreign host.

You will see that an entry w/ that password exists in the hosts file 
for the user:


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++.


 Back to FAQ Index FAQ Index  Next question in List Q343: How do I get mgetty and ppp working with HylaFAX? Last updated $Date: 2001/06/23 05:25:42 $.