|
Re: Safe removal of a user while purging: msg#00206linux.debian.devel.mentors
> Why not just run the regular account deletion, and post an error > message if it fails? That what I do in a similar situation > (lyskom-server): > > # Remove 'lyskom' user > userexist=1 > getent passwd lyskom > /dev/null || userexist=0 > if test "$userexist" = "1"; then > # User did exist > echo 'Removing lyskom user.' > deluser lyskom || echo 'Could not remove lyskom user' > fi Policy 7.2: "...Note, however, that the postrm cannot rely on any non-essential packages to be present during the purge phase...." Neither deluser nor getent is essential. > I don't think trying to mess with the things manually is a good idea. > It's not the end of the world if the account remains after purge if a > note has been posted about it, imho. Neither do I, but I can't find a good alternative that don't break 7.2. -- Magnus Ekdahl 0739-287181 magnus@xxxxxxxxxx maguno@xxxxxxxxxxxx public key available at http://oxtan.campus.luth.se/magnus.public ftp://ftp.se.debian.org/debian-non-US/pool/non-US/main/d/debian-keyring/ Key fingerprint = 18DE CB62 8A86 374E 824E 09ED 1987 4B18 1213 79F6 -- To UNSUBSCRIBE, email to debian-mentors-request@xxxxxxxxxxxxxxxx with a subject of "unsubscribe". Trouble? Contact listmaster@xxxxxxxxxxxxxxxx |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: Safe removal of a user while purging: 00206, Peter Karlsson |
|---|---|
| Next by Date: | Re: Safe removal of a user while purging: 00206, Magnus Ekdahl |
| Previous by Thread: | Re: Safe removal of a user while purgingi: 00206, Peter Karlsson |
| Next by Thread: | Sponsor requested for RDF tools - libraptor parser library: 00206, Dave Beckett |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |