Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#10878 - avahi-autoipd doesn't work

Attached to Project: Arch Linux
Opened by Björn Martensen (baze) - Thursday, 10 July 2008, 13:31 GMT
Last edited by Douglas Soares de Andrade (dsa) - Saturday, 22 November 2008, 21:10 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Douglas Soares de Andrade (dsa)
Architecture All
Severity Medium
Priority Normal
Reported Version 2007.08-2
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 3
Private No

Details

avahi-autoipd, which is used by networkmanager 0.7 now to get an automatically assigned ip address, doesn't work in arch, because the user "avahi-autoipd" isn't generated by the avahi.install file.

when i try to run avahi-autoipd manually, i get this error:

$ sudo avahi-autoipd eth0
Failed to find user 'avahi-autoipd'.

this is what the networkmanager dev told me:

avahi-autoipd usually tries to use it's own
user and drop privileges after launch. Fedora avahi-autoipd package
does:

/usr/sbin/groupadd -f -r avahi-autoipd
/usr/bin/id avahi-autoipd >/dev/null 2>&1 || \
/usr/sbin/useradd -r -g avahi-autoipd -c 'avahi-autoipd' -s /sbin/nologin -d %{_localstatedir}/lib/avahi-autoipd avahi-autoipd
This task depends upon

Closed by  Douglas Soares de Andrade (dsa)
Saturday, 22 November 2008, 21:10 GMT
Reason for closing:  Fixed
Additional comments about closing:  Hi,

I rebuilt avahi to make avahi-autoipd use the user avahi created in the instalation, so you should not have any issues now.

Thanks.
Comment by Glenn Matthys (RedShift) - Friday, 18 July 2008, 15:32 GMT
Create the user yourself.
Comment by Björn Martensen (baze) - Friday, 05 September 2008, 19:50 GMT
well, i can do that of course and it works, but if another application needs this, why should everybody be forced to create the user itself, when avahi already creates another user, so this is nothing uncommon in arch packages. hal, dbus, they all create users because applications depend on it to work correctly. you could just stop doing that for all the packages that create users and tell everybody they are too lazy to create the users themselves if their stuff doesn't work as it is supposed to, but honestly, i don't think that's the right way here...
Comment by Erwin Van de Velde (evdvelde) - Saturday, 22 November 2008, 17:22 GMT
In order to ensure that system users do not get the same UID accidently, it is best to create the user upon installation instead of depending on the user to do it. The 'lazy user' argument is ridiculous anyway, a package manager is there to make it easier to install software and installation ends with the user being able to use the program without problems, not with the user having to execute several commands themselves before being able to launch the program. You do not ask the user to copy the files in the right place, do you? This is on the same level for me.
Comment by Glenn Matthys (RedShift) - Saturday, 22 November 2008, 18:06 GMT
Yes, the package manager is there for making it easier to _install_ software, not configure software! The point of this distribution is not the out-of-the-box experience. There are enough distros for that (hint hint, pokémon).
Comment by Erwin Van de Velde (evdvelde) - Saturday, 22 November 2008, 18:38 GMT
All other system users (e.g. avahi, postfix, mail, ftp, ...) are created by package installation, but avahi-autopd not. If it is part of the installation for all other system users, even avahi(!), why not for avahi-autoipd? I do not need an out-of-the-box experience, but you do not have to complicate things just because you can...
Comment by Douglas Soares de Andrade (dsa) - Saturday, 22 November 2008, 20:27 GMT
Hi Erwin,

We will create the user, as avahi itself creates other user.

Sorry for did not see this thread before.

Loading...