Changelog for HylaFAX 4.2.1
+* remove need to have separate "fax" user (22 Dec 2004)
+* fix parsing of AT+FCLASS=? response within faxaddmodem
+ and probemodem (21 Dec 2004)
* improve multi-line handling within notify (20 Dec 2004)
* improve trap handling in faxaddmodem/probemodem (17 Dec 2004)
* fix hfaxd from rejecting jobs scheduled for the past while
SVR4UULCKN=$LIBEXEC/lockname # SVR4 UUCP lock name construction program
ONDELAY=$LIBEXEC/ondelay # prgm to open devices blocking on carrier
CAT="$CAT -u" # something to do unbuffered reads and writes
-FAX=fax # identity of the fax user
+FAX=@FAXUID@ # identity of the fax user
GROUP=/etc/group # where to go for group entries
PROTOGID=@FAXGID@ # group who's gid we use for FAX user
defPROTOGID=10 # use this gid if PROTOGID doesn't exist
TTYCMD=@TTYCMD@ # tty for error output
UUENCODE=@UUENCODE@ # uuencode command to dump in setup.cache
-FAX=fax # identity of the fax user
+FAX=@FAXUID@ # identity of the fax user
SERVICES=/etc/services # location of services database
INETDCONF=/usr/etc/inetd.conf # default location of inetd configuration file
ALIASES=/usr/lib/aliases # default location of mail aliases database file
faxGID=`grep "^$PROTOGID:" $GROUP | cut -d: -f3`
if [ -z "$faxGID" ]; then faxGID=$defPROTOGID; fi
-#
-# Change the password file entry for the fax user.
-#
-fixupFaxUser()
-{
- emsg1=`modifyPasswd $FAX $faxUID $faxGID $DIR_SPOOL 2>&1`
- case $? in
- 0) echo "Done, the \"$FAX\" user should now have the correct $1.";;
- *) cat <<-EOF
-
- FATAL ERROR: Command failed!
-
- The modify password command failed with the message:
-
- "$emsg1"
-
- HylaFAX will not work correctly until the proper $1 is set up.
-
- EOF
- boom
- ;;
- esac
-}
-
#
# Add a fax user to the password file and lock the
# entry so that noone can login as the user.
prompt "HylaFAX needs this to work properly, add it [yes]?"
read x
isOK $x && addFaxUser
- elif [ "$x" != "$faxUID" ]; then
- echo ""
- echo ""
- echo "It looks like you have a \"$FAX\" user in the password file,"
- echo "but with a uid different than the uid for uucp. You probably"
- echo "have old fax software installed. In order for this software"
- echo "to work properly, the fax user uid must be the same as uucp."
- prompt "Is it ok to change the password entry for \"$FAX\" [yes]?"
- read x;
- isOK $x && fixupFaxUser "user id"
- elif [ `grep "^$FAX:" $PASSWD | cut -d: -f$PARAMLOC` != $DIR_SPOOL ]; then
- echo ""
- echo ""
- echo "It looks like you have a \"$FAX\" user in the password file,"
- echo "but with a home directory different than what is currently"
- echo "configured. This is not a serious matter, but should be"
- echo "corrected."
- prompt "Is it ok to change the home directory for \"$FAX\" [yes]?"
- read x;
- isOK $x && fixupFaxUser "home directory"
fi
machdepPasswdWork
AGELOG=30 # keep log info for last 30 days
AGERCV=7 # purge received facsimile after 7 days
AGETMP=1 # purge orphaned temp files after 1 day
-FAXUSER=fax # owner of log files
+FAXUSER=@FAXUID@ # owner of log files
LOGMODE=0644 # mode for log files
XFERLOG=etc/xferfaxlog # HylaFAX xferfaxlog file location
LAST=etc/lastrun # file where time+date of last run recorded