
melodie wrote:Why are thoses messages telling that the file system permissions are not right ?
First of all, it is not really "wrong permissions" but altered permissions that are considered potentially "insecure" by msec. The permission settings of root are different to those of msec and once you log in as root, certain permissions of files will be changed. Root has the right to read and write every file (except immutable files) while msec wants to set certain files to read-only status for security reasons. Thus, all files with 644 permission that basically should not have a 644 permission will be restored to the system-default 640 setting of msec.
the file is created in the $HOME of the user trying to send the mail. So using / is OK as that's the home directory of daemons.

don_crissti wrote:First of all, it is not really "wrong permissions" but altered permissions that are considered potentially "insecure" by msec. The permission settings of root are different to those of msec and once you log in as root, certain permissions of files will be changed.
Root has the right to read and write every file (except immutable files) while msec wants to set certain files to read-only status for security reasons. Thus, all files with 644 permission that basically should not have a 644 permission will be restored to the system-default 640 setting of msec.
As to your first question:
You have sendmail already installed, right ? Make sure it is configured to start at boot...
A dead.letter is created by the mailing system when it cannot deliver its mail messages. I don't get that dead.letter here...
(I have similar messages in /var/log/msec.log which is normal...) but Gotz Waschk from Mandriva says thatthe file is created in the $HOME of the user trying to send the mail. So using / is OK as that's the home directory of daemons.
Please have a look here for more info on msec:
http://wiki.mandriva.com/en/Msec

$ which sendmail
which: no sendmail in (/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin:/usr/games:/usr/lib/qt4/bin:/usr/lib/cnfbin:/usr/lib/cnfbin:/home/guest/bin:/usr/lib/cnfbin)

