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!
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!
FS#2877 - lighttpd user added too high a number
Attached to Project:
Arch Linux
Opened by eliott (cactus) - Saturday, 25 June 2005, 21:41 GMT
Last edited by Dale Blount (dale) - Sunday, 26 June 2005, 00:31 GMT
Opened by eliott (cactus) - Saturday, 25 June 2005, 21:41 GMT
Last edited by Dale Blount (dale) - Sunday, 26 June 2005, 00:31 GMT
|
DetailsDue to the post install of lighttpd package, a user and group are created.
The uid and gid specified in the install script are 5200 and 5200, respectively. This causes any additional users/groups on the system to be created with uids and gids of 5201 and up from there. I recommend finding a uid/gid combination that is below the 100 mark, so as to not interfere with normal uid/gid progression. This bug is not really a critical problem, but it is certainly an annoyance. |
This task depends upon
Closed by Tobias Kieslich (tobias)
Sunday, 21 August 2005, 21:54 GMT
Reason for closing: Fixed
Additional comments about closing: set back from 5200 to nobody(99) as a generic which can be custoumized by the user
Sunday, 21 August 2005, 21:54 GMT
Reason for closing: Fixed
Additional comments about closing: set back from 5200 to nobody(99) as a generic which can be custoumized by the user
For the time being, I default lighty to nobody:nobody, which at least matches the apache configs and get us rid of the 5200+ issue.
Thoughts, comments ...?
I dont generally like having daemons share a user, unless there is a need (like a mail daemon and a mail scanner or something).
So the queestion comes up, what would the lighttpd user be for anyway, when files that are uploaded by diffrent users via ftp/sftp have other uids? The main usage is a groupwise ownership for the cgi-created files so that the user and the daemon both can edit them.
From my side I think to have a www user and especially a group in general would be a good thing.
The main usage is not groupwise ownership, it is security, and mitigation of privilege escalation. If the lighttpd process is somehow compromised, it does much less damage to the system if it is running as its own user.
I just hope that removing one (apache or lighttpd) will not cause problems (ie. if I remove lighttpd or apache will it the nobody user?).
I for one, will never have apache and lighttp sharing a user. Bummer that this is now the default config.
ye gads.
All the user settings have bin ripped out of PKGBUILD and stuffed into post_install. post_install reads the user/group values from lighttpd.conf and sets the directories rights accordingly. The problem with that is, if people who tweak lighttpd.conf don't set this file on NoUpgrade in pacman.conf post_install reads the values from the freshly installed lighttpd.con and not from the .pacsav file.
Sounds messy. I would prefer a more simplistic approach.
But, it might well work out wonderfully. I will give it a roll and see how it plays out before I bemoan it. :)
ps. Thanks for your work on the package. It is nice to have someone on the other end who is willing to listen to me griping. thanks :P
I have noupgrade set on my config files, so the potential for alteration is considerably lower on my setup anyway. The log file permissions seem to be ok...
lighttpd 1.4 is coming out soon, so I will probably just start packaging it myself again. I have a few squirrely config things that I have been trying lately (which will probably result in me packaging php too). But, the lighttpd package should be good enough for most users out there.
thanks for the good work. :)