Hylafax Developers Mailing List Archives

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]

[hylafax-devel] Caldera add fax user patch




Caldera's useradd command doesn't like the -o option so
we use pwconmv instead.

I don't think this will break other Linux distributions but I don't
know for sure. 

*** hylafax/etc/faxsetup.linux.old	Fri Jun  2 18:42:36 2000
--- hylafax/etc/faxsetup.linux	Fri Jun  2 18:35:08 2000
***************
*** 30,51 ****
  # Linux-specific definitions for faxsetup.
  #
  
! addPasswd()
! {
!     useradd -m -c 'Facsimile Agent' -d $4 -u $2 -o -g $3 $1
! }
! deletePasswd()
! {
!     userdel -r $1
! }
! lockPasswd()
! {
!     return 0
! }
! modifyPasswd()
! {
!     usermod -d $4 -m -u $2 -o -g $3 $1
! # NB: we must do it twice to keep Linux happy if the
! #     home directory allready exists
!     usermod -d $4 -m -u $2 -o -g $3 $1
! }
--- 30,64 ----
  # Linux-specific definitions for faxsetup.
  #
  
! if [ -f /usr/sbin/pwconv ]; then
!     addPasswd()
!     {
! 	echo "${1}:NOLOGIN:${2}:${3}:Facsimile Agent:${4}:/bin/false" >> ${PASSWD}
! 	/usr/sbin/pwconv
!     }
!     lockPasswd()
!     {
! 	return 0			# entries are always locked
!     }
! else
!     addPasswd()
!     {
!     echo "how did it read this file?"
! 	useradd -m -c 'Facsimile Agent' -d $4 -u $2 -o -g $3 $1
!     }
!     deletePasswd()
!     {
! 	userdel -r $1
!     }
!     lockPasswd()
!     {
! 	return 0
!     }
!     modifyPasswd()
!     {
! 	usermod -d $4 -m -u $2 -o -g $3 $1
!     # NB: we must do it twice to keep Linux happy if the
!     #     home directory allready exists
! 	usermod -d $4 -m -u $2 -o -g $3 $1
!     }
! fi


-- 
Tim Rice				Multitalents	(707) 874-1130
tim@trr.metro.net




Home
Report any problems to webmaster@hylafax.org

HylaFAX is a trademark of Silicon Graphics Corporation.
Internet connectivity for hylafax.org is provided by:
VirtuALL Private Host Services