else : don't the logs become too big or too numerous ? Is there a regulation of them ? (a limit to their number and or size ?)
rpm -q --queryformat='%{DESCRIPTION}\n' logrotate
don_crissti wrote:else : don't the logs become too big or too numerous ? Is there a regulation of them ? (a limit to their number and or size ?)
- Code: Select all
rpm -q --queryformat='%{DESCRIPTION}\n' logrotate
more details in /etc/cron.daily/logrotate and /etc/logrotate.conf...
You have new mail in /var/spool/mail/root
[root@localhost ~]# cat /var/spool/mail/root
From root@localhost Wed Jul 1 13:58:53 2009
Return-Path: <root@localhost>
Received: from localhost (localhost [127.0.0.1])
by localhost (8.14.3/8.14.3) with ESMTP id n61BwrPo005081
for <root@localhost>; Wed, 1 Jul 2009 13:58:53 +0200
Received: (from root@localhost)
by localhost (8.14.3/8.14.3/Submit) id n61BwrCH004134
for root; Wed, 1 Jul 2009 13:58:53 +0200
From: root <root@localhost>
Message-Id: <200907011158.n61BwrCH004134@localhost>
Date: Wed, 01 Jul 2009 13:57:52 +0200
To: root@localhost
Subject: [msec] *** Diff Check on localhost, mer jui 1 13:57:52 CEST 2009 ***
User-Agent: nail 11.25 7/29/05
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Security Warning: Change in Suid Root files found :
- Newly added suid root file : /usr/bin/procmail
Security Warning: Changes in Sgid files found :
- Newly added sgid file : /usr/bin/lockfile
- Newly added sgid file : /usr/bin/procmail
- Newly added sgid file : /usr/sbin/sendmail.sendmail
Security Warning: Change in World Writable Files found :
- No longer present writable file : /usr/share/doc/gtkdialog-0.7.20/examples
- No longer present writable file : /usr/share/doc/libapr_memcache0-0.7.0/test
- No longer present writable file : /usr/share/doc/mpg123-1.7.3/examples
Security Warning: the md5 checksum for one of your SUID files has changed,
maybe an intruder modified one of these suid binary in order to put in a backdoor...
- Checksum changed file : /usr/bin/chage
- Checksum changed file : /usr/bin/expiry
- Checksum changed file : /usr/bin/gpasswd
- Checksum changed file : /usr/bin/newgrp
Security Warning: There are modifications for port listening on your machine :
- Opened ports : tcp 0 0 *:submission *:* LISTEN 3593/sendmail: acce
- Opened ports : tcp 0 0 *:smtp *:* LISTEN 3593/sendmail: acce
- Opened ports : udp 0 0 *:bootpc *:* 2797/dhclient
- Opened ports : udp 0 0 192.168.0.66:ntp *:* 3154/ntpd
- Opened ports : udp 0 0 localhost:ntp *:* 3154/ntpd
- Opened ports : udp 0 0 *:ntp *:* 3154/ntpd
- Opened ports : udp 0 0 ::1:ntp *:* 3154/ntpd
- Opened ports : udp 0 0 fe80::218:f3ff:fe0c:f27:ntp *:* 3154/ntpd
- Opened ports : udp 0 0 *:ntp *:* 3154/ntpd
- Closed ports : udp 0 0 *:32769 *:* 5288/avahi-daemon:
- Closed ports : udp 0 0 *:bootpc *:* 5025/dhclient
- Closed ports : udp 0 0 *:5353 *:* 5288/avahi-daemon:
- Closed ports : udp 0 0 192.168.0.66:ntp *:* 5442/ntpd
- Closed ports : udp 0 0 localhost:ntp *:* 5442/ntpd
- Closed ports : udp 0 0 *:ntp *:* 5442/ntpd
- Closed ports : udp 0 0 *:ntp *:* 5442/ntpd
From root@localhost Wed Jul 1 13:58:55 2009
Return-Path: <root@localhost>
Received: from localhost (localhost [127.0.0.1])
by localhost (8.14.3/8.14.3) with ESMTP id n61BwttB005084
for <root@localhost>; Wed, 1 Jul 2009 13:58:55 +0200
Received: (from root@localhost)
by localhost (8.14.3/8.14.3/Submit) id n61Bwsbm005043
for root; Wed, 1 Jul 2009 13:58:54 +0200
From: root <root@localhost>
Message-Id: <200907011158.n61Bwsbm005043@localhost>
Date: Wed, 01 Jul 2009 13:57:54 +0200
To: root@localhost
Subject: [msec] *** Security Check on localhost, mer jui 1 13:57:54 CEST
2009 ***
User-Agent: nail 11.25 7/29/05
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
Security Warning: World Writable files found :
- /tmp/.font-unix
- /tmp/.ICE-unix
- /tmp/.X11-unix
Security Warning: these home directory should not be owned by someone else or writable :
user=gdm(79) : home directory is group writable.
user=gdm(79) : home directory is group writable.
Permissions changes on system files:
Permissions incorrectes pour /var/log/cron/info : devraient �tre 640
Permissions incorrectes pour /etc/rc.d/init.d/netfs : devraient �tre 744
Permissions incorrectes pour /etc/rc.d/init.d/cdemud : devraient �tre 744
Permissions incorrectes pour /var/spool/mail : devraient �tre 2775
Permissions incorrectes pour /var/log/samba/cores/nmbd : devraient �tre 640
Permissions incorrectes pour /etc/rc.d/init.d/fuse : devraient �tre 744
Permissions incorrectes pour /etc/rc.d/init.d/acpid : devraient �tre 744
Permissions incorrectes pour /var/log/samba/cores : devraient �tre 755
Permissions incorrectes pour /etc/profile.d/10tmpdir.sh : devraient �tre 755
Permissions incorrectes pour /etc/profile.d/gvfs-bash-completion.sh : devraient �tre 755
Permissions incorrectes pour /etc/rc.d/init.d/network-up : devraient �tre 744
Permissions incorrectes pour /var/log/cron/errors : devraient �tre 640
Permissions incorrectes pour /etc/rc.d/init.d/partmon : devraient �tre 744
Permissions incorrectes pour /var/log/lpr/info : devraient �tre 640
Permissions incorrectes pour /etc/rc.d/init.d/harddrake : devraient �tre 744
Permissions incorrectes pour /var/log/daemons/info : devraient �tre 640
Permissions incorrectes pour /etc/rc.d/init.d/ntpd : devraient �tre 744
Permissions incorrectes pour /etc/rc.d/init.d/haldaemon : devraient �tre 744
Permissions incorrectes pour /var/log/daemons/errors : devraient �tre 640
Permissions incorrectes pour /etc/profile.d/20less.sh : devraient �tre 755
Permissions incorrectes pour /var/log/mail/errors : devraient �tre 640
Permissions incorrectes pour /etc/rc.d/init.d/sshd : devraient �tre 744
Permissions incorrectes pour /etc/profile.d/90ssh-askpass.csh : devraient �tre 755
Permissions incorrectes pour /etc/profile.d/10lang.csh : devraient �tre 755
Permissions incorrectes pour /var/log/gdm/:0.log.2 : devraient �tre 640
Permissions incorrectes pour /var/log/lpr/errors : devraient �tre 640
Permissions incorrectes pour /etc/profile.d/90ssh-client.sh : devraient �tre 755
Permissions incorrectes pour /etc/rc.d/init.d/cpufreq : devraient �tre 744
Permissions incorrectes pour /etc/rc.d/init.d/xfs : devraient �tre 744
Permissions incorrectes pour /etc/profile.d/10tmpdir.csh : devraient �tre 755
Groupe incorrect pour /�: devrait �tre adm
Permissions incorrectes pour /var/log/samba/cores/smbd : devraient �tre 640
Permissions incorrectes pour /etc/rc.d/init.d/kheader : devraient �tre 744
Permissions incorrectes pour /etc/profile.d/10inputrc.sh : devraient �tre 755
Permissions incorrectes pour /var/log/cups/error_log : devraient �tre 640
Permissions incorrectes pour /etc/rc.d/init.d/mandrake_everytime : devraient �tre 744
Permissions incorrectes pour /etc/profile.d/10inputrc.csh : devraient �tre 755
Permissions incorrectes pour /var/log/ConsoleKit/history : devraient �tre 640
Permissions incorrectes pour /var/log/news/news.err : devraient �tre 640
Permissions incorrectes pour /etc/rc.d/init.d/powernowd : devraient �tre 744
Permissions incorrectes pour /etc/rc.d/init.d/messagebus : devraient �tre 744
Permissions incorrectes pour /var/log/gdm/:0.log.1 : devraient �tre 640
Permissions incorrectes pour /etc/ssh/sshd_config : devraient �tre 644
Permissions incorrectes pour /var/log/gdm/:0.log.3 : devraient �tre 640
Permissions incorrectes pour /var/log/gdm/:0.log.4 : devraient �tre 640
Permissions incorrectes pour /etc/rc.d/init.d/oki4daemon : devraient �tre 744
Permissions incorrectes pour /var/log/news/news.crit : devraient �tre 640
Permissions incorrectes pour /var/log/cups/access_log : devraient �tre 640
Permissions incorrectes pour /etc/rc.d/init.d/functions : devraient �tre 644
Permissions incorrectes pour /root : devraient �tre 700
Permissions incorrectes pour /etc/profile.d/10lang.sh : devraient �tre 755
Permissions incorrectes pour /etc/rc.d/init.d/ip6tables : devraient �tre 744
Permissions incorrectes pour /etc/rc.d/init.d/network : devraient �tre 744
Permissions incorrectes pour /var/log/mail/warnings : devraient �tre 640
Permissions incorrectes pour /etc/profile.d/20less.csh : devraient �tre 755
Permissions incorrectes pour /etc/rc.d/init.d/mandrake_firstime : devraient �tre 744
Permissions incorrectes pour /etc/rc.d/init.d/udev-post : devraient �tre 744
Permissions incorrectes pour /etc/rc.d/init.d/netconsole : devraient �tre 744
Permissions incorrectes pour /etc/rc.d/init.d/mandi : devraient �tre 744
Permissions incorrectes pour /var/log/cron/warnings : devraient �tre 640
Permissions incorrectes pour /var/log/lpr/warnings : devraient �tre 640
Permissions incorrectes pour /var/log/mail/info : devraient �tre 640
Permissions incorrectes pour /var/log/ppp/connect-errors : devraient �tre 640
Permissions incorrectes pour /etc/rc.d/init.d/single : devraient �tre 744
Permissions incorrectes pour /var/log/kernel/info : devraient �tre 640
Permissions incorrectes pour /etc/rc.d/init.d/halt : devraient �tre 744
Permissions incorrectes pour /var/log/kernel/warnings : devraient �tre 640
Permissions incorrectes pour /usr/sbin/sendmail.sendmail : devraient �tre 2755
Permissions incorrectes pour /etc/rc.d/init.d/killall : devraient �tre 744
Permissions incorrectes pour /etc/rc.d/init.d/anacron : devraient �tre 744
Permissions incorrectes pour /etc/rc.d/init.d/sendmail : devraient �tre 744
Permissions incorrectes pour /etc/rc.d/init.d/msec : devraient �tre 744
Permissions incorrectes pour /var/log/gdm/:0.log : devraient �tre 640
Permissions incorrectes pour /etc/rc.d/init.d/iptables : devraient �tre 744
Permissions incorrectes pour /var/log/news/news.notice : devraient �tre 640
Permissions incorrectes pour /var/log/gdm/:20.log : devraient �tre 640
Permissions incorrectes pour /etc/rc.d/init.d/dm : devraient �tre 744
Permissions incorrectes pour /dev : devraient �tre 755
Permissions incorrectes pour /var/log/kernel/errors : devraient �tre 640
Permissions incorrectes pour /etc/profile.d/90ssh-askpass.sh : devraient �tre 755
Permissions incorrectes pour /var/log/daemons/warnings : devraient �tre 640
These are the ports listening on your machine :
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 *:submission *:* LISTEN 3593/sendmail: acce
tcp 0 0 *:smtp *:* LISTEN 3593/sendmail: acce
udp 0 0 *:bootpc *:* 2797/dhclient
udp 0 0 192.168.0.66:ntp *:* 3154/ntpd
udp 0 0 localhost:ntp *:* 3154/ntpd
udp 0 0 *:ntp *:* 3154/ntpd
udp 0 0 ::1:ntp *:* 3154/ntpd
udp 0 0 fe80::218:f3ff:fe0c:f27:ntp *:* 3154/ntpd
udp 0 0 *:ntp *:* 3154/ntpd
From root@localhost Wed Jul 1 13:58:55 2009
Return-Path: <root@localhost>
Received: from localhost (localhost [127.0.0.1])
by localhost (8.14.3/8.14.3) with ESMTP id n61BwtWK005087
for <root@localhost>; Wed, 1 Jul 2009 13:58:55 +0200
Received: (from root@localhost)
by localhost (8.14.3/8.14.3/Submit) id n61Bwthx005059
for root; Wed, 1 Jul 2009 13:58:55 +0200
Date: Wed, 1 Jul 2009 13:58:55 +0200
Message-Id: <200907011158.n61Bwthx005059@localhost>
From: root@localhost (Anacron)
To: root@localhost
Subject: Anacron job 'cron.daily'
error: lstat() of directory /var/catman/X11R6/cat? failed: No such file or directory
run-parts: /etc/cron.daily/tmpwatch exited with return code 1* Permissions incorrectes pour /var/log/cron/info : devraient �tre 640means "incorrect permissions for () : should be ()
melodie wrote:I don't understand how to use this command line of your's, if it's meant to be used as is, or what.
Logrotate is designed to ease administration of systems that generate
large numbers of log files. It allows automatic rotation, compression,
removal, and mailing of log files. Each log file may be handled daily,
weekly, monthly, or when it grows too large.melodie wrote:don't the logs become too big or too numerous ? Is there a regulation of them ?
melodie wrote:But now it's a message to root, and I don't like it either, because I think an end user distribution should not occur headaches like that to people with few or no knowledge, particularly when security is involved.
If you run a command in cron and do not redirect stdout and stderr, they will be mailed to whoever runs cron.
The system sends you a warning note about something that looks odd or illegal from the point of view of the system logic.
melodie wrote:could you developers do something so that permissions are fixed the right way on all the files once and for all ?

Logrotate is designed to ease administration of systems that generate
large numbers of log files. It allows automatic rotation, compression,
removal, and mailing of log files. Each log file may be handled daily,
weekly, monthly, or when it grows too large.

melodie wrote:By the way, is there anything you could do or advise doing, to prevent log files from taking all the place in the system, as time goes ? And what about that root mail ? That really annoys me, because I don't really know what to do with the explanation you gave me the other day, except that now it's at it's right place in /var/spool/mail or so, and no more as a dead.letter
Logrotate is designed to ease administration of systems that generate large numbers of log files. It allows automatic rotation, compression, removal, and mailing of log files.
A "default" installation with automatic partitioning will write the logs in /var/log/ which is part of /. Under some circumstances, logfiles have the potential to take up a lot of storage space thus filling / to maximum capacity which is not good at all. Logrotate helps prevent against this situation from happening but it's not a 100% guarantee. In the real world you could create a separate partition for /var thus isolating it from / and potentially running / out of available disk space.
melodie wrote:The mail to root saying permissions are not good, or are good, or whatever according to one system part point of view or the other, and theses warnings about what listen to what ports... isn't that just annoyance ?
/Edit : I just de-selected the envoice of mail to root or on the desktop, in the security area in Control Center. I may change it back later, with more informations about this feature.

