From: Thomas S. <tsc...@fi...> - 2002-12-18 22:48:46
|
Hi! I don't like to correct me, but: >> This is why, at least for the Debian build, I make the >> logs dir owned by root with group "nogroup" (which is >> Tomcat's group), and set the directory permissions to >> 2775 (sgid on a dir makes any file created in that dir >> take the group ownership and perms). I did the same >> for the etc dir, since the webapp also needs r/w access >> to certain xml files in that directory. Hope that helps! > > Nice workaround. xcnlm02s:/var/log # chmod 02775 opennms xcnlm02s:/var/log # cd opennms xcnlm02s:/var/log/opennms # touch x xcnlm02s:/var/log/opennms # l total 8 drwxrwsr-x 2 wwwrun root 4096 Dec 18 21:37 ./ drwxr-xr-x 10 root root 4096 Dec 18 14:17 ../ -rw-rw---- 1 wwwrun root 0 Dec 18 21:09 actiond.log [...] -rw-rw---- 1 root root 0 Dec 18 21:09 x seems not to work really reliably... -- Thomas |