On 2/8/2010 11:13 PM, Ola Lundqvist wrote: >> drwxr-xr-x 2 ntop root 4096 2010-01-27 11:18 . >> drwxr-xr-x 12 root root 4096 2010-01-27 11:17 .. >> -rw-rw-rw- 1 root root 0 2010-01-27 11:18 access.log > > Not good. However I do not think postinst is good enough. We must change > the umask instead so that it is created correctly.
But umask would just change permissions like chmod. Even when others could no longer read/write to the file due to changes to the umask, the ntop user also wouldn't be able to anymore. More can't be accomplished by playing with the umask. > I'll see if I can find the place where the file is created so we can > have proper permissions at that time. AFAICS the file is created by ntop at runtime if it is not there before. It is thus given the permissions by the operating system. Therefore I had "tuned" the directory permissions. JM PS. Maybe it works fine at a second glance because logrotate correctly uses "create 640 ntop adm", however the initial install is not fine. -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org