Page 1 of 1

Lots of errors in MSEC logs

PostPosted: Jan 20th, '12, 18:50
by zugunder
Hi,

I took a look at the log file of the weekly MSEC check and there are a lot of errors. I guess, some of them are not important, but the issues with bootloader and wrong file names and attributes may cause some problems...
Could I ask anyone to take a look at the log file?

Thank you.

P.S. I should have been more specific I guess...
So here are the things that seem to be wrong:
bootloader ->
Error: Missing file or directory: "/boot/grub/grub.conf" (Bootloader configuration file)
bootloader: ERROR
The thing is that I do not have grub.conf at this location (actually, I do not find it at all...).
Warning: Can't read a constant UT_NAMESIZE, header file /usr/include/bits/utmp.h not found
Error: /etc/group: Line 1: Group root has too long name.
and many others of similar kind.
I do not have a /usr/include/bits/ folder at all on my system either.
Error: Home directory of user "rpm" is world-readable.
Error: Home directory of user "rpm" is world-accessible.

Should it be like this or is it an error?
Error: Home directory of user "rpcuser" has wrong uid: 0. Expected uid is 488.
Warning: Home directory of user "rpcuser" has wrong gid: 0. Expected gid is 484.

Should I manually change the ids?
root_dirs ->
Error: There should not be a "/.config" directory under "/"
root_dirs: ERROR

filesystem ->
filesystem: FAIL

I have no idea why filesystem check fails...

Re: Lots of errors in MSEC logs

PostPosted: Jan 20th, '12, 22:00
by doktor5000
Those probably come from sectool, not from msec itself, and this is due the fact that sectool wasn't adapted to Mageia, it uses the default configuration, which is for fedora. Sectool will probably be removed for Mageia 2, you can also remove it if you want to. Take a look at https://bugs.mageia.org/show_bug.cgi?id=2808 for further information

Re: Lots of errors in MSEC logs

PostPosted: Jan 21st, '12, 00:06
by zugunder
Thank you, it seems to be clear now.
Do you suggest just to set CHECK_SECTOOL parameter in Periodic checks to Disabled or is it necessary to remove the whole sectool from the system?

Re: Lots of errors in MSEC logs

PostPosted: Jan 21st, '12, 01:13
by doktor5000
Whatever you like better :)

Re: Lots of errors in MSEC logs

PostPosted: Jan 23rd, '12, 23:20
by zugunder
BTW, what is the difference between options "no" and "Disabled" for the parameter CHECK_SECTOOL in MSEC: System security and audit > Periodic checks?

Thank you.