Hylafax Mailing List Archives
|
[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
Re: [hylafax-users] Caldera faxsetup problem with useradd
It doesn't quite patch right:
[root@metroid src]# dir
OpenLinux hylafax linux-2.2.14 tiff-v3.5.5
caldera-add-fax-user.patch linux sox
[root@metroid src]# patch -bp0 < caldera-add-fax-user.patch
patching file `hylafax/etc/faxsetup.linux'
Hunk #1 FAILED at 30.
1 out of 1 hunk FAILED -- saving rejects to hylafax/etc/faxsetup.linux.rej
[root@metroid src]#
This is possibly due to CR/LF at the end of the lines, I didn't check.
But, following your lead, I made a less-intrusive patch like this, which
works both on Caldera 2.3 and on RedHat 6.1 (my current testing stations).
Thanks,
Lee Howard
--- etc/faxsetup.linux.old Sat Sep 9 00:46:49 2000
+++ etc/faxsetup.linux Sat Sep 9 00:50:43 2000
@@ -32,7 +32,11 @@
addPasswd()
{
- useradd -m -c 'Facsimile Agent' -d $4 -u $2 -o -g $3 $1
+ if [ "`useradd -v 2>&1`" = "useradd version 1.7" ]; then
+ echo "${1}:NOLOGIN:${2}:${3}:Facsimile Agent:${4}:/bin/false" >>
${PASSWD};
+ /usr/sbin/pwconv;
+ else useradd -m -c 'Facsimile Agent' -d $4 -u $2 -o -g $3 $1
+ fi
}
deletePasswd()
{
____________________ HylaFAX(tm) Users Mailing List _______________________
To unsub: mail -s unsubscribe hylafax-users-request@hylafax.org < /dev/null