floating homedir of http user

Elan Ruusamäe glen at pld-linux.org
Mon Dec 27 14:37:36 CET 2010


i think we should change the homedir to something fixed,
so that changing webserver (or installing packages with wrong combination)
wouldn't cause inexistent homedir of system user.

for example cronie fails to start jobs if the homedir does not exist:
Dec 24 01:45:01 tvprogram /USR/SBIN/CROND[21923]: (CRON) ERROR chdir 
failed (/home/services/httpd): No such file or directory

/usr/share/empty as default, and let sysadmin change it on demand
(for cases if wanting to create ~/.ssh/id_dsa file)

glen at builder-ac packages/all-specs $ grep -r '%useradd.*http$' .
./apache1.spec:%useradd -u 51 -r -d %{httpdir} -s /bin/false -c "HTTP 
User" -g http http
./apache1.spec:%useradd -u 51 -r -d %{httpdir} -s /bin/false -c "HTTP 
User" -g http http
./apache.spec:%useradd -u 51 -r -d /home/services/httpd -s /bin/false -c 
"HTTP User" -g http http
./mathopd.spec:%useradd -u 51 -r -d %{_datadir} -s /bin/false -c "HTTP 
User" -g http http
./php-fcgi-init.spec:%useradd -u 51 -r -s /bin/false -c "HTTP User" -g 
http http
./php.spec:%useradd -u 51 -r -s /bin/false -c "HTTP User" -g http http
./resin.spec:%useradd -u 51 -r -d /home/services/httpd -s /bin/false -c 
"HTTP User" -g http http
./boa.spec:%useradd -u 51 -r -d /usr/share/empty -s /bin/false -c "HTTP 
User" -g http http
./thttpd.spec:%useradd -u 117 -r -d /home/services/%{name} -s /bin/false 
-c "tHTTP User" -g thttp thttp
./wn.spec:%useradd -u 51 -r -d /home/services/httpd -s /bin/false -c 
"HTTP User" -g http http

-- 
glen



More information about the pld-devel-en mailing list