[CentOS] httpd and selinux

2011-01-14 Thread Philippe Naudin
Hello, Running httpd-2.2.3-43.el5.centos.3 on CentOS release 5.5 (Final), I have : $ ps -Ze LABEL PID TTY TIME CMD user_u:system_r:httpd_t 12833 ?00:00:00 httpd Is it normal for httpd to have this context (user_u:system_r:httpd_t) ? I was expe

[CentOS] SELinux : semodule_package, magic number does not match

2011-01-17 Thread Philippe Naudin
Hello, I am trying to create a custom policy, but with no succes : $ cat < foo.te module local 1.0; require { type httpd_sys_script_exec_t; type httpd_sys_script_t; class lnk_file read; } #= httpd_sys_script_t == allow httpd_sys_script_t httpd_sys

Re: [CentOS] SELinux : semodule_package, magic number does not match

2011-01-18 Thread Philippe Naudin
Le lun 17 jan 2011 14:32:22 CET, Daniel J Walsh a écrit: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > On 01/17/2011 08:25 AM, Philippe Naudin wrote: > > Hello, > > > > I am trying to create a custom policy, but with no succes : > > >

Re: [CentOS] disk quotas + centos 5,5 +xfs

2011-01-18 Thread Philippe Naudin
Le lun 17 jan 2011 18:15:34 CET, aurfal...@gmail.com a écrit: > Hi all, > > is any one aware quotas not working in 5,5? > > I'm using XFS as a file system. > > My fstab has the appropriate usrquota,grpquota but when I try to run; > quotacheck -cug /foo > > I get; > > quotacheck: Can't find fi

Re: [CentOS] internet connection tester script

2011-01-28 Thread Philippe Naudin
Le ven 28 jan 2011 03:28:22 CET, kellyremo a écrit: > [ ... ] > $ while $TORF; do ping -W 1 -c 1 bix.hu >& /dev/null && ping > -W 1 -c 1 www.yahoo.com >& /dev/null && TORF=false || > TORF=true; done > $ > > It just doesn't work. > > Goal: if theres no internet connection, then the oneliner m

Re: [CentOS] Basic Bash Script Question

2011-02-21 Thread Philippe Naudin
Le lun 21 fév 2011 10:31:38 CET, James Bensley a écrit: > I'm stuck trying to work this one out and my Google skills are > apparently lacking today. > > This is a test bash script; > > #!/bin/bash > > do something | tee a.log > > if [ $? -ne 0]; then > echo broken > fi What about : { do som

[CentOS] Epel and yum downgrade : possible ?

2011-03-08 Thread Philippe Naudin
Hello, Is it possible to downgrade to an old version of a package on epel ? I am in troubles with the new dokuwiki-0-0.6.20101107.a.el5, and cannot find dokuwiki-0-0.4.20091225.c.el5.noarch... Thanks, -- Philippe ___ CentOS mailing list CentOS@centos

Re: [CentOS] Epel and yum downgrade : possible ?

2011-03-09 Thread Philippe Naudin
Le mar 08 mar 2011 22:04:27 CET, Nico Kadel-Garcia a écrit: > On Tue, Mar 8, 2011 at 11:59 AM, Ned Slider wrote: > > On 08/03/11 16:55, Ned Slider wrote: > >> On 08/03/11 15:53, Philippe Naudin wrote: > >>> Hello, > >>> > >>> Is it possible t

[CentOS] updating libvorbis

2011-04-26 Thread Philippe Naudin
Hello, On a machine with CentOS-5.6, I need libvorbis >= 1.2, so I have recompiled and packaged libvorbis. But I get the following error : $ rpm -U /usr/src/redhat/RPMS/x86_64/libvorbis-1.2.3-phn.1.x86_64.rpm /usr/src/redhat/RPMS/x86_64/libvorbis-devel-1.2.3-phn.1.x86_64.rpm package li

Re: [CentOS] updating libvorbis

2011-04-26 Thread Philippe Naudin
[ replying to myself ] Le mar 26 avr 2011 11:20:44 CEST, Philippe Naudin a écrit: > ... > Who knows how to make rpm understand than 1.2.3 is newer than 1.1.2 ? > I have tried : > %define name libvorbis > Name: %{name} > Provides: %{name} = %{version}-%{release} >

