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

creation of users

I have a package, oftpd, that is able to setuid to any user.  I have
created debconf templates that allow a sysadmin to choose which user
oftpd is to run as during package configuration.  However, it does not
check to see if the given user exists or not---the program will simply
cause an error when it tries to run.

My question is: Should I ensure that the chosen user exists in the postinst?
And if so, do I create it or simply refuse to accept that user as input?

I was thinking there could be a default 'oftpd' user as well, which
was automatically created if needed, even if any other username would not
be automatically created.

;; Matthew Danish                         email: mdanish@andrew.cmu.edu ;;
;; OpenPGP public key available from:        'finger mrd@db.debian.org' ;;

Reply to: