On Sat, 25 Jun 2005 22:34:50 +1000
matt hope <[EMAIL PROTECTED]> wrote:
> ["Dr. Andreas Kr?ger" <[EMAIL PROTECTED]> - 14:58PM Tuesday Oct 5]:
>
> > In case it matters: When reporting the bug, I had manually re-adjusted
> > Sympa's $HOME to /home/sympa. Upgrading from version 3.4.4.3-6 to version
> > 4.1.2-1 today again moved it back to /var/lib/sympa, again removing the
> > mailing list functionality for me.
> >
> >
> > # diff -u0 /backup/etc/passwd /etc/passwd
> > --- /backup/etc/passwd 2004-09-27 11:51:35.000000000 +0200
> > +++ /etc/passwd 2004-10-05 13:10:09.000000000 +0200
> > @@ -37 +37 @@
> > -sympa:x:104:1012:Sympa mailing list manager:/home/sympa:/bin/bash
> > +sympa:x:104:1012:Sympa mailing list manager:/var/lib/sympa:/bin/false
>
> From sympa-4.1.5/debian/postinst ...
>
> > # creating sympa user if he isn't already there
> > if ! grep -q ^sympa: /etc/passwd; then
> > echo Adding system user: sympa.
> > adduser --system --ingroup sympa --home /var/spool/sympa sympa
> > fi
> >
> > usermod -c "Sympa mailing list manager" sympa
> > usermod -d "/var/lib/sympa" sympa
> > usermod -g "sympa" sympa
> > usermod -s "/bin/false" sympa
>
> This sill change the comment/homedir/shell of the 'sympa' user every
> time the package is upgraded. I believe it may be best to at least put
> the group (-g), comment (-c) and shell (-s) usermod lines inside the
> "grep /etc/passwd" check. This way, local admin changes will be
> preseved.
You are right. This is old, ugly code and now replaced by a much shorter
and better implementation.
Bye
Racke
--
LinuXia Systems => http://www.linuxia.de/
Expert Interchange Consulting and System Administration
ICDEVGROUP => http://www.icdevgroup.org/
Interchange Development Team
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]