Re: [CentOS] updating libvorbis

2011-04-26 Thread Philippe Naudin
Le mar 26 avr 2011 04:34:58 CEST, Johnny Hughes a écrit: > CentOS, Red Hat and Fedora use an NEVR model > (Name-Epoch-Version-Release) for version control. > > This command shows that libvorbis has an epoch of 1: > > [root@m4500 ~]# rpm -q --qf '%{epoch}\n' libvorbis > 1 > > The default Epoch,

Re: [CentOS] since CentOS 5.6 upgrade, squid crashes

2011-05-04 Thread Philippe Naudin
Le mer 04 mai 2011 12:48:39 CEST, Laurent CREPET a écrit: > [...] > However, since: > - my settings have not been modified recently > - logrorate and squid packages have not been updated by CentOS 5.6 (see below) > ...an issue with glibc ? Squid and logrotate work just fine here : $ rpm -q squid

Re: [CentOS] since CentOS 5.6 upgrade, squid crashes

2011-05-04 Thread Philippe Naudin
Le mer 04 mai 2011 15:03:06 CEST, Laurent CREPET a écrit: > [root@stargate ~]# logrotate -d -v -f /etc/logrotate.d/squid > [snip ] > So, logrotating squid logs by hand works. Now, when logrotate is started from > /etc/cron.daily/logrotate, it processes more log files. It has consequences > on sy

Re: [CentOS] read failed after messages of non existing harddisks

2011-10-28 Thread Philippe Naudin
t is ok that this disk do > not exist any more? If a software RAID has been removed, don't forget : mdadm --misc --zero-superblock /dev/sdX where sdX is every disk that was part of the RAID. -- Philippe Naudin UMR MISTEA : Mathématiques, Informatique et STatistique pour l'

[CentOS] CentOS-5.7 + megaraid + SELinux : update problem

2011-11-03 Thread Philippe Naudin
="smartd" name="megadev0" dev=tmpfs ino=8284 scontext=system_u:system_r:fsdaemon_t:s0 tcontext=system_u:object_r:removable_device_t:s0 tclass=chr_file Changing the context (of megadev0) to fixed_disk_device_t solves the problem, but is this the best solution ? Thanks, --

[CentOS] yum with a proxy

2011-12-07 Thread Philippe Naudin
to Internet ? TIA, -- Philippe Naudin UMR MISTEA : Mathématiques, Informatique et STatistique pour l'Environnement et l'Agronomie INRA, bâtiment 29 - 2 place Viala - 34060 Montpellier cedex 2 tél: 04.99.61.26.34, fax: 04.99.61.29.03, mél: nau...@supagro.inra.fr __

Re: [CentOS] yum with a proxy

2011-12-07 Thread Philippe Naudin
Le mer 07 déc 2011 09:12:24 CET, Johnny Hughes a écrit: > On 12/07/2011 09:03 AM, Philippe Naudin wrote: > > Hello, > > > > While yum is configured to use a proxy, like this : > > [base] > > name=CentOS-$releasever - Base > > > > mirrorlist=http

Re: [CentOS] Backup Redux

2011-12-08 Thread Philippe Naudin
he available > tape size. I haven't used bacula but it looks like it might be good > if you want a mix of online and tape storage and can deal with the > agent installs. In this last scenario, dar (http://dar.linux.free.fr/doc/Features.html) works just fine and don't need a

Re: [CentOS] CR repo - version issue

2011-12-14 Thread Philippe Naudin
l 6 > %zmj_bjam_flags '-j 4' > %packager Zomojo > %_query_all_fmt %%{name}-%%{version}-%%{release}.%%{arch} > rpm -qa | grep i[3,6]86 > :~# > > Nothing other than x86_64 packages Maybe also, in the case there is something broken in the yum database : yum li

Re: [CentOS] SELinux and access across 'similar types'

2012-01-06 Thread Philippe Naudin
S01:39 0:01 /usr/sbin/httpd Apache running as "init_t" is a call for troubles. $ ps awuxZ | grep [a]pache system_u:system_r:httpd_t apache ... /usr/sbin/httpd > [root@g6950-21025 ~]# ls -lZ /var/www/html/robots.txt > -rw-rw-rw- root root system_u:object_r:httpd_s

Re: [CentOS] SELinux and access across 'similar types'

2012-01-06 Thread Philippe Naudin
Le ven 06 jan 2012 02:41:02 CET, Bennett Haselton a écrit: > On 1/6/2012 2:24 AM, Philippe Naudin wrote: > > Apache running as "init_t" is a call for troubles. > Is it? OK, any idea what caused that and how to fix it? No, sorry. Your httpd comes from CentOS ? Afaik, y

Re: [CentOS] SELinux and access across 'similar types'

2012-01-06 Thread Philippe Naudin
Le ven 06 jan 2012 04:21:14 CET, Bennett Haselton a écrit: > On 1/6/2012 4:11 AM, Philippe Naudin wrote: > > Le ven 06 jan 2012 02:41:02 CET, Bennett Haselton a écrit: > > > >> On 1/6/2012 2:24 AM, Philippe Naudin wrote: > >>> Apache running as "init_t

[CentOS] SELinux and rsh+xauth

2012-01-13 Thread Philippe Naudin
--. naudin biom system_u:object_r:xauth_home_t:s0 .Xauthority I don't have this problem on a CentOS-5.7 server with the same configuration. Any idea (other than ssh) on how to solve it ? Thanks, -- Philippe Naudin ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos

[CentOS] URL pour les logiciels du campus

2012-01-16 Thread Philippe Naudin
https://www1.montpellier.inra.fr/intranet/intracampus/logiciels/consult/ ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos

Re: [CentOS] Having problems with sudoers

2012-01-25 Thread Philippe Naudin
(grep sudo /var/log/secure) that the user and the command are exactly what you have in /etc/sudoers ? And how is your SELinux ? This works for me in /etc/sudoers : Defaultsrequiretty User_Alias TARTUFFE=naudin Defaults:TARTUFFE !requiretty -- Philippe Naudin

Re: [CentOS] lm_sensors

2012-01-31 Thread Philippe Naudin
monitor is still pending). I use the temperature of the UPS : $ upsc onduleurgeneral...@onduleur.lasb ups.temperature 023.0 (http://www.networkupstools.org/) I have checked : it is a quite correct, if heavy, thermometer ! -- Philippe Naudin ___ Cent

Re: [CentOS] confidence in partitioning tool (6.2)

2012-01-31 Thread Philippe Naudin
sresize -fi /dev/sda1 If it reports any problem, undo what has been done with fdisk. Restart Windows and let it do its FS check. This has worked for me, but as always : ymmv, be careful. -- Philippe Naudin ___ CentOS mailing list CentOS@centos.org h

Re: [CentOS] confidence in partitioning tool (6.2)

2012-01-31 Thread Philippe Naudin
ybe one in the sysinternal tools)... Windows defrag doesn't "compact" the FileSystem ; ntfsresize does if necessary. Larry should have a look at "man ntfsresize" : http://linux.die.net/man/8/ntfsresize -- Philippe Naudin ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos

[CentOS] mkswap, lvm and bootbits sectors

2012-03-13 Thread Philippe Naudin
o use mkswap -f in this case ? (If that matters, the swap is intended for a virtual machine, and the host where I am using mkswap is a CentOS-6 server.) Thanks, -- Philippe Naudin ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/ma

Re: [CentOS] i can't install centos on my poweredge 2950

2010-08-23 Thread Philippe Naudin
Le Mon, 23 Aug 2010 14:08:17 +0200, Eric Doutreleau a écrit : > hi > > i m trying to install centos5 on my poweredge 2950 with no luck. > the raid controler is > LSI Logic / Symbios Logic MegaRAID SAS 1078 (rev 04) I don't know for a 2950, but for a PE 1950 I have : alias scsi_hostadapter megar

