You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have created a virtual host and configured the logs as "Own Log File" with the path $VH_ROOT/logs/error.log of the vhost log and $VH_ROOT/logs/access.log of the access log.
OpenLiteSpeed is executed as lsws:lsws (user : group). The generated log files get the following owner and mode. Obviously the owner is set explicitly, because the group owner is also set to lsws, although the folder logs has the setgid bit set.
root@test-webserver:/vhosts/test1# touch logs/test-touched-by-root
root@test-webserver:/vhosts/test1# ls -al logs/
total 27
drwxr-s--- 2 lsws test1 5 Jun 12 17:39 ./
drwxr-x--- 5 root test1 6 Jun 11 23:49 ../
-rw-r--r-- 1 lsws lsws 177087 Jun 12 17:43 access.log
-rw-r--r-- 1 lsws lsws 0 Jun 11 01:24 error.log
-rw-r--r-- 1 root test1 0 Jun 12 17:39 test-touched-by-root
Is it possible to define a umask for the log files?
My wish of the owner and the mode for the log files is:
for the owner: the group owner should not be set explicitly, so that the group owner is automatically taken over by the setgid bit of the folder. By the owning user lsws OpenLiteSpeed still has full read and write permissions.
for the mode: So that not for others read rights exist, the umask should be able to be set.
I have created a virtual host and configured the logs as "Own Log File" with the path
$VH_ROOT/logs/error.log
of the vhost log and$VH_ROOT/logs/access.log
of the access log.OpenLiteSpeed is executed as
lsws:lsws
(user : group). The generated log files get the following owner and mode. Obviously the owner is set explicitly, because the group owner is also set tolsws
, although the folderlogs
has the setgid bit set.Is it possible to define a umask for the log files?
My wish of the owner and the mode for the log files is:
lsws
OpenLiteSpeed still has full read and write permissions.Are there ways to configure this?
The text was updated successfully, but these errors were encountered: