openlitespeed
openlitespeed copied to clipboard
File ownership in /tmp/lshttpd/ is wrong after changing user/group
I installed OpenLiteSpeed, changed run user and group to lsws
(which I created first) and did a reinstall, user and group ownership seems to be applied correctly to files in $SERVER_ROOT
. But not so to files in /tmp/lshttpd/
.
The server's error log showed me:
Failed to open the real time report: /tmp/lshttpd/.rtreport!
The content of /tmp/lshttpd/
looks like:
drwxr-xr-x 3 lsws lsws 10 Jun 11 01:32 ./
drwxrwxrwt 14 root root 40 Jun 11 01:32 ../
-rw-r--r-- 1 root root 7 Jun 11 01:32 lshttpd.pid
srwxr-xr-x 1 lsws lsws 0 Jun 11 01:32 lsphp.sock=
srwxr-xr-x 1 lsws lsws 0 Jun 11 01:32 lsphp.sock.100000=
-rw-r--r-- 1 lsws lsws 32 Jun 11 01:32 lsphp.sock.100000.pid
-rw-r--r-- 1 lsws lsws 32 Jun 11 01:32 lsphp.sock.pid
-rw-r--r-- 1 nobody nogroup 910 Jun 10 00:53 .rtreport
-rw-r--r-- 1 root nogroup 233 Jun 11 01:32 .status
drwx------ 2 lsws lsws 2 Jun 11 01:32 swap/
There are still files with the old owner nobody/nogroup.
I think: Either the ownership of the files should be changed correctly or the folder should be completely emptied during the reinstall.