Re: [CentOS] CentOS 5.5: what do /etc/sysconfig/networking and /etc/sysconfig/network-scripts exactly ?

2010-11-24 Thread Philippe Naudin
can enlightenment me ? > > take a look at /etc/rc.d/init.d/network > > thats the script that runs all that other stuff to fire up all the > networking interfaces defined. > > its moderately complicated. Or easier : /usr/share/doc/initscripts-*/sysconfig.txt -- Philippe

[CentOS] the tag Obsoletes: in spec files

2011-05-31 Thread Philippe Naudin
How exactly to use the tag "Obsoletes:" in a spec file ? I need to offer texlive to users on Centos-5.6, so I packaged it (based on a Mandriva src.rpm), and that works. But I want rpm to *replace* tetex by texlive, instead of just adding texlive, when users do a : $ yum install texlive (we have

Re: [CentOS] the tag Obsoletes: in spec files

2011-05-31 Thread Philippe Naudin
Le mar 31 mai 2011 15:31:17 CEST, Simon Matter a écrit: > > How exactly to use the tag "Obsoletes:" in a spec file ? > > > > I need to offer texlive to users on Centos-5.6, so I packaged it (based > > on a Mandriva src.rpm), and that works. > > > > But I want rpm to *replace* tetex by texlive, ins

Re: [CentOS] the tag Obsoletes: in spec files

2011-06-01 Thread Philippe Naudin
Le mar 31 mai 2011 19:26:35 CEST, Ljubomir Ljubojevic a écrit: > ... > Something is obviously wrong, and does not work like it should. I gave > up and just removed old version and installed new one. Well, I think you are right : Obsoletes doesn't work, or at least need more documentation about

Re: [CentOS] the tag Obsoletes: in spec files

2011-06-01 Thread Philippe Naudin
Le mer 01 jun 2011 11:37:15 CEST, lo...@lagendijk.xs4all.nl a écrit: > > Hello Philippe, > > > > On Tue, 2011-05-31 at 16:27 +0200, Philippe Naudin wrote: > >> Here is what I have tried : > >> Provides: tetex = %{version} > >> Obsoletes: tetex <

Re: [CentOS] Not receiving root mail

2011-08-22 Thread Philippe Naudin
y not too much : - edit (create if necessary) /etc/postfix/sender_cannonical a...@borg.xxx.lan some.addr...@some.real.server.for.the.bounces - edit main.cf : sender_canonical_maps = hash:/etc/postfix/sender_cannonical - rehash /etc/postfix/sender_cannonical and reload postfix Good lu

[CentOS] mounting an ext3 filesystem "-o ro"

2011-08-29 Thread Philippe Naudin
e a way to read an ext3 filesystem, completely disabling recovery and any write operation ? Thanks, -- Philippe Naudin ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos

Re: [CentOS] mounting an ext3 filesystem "-o ro"

2011-08-29 Thread Philippe Naudin
Le lun 29 aoû 2011 15:23:12 CEST, Hakan Koseoglu a écrit: > On 29 August 2011 15:18, Philippe Naudin > wrote: > > Hi, > > > > I want to do something *bad* : to mount an already mounted ext3 > > partition. > Use a clustering file system (i.e., ocfs2) instead. I n

Re: [CentOS] rsync -x does not do the same on EL 5.6 and 5.7

2011-09-08 Thread Philippe Naudin
7; or a related long option is not permitted for use with /usr/bin/rsync (arg was .is) Sep 7 20:35:01 lasbHOME scponly[12764]: requested command (/usr/bin/rsync --server -logDtpXrze.is --delete-after etc...) tried to use disallowed argument As I don't have the time to make more trials, I simply

Re: [CentOS] Not firewall, but what?

2010-05-07 Thread Philippe Naudin
8.975/58.975/0.000 ms -- Philippe Naudin ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos

Re: [CentOS] Not firewall, but what?

2010-05-07 Thread Philippe Naudin
Le Fri, 7 May 2010 09:01:17 +0100, "Simon Billis" a écrit : > Can you confirm the routing on the two boxes - is there anything different? > I would also check the routing on the upstream routers - it is possible that > one of your ingress/egress routers has a static entry that is causing > issues

[CentOS] grub, initrd and Co

2010-06-08 Thread Philippe Naudin
Hi all, I am trying to boot from a HD created as a copy of a running system (and it doesn't work, and I don't understand why ...) This is the system to be copied : File-systemSize Used Avail Use% Mounted on /dev/hda1 2.0G 797M 1.1G 43% / tmpfs 506M

Re: [CentOS] grub, initrd and Co

2010-06-08 Thread Philippe Naudin
Le Tue, 08 Jun 2010 13:42:44 +0200, Mogens Kjaer a écrit : > On 06/08/2010 01:26 PM, Philippe Naudin wrote: > ... > > mount: error mounting /dev/root on /sysroot as auto: No such device > ... > > I have certainly forgotten something, but I am unable to find what... &

Re: [CentOS] grub, initrd and Co

2010-06-08 Thread Philippe Naudin
Le Tue, 08 Jun 2010 14:30:40 +0200, Mogens Kjaer a écrit : > On 06/08/2010 02:13 PM, Philippe Naudin wrote: > ... > >>> mount: error mounting /dev/root on /sysroot as auto: No such device > ... > > Any idea ? > > /etc/fstab looks good; now what's in your

[CentOS] [Solved] was: grub, initrd and Co

2010-06-08 Thread Philippe Naudin
OK, I still don't understand what exactly went wrong, but my system boot nicely now. I think the problem was here : > Trying to resume from /dev/hda3 > No suspend signature on swap, not resuming. > Creating root device. > Mounting root filesystem. > mount: error mounting /dev/root on /sysroot as a

Re: [CentOS] centos 6.3, cron and mail script output

2012-11-23 Thread Philippe Naudin
on time > ... Compare the execution time to the timeout option of your smtp server. I don't know about exim, but on my postfix I added : smtpd_timeout = 30m Another possibility is to "spool" the mail, something like : rsync ...options... 2>&1 > LOGFILE echo -e "finis

Re: [CentOS] centos 6.3, cron and mail script output

2012-11-23 Thread Philippe Naudin
Le ven. 23 nov. 2012 10:42:19 CET, Philippe Naudin a écrit: > ... > rsync ...options... 2>&1 > LOGFILE > echo -e "finished pushing to the backup \n$LOGFILE" Nonsense, sorry. If the output is short, you can do : LOGS=$(rsync ... 2>&1) echo -e "finis

Re: [CentOS] mkswap, lvm and bootbits sectors

2012-03-14 Thread Philippe Naudin
Le mer. 14 mars 2012 09:08:46 CET, Peter Kjellström a écrit: > On Tuesday 13 March 2012 13.20.01 m.r...@5-cent.us wrote: > > Peter Kjellström wrote: > > > On Tuesday 13 March 2012 13.41.53 Philippe Naudin wrote: > > >> Hello, > > >> >

Re: [CentOS] mkswap, lvm and bootbits sectors

2012-03-15 Thread Philippe Naudin
Le mer. 14 mars 2012 18:14:31 CET, Peter Kjellström a écrit: > On Wednesday 14 March 2012 11.50.37 Philippe Naudin wrote: > > Thanks all for your answers. > > > > Actually, my problem concern lvm, not mkswap. > > No, afaict there's nothing wrong with your lvm. T

Re: [CentOS] LibreOffice rpm's vs Centos testing repo

2012-03-19 Thread Philippe Naudin
"official" *Office. It is far from perfect, because it don't work if I just do yum update openoffice, I have to uninstall openoffice* ooobasis* and then install again openoffice (or libreoffice now). So : me too ;) (I am interested to hear about a better way

Re: [CentOS] 6.2 - How to check for a failed disk using LVM with a hardware RAID (3ware)

2012-04-05 Thread Philippe Naudin
drive. Is there a way to > check the disks individually to see if any are failing, or throwing hard > or scsi transport errors? You can try : man smartctl smartd can access individual disks behind (supported) RAID controllers. -- Philippe Naudin _

Re: [CentOS] LibreOffice rpm's vs Centos testing repo

2012-04-23 Thread Philippe Naudin
Le ven. 20 avril 2012 19:24:37 CEST, Ljubomir Ljubojevic a écrit: > On 03/19/2012 11:28 AM, Philippe Naudin wrote: > > I am also using a meta-package to ease installation of "official" > > *Office. It is far from perfect, because it don't work if I just do > &

[CentOS] restorecon and sudo

2012-04-26 Thread Philippe Naudin
? -- Philippe Naudin UMR MISTEA : Mathématiques, Informatique et STatistique pour l'Environnement et l'Agronomie INRA, bâtiment 29 - 2 place Viala - 34060 Montpellier cedex 2 tél: 04.99.61.26.34, fax: 04.99.61.29.03, mél: nau...@supagro.inra.fr

[CentOS] support for Broadcom BCM4313

2012-05-25 Thread Philippe Naudin
Hello, The support for Broadcom Corporation BCM4313 802.11b/g/n Wireless is native in the kernel since 2.6.37 (module brcm80211, renamed brcmsmac since 2.6.39). But is it backported to some kernel available for CentOS ? Thanks, -- Philippe Naudin

Re: [CentOS] support for Broadcom BCM4313

2012-05-25 Thread Philippe Naudin
Le ven. 25 mai 2012 09:42:14 CEST, Phil Schaffner a écrit: > Philippe Naudin wrote on 05/25/2012 08:39 AM: > > Hello, > > > > The support for Broadcom Corporation BCM4313 802.11b/g/n Wireless is > > native in the kernel since 2.6.37 (module brcm80211, rename

Re: [CentOS] support for Broadcom BCM4313

2012-05-26 Thread Philippe Naudin
Le ven. 25 mai 2012 13:45:27 CEST, Akemi Yagi a écrit: > On Fri, May 25, 2012 at 7:45 AM, Philippe Naudin > wrote: > > Le ven. 25 mai 2012 09:42:14 CEST, Phil Schaffner a écrit: > > >> Check http://elrepo.org/tiki/kmod-compat-wireless to see if it supports > >>

[CentOS] gnome / gdm mess

2012-06-05 Thread Philippe Naudin
me to some useful doc ? P.S. I'm surprised to see gdm and X running on tty1 (in runlevel 5, not 3). Is it correct ? Thanks for your help, -- Philippe Naudin ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos

Re: [CentOS] rsyslog.conf - why the "-" in this entry? mail.* -/var/log/maillog

2012-06-05 Thread Philippe Naudin
log files specified in > /etc/rsyslog.conf. It means that writing to this logfile is not followed by a sync. -- Philippe Naudin ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos

Re: [CentOS] rsyslog.conf - why the "-" in this entry? mail.* -/var/log/maillog

2012-06-05 Thread Philippe Naudin
gt; logging in a very verbose manner." > > Now whether that minus is still supported under C6 I can't tell you :) . It seems this is no more necessary. From http://www.rsyslog.com/doc/v3compatibility.html : "In rsyslog v3, syncing has been turned off by default." OTOH,

[CentOS] yum install, and exit status

2012-06-13 Thread Philippe Naudin
Hello, IIRC, the exit status of "yum install foo bar" was (long ago !) 0 only if foo *and* bar could be installed. Nowadays, it is 0 if foo *or* bar (or both) are correctly installed. Is there a way to get the old behavior ? Thanks, -- Phili

[CentOS] SELinux : please explain ...

2012-08-01 Thread Philippe Naudin
ng around, it is not advised. Thanks, -- Philippe Naudin ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos

Re: [CentOS] Cut command behaviour - bug or feature

2012-08-29 Thread Philippe Naudin
entos box later (which I am silently injecting > [installing] into that env after handwaving the xp). You can also try with bash : while IFS="," read A B C ; do echo "$B,$C,$A" ; done < infile Regards, -- Philippe Naudin ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos

Re: [CentOS] NTP server problem behind firewall

2012-09-03 Thread Philippe Naudin
e since it works without firewall), in the firewall (for example, if it blocks DNS requests), or in the network configuration. Regards, -- Philippe Naudin ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos