locking system users on package removal

2012-06-30 Thread Simon McVittie
On 30/06/12 13:24, Stephan Springl wrote (on Bug #679642): quake-server does neither install nor purge properly on systems without shadow password because usermod gives an error for its e option in this case. I took this use of usermod from the discussion on debian-devel regarding Policy bug

Re: locking system users on package removal

2012-06-30 Thread Roger Leigh
On Sat, Jun 30, 2012 at 02:12:45PM +0100, Simon McVittie wrote: On 30/06/12 13:24, Stephan Springl wrote (on Bug #679642): quake-server does neither install nor purge properly on systems without shadow password because usermod gives an error for its e option in this case. I took this use

Re: locking system users on package removal

2012-06-30 Thread Marc Haber
On Sat, 30 Jun 2012 14:36:47 +0100, Roger Leigh rle...@codelibre.net wrote: On Sat, Jun 30, 2012 at 02:12:45PM +0100, Simon McVittie wrote: [in the preinst] -usermod -U -e '' quake-server +if [ -f /etc/shadow ]; then + usermod -U -e '' quake-server +else + usermod