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

Re: Fw: Bug#328053: configure on install problem: cannot add user while name_regex don't match username "sympa"



On Tue, 13 Sep 2005 12:41:07 +0200
Henning Makholm <henning@makholm.net> wrote:

> Scripsit Stefan Hornburg <racke@linuxia.de>
> 
> > When I install sympa, it fails adding this user. Here are the messages :
> > Setting up sympa (4.1.5-2) ...
> > Adding system group: sympa.
> > addgroup: Please enter a username matching the regular expression configured
> > via the name_regex configuration variable.  Use the `--force-badname'
> > option to relax this check or reconfigure name_regex.
> > Adding system user: sympa.
> > adduser: Warning: The home dir you specified already exists.
> > adduser: Please enter a username matching the regular expression configured
> > via the name_regex configuration variable.  Use the `--force-badname'
> > option to relax this check or reconfigure name_regex.
> > usermod: user sympa does not exist
> > usermod: user sympa does not exist
> > usermod: user sympa does not exist
> > usermod: user sympa does not exist
> [and much more]
> 
> What I don't understand is that the maintainer script blithely went on
> doing its thing after addgroup failed the first time. The postinst
> does have an -e flag -- what is happening here?

The maintainer script *should* fail, that "feature" needs examination.

> 
> > Wouldn't it be better that postinst script calls adduser with
> > --force-badname ?
> 
> Hm, a better and simpler medium-term solution would be to allow
> configuring a different adduser regexp for --system accounts.
>

I concur.

Bye
	Racke

-- 
Debian maintainer of Courier, Pure-FTPd, Interchange, Sympa

LinuXia Systems => http://www.linuxia.de/
Expert Interchange Consulting and System Administration



Reply to: