Hello Sanket,
in Linux I know that it is possible to create a user without creating a home directory. This seems not possible in AIX.
But, I don't know anything about the httpd installation process in Lunix...
------------------------------
Joerg Kauke
Unix Administrator
COOP Switzerland
------------------------------
Original Message:
Sent: Mon January 24, 2022 04:42 AM
From: SANKET RATHI
Subject: problems with new installations of httpd
Hi Joerg,
This may be difficult as we will have to change what package provide and we try to stick to what open source packages does.
Meanwhile how this works on Linux environment, do you know ?
------------------------------
SANKET RATHI
Original Message:
Sent: Fri January 21, 2022 06:15 AM
From: Joerg Kauke
Subject: problems with new installations of httpd
Dear team,
I am having problems with the httpd daemon, because the "apache" user can not be created.
The installation script has following to check if the user apache is available and if not create it:
# add the "apache" user only if it does not yet exist
result=`/usr/sbin/lsuser apache | /usr/bin/awk '{ print $1 }' 2>/dev/null`
if [[ "${result}" != "apache" ]] ; then
/usr/bin/mkuser id=64500 pgrp='apache' gecos='Apache User' \
login='false' rlogin='false' apache 2> /dev/null || :
fi
The standard for the mkuser command is to create the users home directory in /home.
Unfortunately in our environment the /home directory is a NAS device and root user has no write access, so the user could not be created.
Maybe it would be possible to add the option "home=/opt/freeware/etc/httpd" to the mkuser command in future versions to prevent this...???
Many thanks in advance for for support.
best regards,
Joerg
------------------------------
Joerg Kauke
Unix Administrator
COOP Switzerland
------------------------------
#AIXOpenSource