Adding users to groups in postinst

2003-04-16 Thread Thomas Viehmann
Hi. The chipcard-tools package (source is libchipcard) which I maintain has the following code fragment in it's postscript to add a user chipcard (which it sets up) to the group dialout in order to access serial ports without being root: if ! getent group | grep -q

Re: Adding users to groups in postinst

2003-04-16 Thread Matthew Palmer
On Wed, 16 Apr 2003, Thomas Viehmann wrote: Now, if the dialout group entry contains nonexistent groups, above code fragment will die with gpasswd: unknown user nonexistent adduser: `/usr/bin/gpasswd -M nonexistent,chipcard dialout' returned error code 1. Aborting. I was about to say