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.

Q.
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:

    ^okamoto@granite.cias.osakafu-u.ac.jp$
I don't know how to set passwd on this file.

A.
Date: Fri, 09 Aug 1996 08:12:18 -0700
From: Sam Leffler <sam@hyla.chez.sgi.com>
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
Trying 155.11.194.2...
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 ^okamoto@granite.cias.osakafu-u.ac.jp$ foobar
500 User password is all lower-case; use something more.
site adduser ^okamoto@granite.cias.osakafu-u.ac.jp$ FooBar
200 User ^okamoto@granite.cias.osakafu-u.ac.jp$ 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:

^okamoto@granite.cias.osakafu-u.ac.jp$: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


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