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

Re: Bug#621833: System users: removing them

On Sun, May 29, 2011 at 12:04:35PM +0100, Roger Leigh wrote:
> 2) Reinstallation.
>    I'm currently using this logic (in postinst)
>      # Create dedicated sbuild user
>      if ! getent passwd sbuild > /dev/null; then
>          adduser --system --quiet --home /var/lib/sbuild --no-create-home \
>          --shell /bin/bash --ingroup sbuild --gecos "Debian source builder" sbuild
>      fi

Cheking for the account already being present in postinst should not
be necessary. Adduser is designed to do the right thing without
additional logic in maintainer scripts. If it doesn't, please file a

If people find it desireable to automatically unlock an existing
account on adduser --system <name>, this could easily be implemented
in adduser, doing the right thing to locked accounts. If that may be
necessary, please file a bug against adduser.

> I do agree that a --local option would be a valuable and useful
> addition to the adduser and deluser etc. tools, even if currently
> a no-op.  However, due to the above I don't think that adding
> special-case user locking to deluser is the correct course of action.

What should the --local option do? If you want adduser to grow this
option, please file a bug.


Marc Haber         | "I don't trust Computers. They | Mailadresse im Header
Mannheim, Germany  |  lose things."    Winona Ryder | Fon: *49 621 72739834
Nordisch by Nature |  How to make an American Quilt | Fax: *49 3221 2323190

Reply to: