Normally, I create system user without home directory and login shell as following
I am considering to assign a home directory to the above system user, since it is not a general user, any suggestion from a system admin view?
PS. it's another story why I want to assign a home directory to the PHP user. Because I am experiencing "connection-timeout" while connecting Paypal production server occasionally. I am trying to fix it, and thinking maybe the PHP system user lacks a home directory to store the SSL certificate which causes slow connection.
Code:
#pw useradd phpwww -g phpwww -d /nonexistent -s /usr/sbin/nologin -c "php user for www use"
I am considering to assign a home directory to the above system user, since it is not a general user, any suggestion from a system admin view?
PS. it's another story why I want to assign a home directory to the PHP user. Because I am experiencing "connection-timeout" while connecting Paypal production server occasionally. I am trying to fix it, and thinking maybe the PHP system user lacks a home directory to store the SSL certificate which causes slow connection.