no longer contribute/develop for PCLinuxOS. Nevertheless, this is what I think:
Yes, some of those files have wrong permissions to start with and it's because those permissions are set in the spec file of the parent package (in the %files section). Correcting the permissions in the spec file would be the best thing to do and would certainly decrease the number of warnings. However, this matter should be addressed by those who are very familiar with the right permissions of certain files. I'm not one of them...


[root@localhost log]# ls -l /var/log/cron/info
-rw------- 1 root root 901 Jul 19 11:01 /var/log/cron/info
[root@localhost log]# ls -l /etc/rc.d/init.d/netfs
-rwxr--r-- 1 root root 6426 Oct 9 2008 /etc/rc.d/init.d/netfs*
[root@localhost log]# ls -l /etc/rc.d/init.d/dkms
-rwxr--r-- 1 root root 5628 Jun 25 2007 /etc/rc.d/init.d/dkms*
[root@localhost log]# ls -l /var/spool/mail
total 0
[root@localhost log]# ls -l /var/log/explanations
-rw-r----- 1 root adm 1630 Jul 19 10:25 /var/log/explanations
[root@localhost log]# ls -l /usr/sbin/sendmail.sendmail
ls: /usr/sbin/sendmail.sendmail: No such file or directory
[root@localhost log]# ls -l /etc/rc.d/init.d/msec
-rwxr-xr-x 1 root root 1607 Apr 25 23:48 /etc/rc.d/init.d/msec*
[root@localhost log]# ls -l /var/log/Xorg.0.log
-rw-r--r-- 1 root root 21619 Jul 19 10:25 /var/log/Xorg.0.log
[root@localhost log]# net
net net_applet net_monitor netcat netprofile netreport netscsid netstat
[root@localhost log]# nets
netscsid netstat
[root@localhost log]# netstat -tupan | grep LISTEN
[root@localhost log]# netstat -tupan
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 192.168.0.64:37942 91.121.101.160:80 ESTABLISHED 4093/mplayer
udp 0 0 0.0.0.0:50448 0.0.0.0:* 2873/avahi-daemon:
udp 0 0 0.0.0.0:68 0.0.0.0:* 2908/dhclient
udp 0 0 0.0.0.0:5353 0.0.0.0:* 2873/avahi-daemon:
[root@localhost log]#

