At 12:50 PM 5/23/02, you wrote:
>David, > >Now this is a bit strange. I have the same values set in my >"/etc/sysconfig/msec" file as you have in your file, and I am running the >same cron jobs as you. So far, so good, but the files created in >"/var/log/security" are all being created with 640 perms on my system. As >a matter of fact, with a UMASK of 022, you would expect 640 perms on these >files. Now, what gives, and why are your files created with 644 perms? It >sounds as though your system is a hybrid mixture of both level 1 and level >3. I guess we should wonder what others are finding on their system. I >would hope they do so before blindly installing your script. Craig, Very strange... Here's a quick test of umask values 022 and 026. For each, I remove the test output file, i.e. /tmp/test, execute "date >test" to create the test output file, then run "ls -l" to see its permissions: [root@osage tmp]# umask 022 ; rm -f test ; date > test ; ls -l test -rw-r--r-- 1 root root 29 May 23 13:44 test [root@osage tmp]# umask 026 ; rm -f test ; date > test ; ls -l test -rw-r----- 1 root root 29 May 23 13:44 test As can be seen, the 022 mask gives -rw-r--r--, i.e. -rw-rw-rw (666) with -----w--w (022) masked off. The 026 mask gives -rw-r-----, i.e. 666 - 026, i.e. 640. What's in your /etc/sysconfig/msec file, and what result do you get from the two "umask/rm/date/ls" command sequences??? David
Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