# cat /var/spool/mail/root
From root@localhost Tue Jul 21 11:17:23 2009
Return-Path: <root@localhost>
Received: from localhost (localhost [127.0.0.1])
by localhost (8.14.3/8.14.3) with ESMTP id n6L9HNq7005248
for <root@localhost>; Tue, 21 Jul 2009 11:17:23 +0200
Received: (from root@localhost)
by localhost (8.14.3/8.14.3/Submit) id n6L9HNk2005186
for root; Tue, 21 Jul 2009 11:17:23 +0200
Date: Tue, 21 Jul 2009 11:17:23 +0200
Message-Id: <200907210917.n6L9HNk2005186@localhost>
From: root@localhost (Anacron)
To: root@localhost
Subject: Anacron job 'cron.daily'
Status: RO
error: lstat() of directory /var/catman/X11R6/cat? failed: No such file or directory
run-parts: /etc/cron.daily/tmpwatch exited with return code 1

I still don't know if posting about this subject at the main forum would have any interest for the development of the Gnome version.
Thanks to tell me about that ?
After the first reboot of PClos KDE

don_crissti wrote:After the first reboot of PClos KDE
You're trying it after the first boot ? Come on melodie... Use the damn thing for at least two weeks and then check your logs... Only then jump to conclusions.
PCLinuxOS-2009-Gnome-fr-16-Juil.iso
PCLinuxOS-2009-Gnome-fr-16-Juil.iso.md5.txt
README-PCLOS-Gnome-fr-16-Juil
...
pclinuxos2009-27-Juin-fr_FR.iso
pclinuxos2009-27-Juin-fr_FR.iso.md5.txt
FYI, here is someone who has the same problem on PCLOS KDE, check their forum:
http://www.pclinuxos.com/index.php?option=com_smf&Itemid=26&topic=60072.0

Users browsing this forum: No registered users and 6 guests