Re: [CentOS] centos 5.1 install , 3ware raid card...

2008-02-26 Thread Jed Reynolds
Tom Bishop wrote: Installing a new system using a 3ware card, raid 5 across 4 disks, partition, format went smothly and loaded the apps that I need, but for some reason it appears grub was not installed, or not completely. I am wanting to boot from the array, when installing grub on the loade

Re: [CentOS] HD Failures

2008-02-26 Thread Jed Reynolds
Jimmy Bradley wrote: I'm just curious if any one else has noticed this. I've bought hard drives from both Walmart and Best Buy. If I can wait, I order them from newegg.com. I'm beginning to think that the staff at both Walmart and Best Buy, somewhere along the supply line must dribble the d

Re: [CentOS] ext3 errors

2008-02-26 Thread William L. Maltby
On Mon, 2008-02-25 at 18:11 -0600, Les Mikesell wrote: > William L. Maltby wrote: > > > >> > > If you use cpio, it can handle the hard links intelligently, IIRC. That > > may make this more feasible. Plus you can specify such things as depth > > to the find command feeding cpio so that even direc

Re: [CentOS] centos 5.1 install , 3ware raid card...

2008-02-26 Thread gopinath
You can install grub loader on MBR which is safer and will mount the linux partitions whereever the OS is installed - Original Message - From: "Jed Reynolds" <[EMAIL PROTECTED]> To: "CentOS mailing list" Sent: Tuesday, February 26, 2008 1:36 PM Subject: Re: [CentOS] centos 5.1 install ,

[CentOS] CentOS-announce Digest, Vol 36, Issue 13

2008-02-26 Thread centos-announce-request
Send CentOS-announce mailing list submissions to [EMAIL PROTECTED] To subscribe or unsubscribe via the World Wide Web, visit http://lists.centos.org/mailman/listinfo/centos-announce or, via email, send a message with subject or body 'help' to [EMAIL PROTECTED] You can reac

Re: [CentOS] centos 5.1 install , 3ware raid card...

2008-02-26 Thread Tom Bishop
Its an older system raid 5 - 4 250gb drives for 750gb partition. The install went fine but grub did not get installed for some reason so I wasn't sure if I should install grub to the mbr or the first partition On Mon, Feb 25, 2008 at 10:24 PM, Joshua Baker-LePain <[EMAIL PROTECTED]> wrote: >

Re: [CentOS] Squirrelmail Problem on CentOS 4.4

2008-02-26 Thread MOSER, Wilhelm
Well, easy to solve for non-japaneses find /usr/share/squirremail/functions/mime.php if (!$charset_converted) {... <<< line 316 ... } <<< line 323 and do this (comment it out) /* if (!$charset_converted) {... <<< line 316 ... }

Re: [CentOS] sudo

2008-02-26 Thread Ralph Angenendt
Centos wrote: > Hello > > unfortunately other users can change to my user name with sudo, > how I can prevent it ? is there a command to prevent to change to only my > user name ? DO NOT HIJACK THREADS ON A MAILING LIST. Post a "fresh" mail to centos@centos.org, don't just blindly reply to some m

Re: [CentOS] SAMBA is driving me crazy

2008-02-26 Thread Ralph Angenendt
scaglietti amore wrote: > > > that was it plus i had to set /selinux/enforce = 0im greatfull , thanks alot > Craig > > > Subject: RE: [CentOS] SAMBA is driving me crazy> From: [EMAIL PROTECTED]> > > To: centos@centos.org> Date: Sun, 24 Feb 2008 15:09:24 -0700> > dude, you > > need to give '

Re: [CentOS] Yum not updating kernel

2008-02-26 Thread Johnny Hughes
Bob Taylor wrote: On Mon, 2008-02-25 at 23:44 -0500, Ross S. W. Walker wrote: Bob Taylor wrote: On Mon, 2008-02-25 at 12:10 -0800, Ray Van Dolson wrote: [snip] Well, exactarch=0 might work around this from a yum standpoint (as far as downloading the updates), but if RPM is complaining this

Re: [CentOS] Lost my win dual boot

2008-02-26 Thread David G. Miller
Stephen McManus <[EMAIL PROTECTED]> wrote: Finally got my install working, Centos didn't recognise my m/board NIC so I had to install another NIC. Now, I've lost the windows install. I need it for my Walkman and Palm. Never, ever got any distro to see the Tunsgsten E. I can see the Win in Grub

[CentOS] Logwatch showing entries for non existent services

2008-02-26 Thread Joseph L. Casale
I had removed Exim and installed Postfix yet Logwatch still shows an empty Exim section? Why is that still in the output? Thanks! jlc ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos

Re: [CentOS] Lost my win dual boot

2008-02-26 Thread Johnny Hughes
Stephen McManus wrote: Finally got my install working, Centos didn't recognise my m/board NIC so I had to install another NIC. Now, I've lost the windows install. I need it for my Walkman and Palm. Never, ever got any distro to see the Tunsgsten E. I can see the Win in Grub but it says there's

Re: [CentOS] Logwatch showing entries for non existent services

2008-02-26 Thread Jeff Larsen
On Tue, Feb 26, 2008 at 8:49 AM, Joseph L. Casale <[EMAIL PROTECTED]> wrote: > I had removed Exim and installed Postfix yet Logwatch still shows an empty > Exim section? Why is that still in the output? Probably because the package removal does not remove log files. Try manually deleting the logs.

[CentOS] bash - safely pass untrusted strings?

2008-02-26 Thread Benjamin Smith
In bash, given a string assignment as follows, how do I "add slashes" automagically, so that it can be safely passed to another program? Notice that the assignment contains spaces, single-quotes and double-quotes, maybe god-only-knows-what-else. It's untrusted data. Yet I need to pass it all *

Re: [CentOS] bash - safely pass untrusted strings?

2008-02-26 Thread Bob Beers
On Tue, Feb 26, 2008 at 10:11 AM, Benjamin Smith <[EMAIL PROTECTED]> wrote: > In bash, given a string assignment as follows, how do I "add slashes" > automagically, so that it can be safely passed to another program? Notice > that the assignment contains spaces, single-quotes and double-quotes, >

Re: [CentOS] Huge mailq

2008-02-26 Thread Benjamin Smith
On Monday 25 February 2008, Christopher Chan wrote: > Hmm...it will still build. To really fix it, you need to do one more step: > > rpm -e --nodeps sendmail > > Now that is a permanent solution. Like a hand grenade is a "solution". Not likely to help him much, tho. =/ Doesn't even begin to add

Re: [CentOS] bash - safely pass untrusted strings?

2008-02-26 Thread Benjamin Smith
On Tuesday 26 February 2008, Bob Beers wrote: > short answer:  single quotes will handle all characters, except single quotes. > > long answer:  man bash >  the section called QUOTING may help you figure a solution. I've read the man page. It helps if I already know the input - I don't have a p

Re: [CentOS] bash - safely pass untrusted strings?

2008-02-26 Thread Ralph Angenendt
Benjamin Smith wrote: > There is no mechanism for escaping untrusted input? Correct. At least there's no magic quoting function. Ralph pgp3MLwLhKMwH.pgp Description: PGP signature ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailm

RE: [CentOS] bash - safely pass untrusted strings?

2008-02-26 Thread Ross S. W. Walker
Benjamin Smith wrote: > On Tuesday 26 February 2008, Bob Beers wrote: > > short answer: single quotes will handle all characters, > except single > quotes. > > > > long answer: man bash > > the section called QUOTING may help you figure a solution. > > I've read the man page. It helps if I a

Re: [CentOS] bash - safely pass untrusted strings?

2008-02-26 Thread Benjamin Smith
On Tuesday 26 February 2008, Ralph Angenendt wrote: > > There is no mechanism for escaping untrusted input? > > Correct. At least there's no magic quoting function. Ok. So I'm going to have to pull up my sleeves and do this with sed/awk pipes. Got it. I'll quit looking for a simply solution to t

RE: [CentOS] Huge mailq

2008-02-26 Thread Jason Pyeron
> -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of nate > Sent: Monday, February 25, 2008 21:47 > To: centos@centos.org > Subject: Re: [CentOS] Huge mailq > > Jason Pyeron wrote: > > Where should we start on preventing this type of problem? > > > >

Re: [CentOS] bash - safely pass untrusted strings?

2008-02-26 Thread Milton Calnek
Benjamin Smith wrote: On Tuesday 26 February 2008, Ralph Angenendt wrote: There is no mechanism for escaping untrusted input? Correct. At least there's no magic quoting function. WHY THE @!#! NOT?!?!? Bash is used, extensively in many cases, to deal with untrusted data. This can include

Re: [CentOS] bash - safely pass untrusted strings?

2008-02-26 Thread Garrick Staples
On Tue, Feb 26, 2008 at 08:25:54AM -0800, Benjamin Smith alleged: > On Tuesday 26 February 2008, Ralph Angenendt wrote: > > > There is no mechanism for escaping untrusted input? > > > > Correct. At least there's no magic quoting function. > > Ok. So I'm going to have to pull up my sleeves and do

Re: [CentOS] SAMBA is driving me crazy

2008-02-26 Thread Steve Huff
On Feb 26, 2008, at 9:04 AM, Ralph Angenendt wrote: scaglietti amore wrote: that was it plus i had to set /selinux/enforce = 0im greatfull , thanks alot Craig Subject: RE: [CentOS] SAMBA is driving me crazy> From: [EMAIL PROTECTED]> To: centos@centos.org> Date: Sun, 24 Feb 2008 15:09

Re: [CentOS] bash - safely pass untrusted strings?

2008-02-26 Thread Les Mikesell
Benjamin Smith wrote: On Tuesday 26 February 2008, Ralph Angenendt wrote: There is no mechanism for escaping untrusted input? Correct. At least there's no magic quoting function. Ok. So I'm going to have to pull up my sleeves and do this with sed/awk pipes. Got it. I'll quit looking for a si

RE: [CentOS] Logwatch showing entries for non existent services

2008-02-26 Thread Joseph L. Casale
> Probably because the package removal does not remove log files. Try > manually deleting the logs. I missed that obvious point, heh. Thanks, jlc ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos

[CentOS] Mono installation

2008-02-26 Thread Roilan Cardoso Sánchez
Hello everybody I´m trying to install mono and when i try to install the package libgdiplus throw the following error dependencies with libexif.so.9 and libungif.so.4. Im using local packages, i downloaded it from the redhat mono repository, I try with the bin installer in others distro mono re

Re: [CentOS] Mono installation

2008-02-26 Thread Akemi Yagi
On Tue, Feb 26, 2008 at 9:29 AM, Roilan Cardoso Sánchez <[EMAIL PROTECTED]> wrote: > > Hello everybody > > I´m trying to install mono and when i try to install the package libgdiplus > throw the following error dependencies with libexif.so.9 and libungif.so.4. > Im using local packages, i download

Re: [CentOS] Yum not updating kernel

2008-02-26 Thread Bob Taylor
On Mon, 2008-02-25 at 22:46 -0800, John R Pierce wrote: > Bob Taylor wrote: > > On Tue, 2008-02-26 at 00:19 -0500, Ross S. W. Walker wrote: > > > >> Bob Taylor wrote: > >> > > > > [snip] > > > > > >>> uname -imp: > >>> > >>> i686 i686 i386 > >>> > >>> Don't know why the kernel says it's

[CentOS] Re: Yum not updating kernel

2008-02-26 Thread Scott Silva
on 2/25/2008 9:25 PM Ross S. W. Walker spake the following: Bob Taylor wrote: On Mon, 2008-02-25 at 23:44 -0500, Ross S. W. Walker wrote: Bob Taylor wrote: On Mon, 2008-02-25 at 12:10 -0800, Ray Van Dolson wrote: [snip] Well, exactarch=0 might work around this from a yum standpoint (as far

[CentOS] Re: [CentOS-announce] CESA-2008:0161 Important CentOS 5 i386 cups - security update

2008-02-26 Thread William L. Maltby
On Tue, 2008-02-26 at 08:54 -0600, Johnny Hughes wrote: > CentOS Errata and Security Advisory 2009:0161 > > https://rhn.redhat.com/errata/RHSA-2008-0161.html > > The following updated files have been uploaded and are currently > syncing to the mirrors: > > i386: > cups-1.1.22-0.rc1.9.20.2.el4_6.

Re: [CentOS] Mono installation

2008-02-26 Thread Johnny Hughes
Roilan Cardoso Sánchez wrote: Hello everybody I´m trying to install mono and when i try to install the package libgdiplus throw the following error dependencies with libexif.so.9 and libungif.so.4. Im using local packages, i downloaded it from the redhat mono repository, I try with the bin in

Re: [CentOS] Mono installation

2008-02-26 Thread Roilan Cardoso Sánchez
I do it, but when i try to install gdiplus it thow and depes error with libgif.so.4 and i cant find it in centos extras - Mensaje original De: Akemi Yagi <[EMAIL PROTECTED]> Para: CentOS mailing list Enviado: martes, 26 de febrero, 2008 13:19:18 Asunto: Re: [CentOS] Mono installation

Re: [CentOS] Re: auto seek a server

2008-02-26 Thread Ignacio Vazquez-Abrams
On Mon, 2008-02-25 at 13:45 -0500, Jerry Geis wrote: > I am trying this command and I am getting an error of INvalid service. > > avahi-publish-service MyServer _tcp 80 "myentry at 192.168.1.8" > > What is wrong with _tcp? I also tried tcp. http://0pointer.de/lennart/projects/mod_dnssd/ -- Ig

Re: [CentOS] bash - safely pass untrusted strings?

2008-02-26 Thread Les Mikesell
Garrick Staples wrote: How many "homebrew" ISP or hosting administration scripts could be compromised by simply putting a file in your home directory called ";rm -rf /" ? It's not as bad as you think because of the order of operations. In all cases, these perform exactly as a string should r

Re: [CentOS] Re: [CentOS-announce] CESA-2008:0161 Important CentOS 5 i386 cups - security update

2008-02-26 Thread Akemi Yagi
On Tue, Feb 26, 2008 at 10:35 AM, William L. Maltby <[EMAIL PROTECTED]> wrote: > On Tue, 2008-02-26 at 08:54 -0600, Johnny Hughes wrote: > > CentOS Errata and Security Advisory 2009:0161 > > Oh wait! I just noticed the repo tag - el4! <*whew*> > > Subject line got me. You know, the whole CentO

RE: [CentOS] Yum not updating kernel

2008-02-26 Thread Ross S. W. Walker
Bob Taylor wrote: > On Mon, 2008-02-25 at 22:46 -0800, John R Pierce wrote: > > Bob Taylor wrote: > > > On Tue, 2008-02-26 at 00:19 -0500, Ross S. W. Walker wrote: > > > > > >> Bob Taylor wrote: > > >> > > > > > > [snip] > > > > > > > > >>> uname -imp: > > >>> > > >>> i686 i686 i386 > >

RE: [CentOS] SAMBA is driving me crazy

2008-02-26 Thread scaglietti amore
sorry man :( but when i pasted those lines to the mail page they were organized i dont know how they end up like that :)regards > Date: Tue, 26 Feb 2008 15:04:32 +0100> From: [EMAIL PROTECTED]> To: > centos@centos.org> Subject: Re: [CentOS] SAMBA is driving me crazy> > > scaglietti amo

[CentOS] /etc/sysconfig/iptables on a stock CentOS 5 install

2008-02-26 Thread Tom Laramee
Greetings: i have a pretty stock CentOS 5 machine with ports 80 and 22 exposed, so my /etc/sysconfig/iptables file is pretty standard/straightforward. my question is: how is this config file initially generated? i'd like to re-create it, and add a couple of rules so i don't want to los

Re: [CentOS] Yum not updating kernel

2008-02-26 Thread Bob Taylor
On Tue, 2008-02-26 at 08:14 -0600, Johnny Hughes wrote: [snip] > what happens if you edit /etc/rpm/platform and change it too: > > i686-redhat-linux Nothing. I downloaded the current rpm file this morning and ran rpm -Uvh --force /home/brtaylor/rpm-4.4.2-47.el5.i386.rpm. Rpm seems to behave o

Re: [CentOS] bash - safely pass untrusted strings?

2008-02-26 Thread Garrick Staples
On Tue, Feb 26, 2008 at 12:45:41PM -0600, Les Mikesell alleged: > Garrick Staples wrote: > > >>How many "homebrew" ISP or hosting administration scripts could be > >>compromised by simply putting a file in your home directory called ";rm > >>-rf /" ? > > > >It's not as bad as you think because

Re: [CentOS] Yum not updating kernel

2008-02-26 Thread Garrick Staples
On Tue, Feb 26, 2008 at 11:19:36AM -0800, Bob Taylor alleged: > I can not remove it with the command rpm -e kernel-2.6.18-53.1.13 but > can if I add .el5 to the end it does. Before I deleted it I ran the That's correct. 53.1.13 is the not same as 53.1.13.el5. The version is 2.6.18 and the releas

Re: [CentOS] bash - safely pass untrusted strings?

2008-02-26 Thread Benjamin Smith
On Tuesday 26 February 2008, Les Mikesell wrote: > > > > WHY THE @!#! NOT?!?!? > > The shell is 'supposed' to be run by a user that is allowed to run any > command he wants, and permission/trust issues are handled by the > login/authentication process that happens before you get to the shell.

Re: [CentOS] Yum not updating kernel [personal]

2008-02-26 Thread Bob Taylor
Ray Van Dolson please email me at [EMAIL PROTECTED] -- Bob Taylor ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos

Re: [CentOS] bash - safely pass untrusted strings?

2008-02-26 Thread Garrick Staples
On Tue, Feb 26, 2008 at 11:22:55AM -0800, Benjamin Smith alleged: > On Tuesday 26 February 2008, Les Mikesell wrote: > > > > > > WHY THE @!#! NOT?!?!? > > > > The shell is 'supposed' to be run by a user that is allowed to run any > > command he wants, and permission/trust issues are handled by t

Re: [CentOS] bash - safely pass untrusted strings?

2008-02-26 Thread Alfred von Campe
Are you trying to pass all parameters from one script to another or just the first one ($1). If it's the former, have you tried using "$@"? For the latter, "$1" might work. Alfred ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/

Re: [CentOS] Yum not updating kernel

2008-02-26 Thread John R Pierce
Ross S. W. Walker wrote: Here is the cpu info of a more recent quad core Intel. processor : 0 vendor_id : GenuineIntel cpu family : 6 model : 15 model name : Intel(R) Xeon(R) CPU X3220 @ 2.40GHz stepping: 7 This model is 10 cpu designs ahead, b

Re: [CentOS] Logwatch showing entries for non existent services

2008-02-26 Thread Brian
Joseph L. Casale wrote: Probably because the package removal does not remove log files. Try manually deleting the logs. I missed that obvious point, heh. Also remove exim from the list of services in logwatch.conf ___ CentOS mailing list

Re: [CentOS] Yum not updating kernel

2008-02-26 Thread Ray Van Dolson
> I have done the following: > > rpm -Uvh --force /home/brtaylor/rpm-4.4.2-47.el5.i386.rpm > edit /etc/rpm/platform to i686-redhat-linux > rpm -e kernel-2.6.18-53.1.13.el5 > yum clean all > yum upgrade kernel > returned Installed: kernel.i686 0:2.6.18-53.1.13.el5 > Complete! > > It looks like the

Re: [CentOS] SAMBA is driving me crazy

2008-02-26 Thread John R Pierce
scaglietti amore wrote: sorry man :( but when i pasted those lines to the mail page they were organized i dont know how they end up like that :) blame it on hotmail. your original message was in mime multipart, the HTML version had those lines seperated by (break) but the plaintext ve

RE: [CentOS] SAMBA is driving me crazy

2008-02-26 Thread scaglietti amore
shiii did anyone notice any failure today to open the hotmail.combefor 5 hours > Date: Tue, 26 Feb 2008 11:51:50 -0800> From: [EMAIL PROTECTED]> To: > centos@centos.org> Subject: Re: [CentOS] SAMBA is driving me crazy> > > scaglietti amore wrote:> > > > > > sorry man :(> > > > but when i pas

Re: [CentOS] Yum not updating kernel

2008-02-26 Thread Johnny Hughes
Bob Taylor wrote: On Tue, 2008-02-26 at 08:14 -0600, Johnny Hughes wrote: [snip] what happens if you edit /etc/rpm/platform and change it too: i686-redhat-linux Nothing. I downloaded the current rpm file this morning and ran rpm -Uvh --force /home/brtaylor/rpm-4.4.2-47.el5.i386.rpm. Rpm s

RE: [CentOS] SAMBA is driving me crazy

2008-02-26 Thread Ross S. W. Walker
Ya know you can set hotmail to send in plain text which helps a lot with these mailing lists. -Ross From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of scaglietti amore Sent: Tuesday, February 26, 2008 3:04 PM To: CentOS

[CentOS] Re: Huge mailq

2008-02-26 Thread Ugo Bellavance
Jason Pyeron wrote: -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of nate Sent: Monday, February 25, 2008 21:47 To: centos@centos.org Subject: Re: [CentOS] Huge mailq Jason Pyeron wrote: Where should we start on preventing this type of problem? [EM

[CentOS] Pointer to simple mail server setup?

2008-02-26 Thread Steve Snyder
Hello. I need to set up a mail server for a small (~5 people) organization on CentOS 5.1. While I am very familiar with CentOS and Linux in general, I have zero experience in setting up a POP3(s)/SMTP mail server. I suppose eventually I'd like to do spam/virus filtering, but initially the sim

RE: [CentOS] SAMBA is driving me crazy

2008-02-26 Thread scaglietti amore
indeed it would i will look about it >Ya know you can set hotmail to send in plain text which helps a lot with these >mailing lists. >-Ross From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of scaglietti amoreSent: Tuesday, February 26, 2008 3:04 PMTo: CentOS mailing

Re: [CentOS] bash - safely pass untrusted strings?

2008-02-26 Thread Benjamin Smith
On Tuesday 26 February 2008, Garrick Staples wrote: > > I'm not asking for this. I'm only asking for the option to be able to trust > > that a parameter is... a parameter. EG: > > > > file: script1.sh > > #! /bin/bash > > script2.sh $1 > > exit 0; > > > > file: script2.sh > > #! /bin/bash

Re: [CentOS] Pointer to simple mail server setup?

2008-02-26 Thread Frank Cox
On Tue, 26 Feb 2008 15:30:50 -0500 Steve Snyder <[EMAIL PROTECTED]> wrote: > Can someone point me to a tutorial on setting up a mail server on CentOS > 5? http://www.linuxhomenetworking.com/ -- MELVILLE THEATRE ~ Melville Sask ~ http://www.melvilletheatre.com __

RE: [CentOS] Yum not updating kernel

2008-02-26 Thread Ross S. W. Walker
Johnny Hughes wrote: > Bob Taylor wrote: > > On Tue, 2008-02-26 at 08:14 -0600, Johnny Hughes wrote: > > > > [snip] > > > >> what happens if you edit /etc/rpm/platform and change it too: > >> > >> i686-redhat-linux > > > > Nothing. > > > > I downloaded the current rpm file this morning and ran

Re: [CentOS] bash - safely pass untrusted strings?

2008-02-26 Thread Garrick Staples
On Tue, Feb 26, 2008 at 12:40:06PM -0800, Benjamin Smith alleged: > I'd like to have a informed discussion, which, apparently, you either aren't > interested in, or aren't capable of. *shrug* I thought we were having a discussion. I'll leave you to it and stay out of your way. -- Garrick Sta

Re: [CentOS] Pointer to simple mail server setup?

2008-02-26 Thread e521
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Steve Snyder wrote: | Can someone point me to a tutorial on setting up a mail server on CentOS | 5? | qmailtoaster + qmailtoaster plus. http://www.qmailtoaster.org http://qtp.qmailtoaster.com -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.6 (GNU/

RE: [CentOS] Logwatch showing entries for non existent services

2008-02-26 Thread Joseph L. Casale
> Also remove exim from the list of services in logwatch.conf Hi, Maybe I don't understand Logwatch correctly. Doesn't it look for all possible services defined by the existence of the many service definitions, and if it finds a log, it reports it? This is the default behavior from what I gath

Re: [CentOS] bash - safely pass untrusted strings?

2008-02-26 Thread Stephen Harris
On Tue, Feb 26, 2008 at 11:22:55AM -0800, Benjamin Smith wrote: > file: script1.sh > #! /bin/bash > script2.sh $1 There's your mistake. It should be script2.sh "$1" Otherwise $1 is evaluated and passed through as potentially multiple parameters to script2.sh For example: $ cat x #!/bin/

Re: [CentOS] bash - safely pass untrusted strings?

2008-02-26 Thread Bart Schaefer
For someone who apparently has no idea what he's talking about, you sure say a lot. On Tue, Feb 26, 2008 at 12:40 PM, Benjamin Smith <[EMAIL PROTECTED]> wrote: > You missed the point. No, you missed it. You need the quotes *everywhere* that a variable is referenced. > In script2.sh, $1 only c

Re: [CentOS] /etc/sysconfig/iptables on a stock CentOS 5 install

2008-02-26 Thread mouss
Tom Laramee wrote: Greetings: i have a pretty stock CentOS 5 machine with ports 80 and 22 exposed, so my /etc/sysconfig/iptables file is pretty standard/straightforward. my question is: how is this config file initially generated? i'd like to re-create it, and add a couple of rules so

Re: [CentOS] bash - safely pass untrusted strings?

2008-02-26 Thread Les Mikesell
Benjamin Smith wrote: On Tuesday 26 February 2008, Les Mikesell wrote: WHY THE @!#! NOT?!?!? The shell is 'supposed' to be run by a user that is allowed to run any command he wants, and permission/trust issues are handled by the login/authentication process that happens before you get to the s

RE: [CentOS] SAMBA is driving me crazy

2008-02-26 Thread Ross S. W. Walker
Actually I recant that, one use to be able to do so, but not any more. One use to be able to display full headers too, but that is now missing as well. Oh well, Hotmail now officially sucks. Can't say I'm surprised, everything eventually sucks given enough time, I guess Microsoft is just ac

Re: [CentOS] bash - safely pass untrusted strings?

2008-02-26 Thread Stephen Harris
On Tue, Feb 26, 2008 at 12:40:06PM -0800, Benjamin Smith wrote: > In script2.sh, $1 only contains the string "this". There is no safe way to > pass $1 (containing string "this parameter") from script1 to script2 as a > single, trustable parameter. The statement is meaningless. Trusted in WHAT

[CentOS] mapper device perms on reboot

2008-02-26 Thread Scott Moseman
How can I get the mapper device permissions set on reboot? When I attempted to try this... # cat /etc/udev/permissions.d/50-udev.permissions | grep mapper mapper/mpath*:oracle:dba:0660 But it did not seem to work... # ls -l /dev/mapper/mpath* brw-rw 1 root disk 253, 2 Feb 26 20:56 /dev/map

Re: [CentOS] bash - safely pass untrusted strings?

2008-02-26 Thread Benjamin Smith
On Tuesday 26 February 2008, Bart Schaefer wrote: > For someone who apparently has no idea what he's talking about, you > sure say a lot. Sorry. It's how I think aloud. Sorry if I offended. > No, you missed it. You need the quotes *everywhere* that a variable > is referenced. Yes, I missed thi

Re: [CentOS] Yum not updating kernel

2008-02-26 Thread Johnny Hughes
Ross S. W. Walker wrote: Johnny Hughes wrote: Bob Taylor wrote: On Tue, 2008-02-26 at 08:14 -0600, Johnny Hughes wrote: [snip] what happens if you edit /etc/rpm/platform and change it too: i686-redhat-linux Nothing. The problem was most likely the /etc/rpm/platform if it is i386 and

RE: [CentOS] Yum not updating kernel

2008-02-26 Thread Ross S. W. Walker
Johnny Hughes wrote: > Ross S. W. Walker wrote: > > Johnny Hughes wrote: > >> Bob Taylor wrote: > >>> On Tue, 2008-02-26 at 08:14 -0600, Johnny Hughes wrote: > >>> > >>> [snip] > >>> > what happens if you edit /etc/rpm/platform and change it too: > > i686-redhat-linux > >>> Nothing.

Re: [CentOS] bash - safely pass untrusted strings?

2008-02-26 Thread Jacques B.
> Unless I'm terribly mistaken (again?), the only way I've been able to > see "loop thru a list of files" work reliably is with "find" using > the "-print0" option, in cahoots with xargs. > > Is there any other way? > > > -Ben > -- If I understand you correctly, you are referring to the prob

Re: [CentOS] bash - safely pass untrusted strings?

2008-02-26 Thread Les Mikesell
Benjamin Smith wrote: > Unless I'm terribly mistaken (again?), the only way I've been able to see "loop thru a list of files" work reliably is with "find" using the "-print0" option, in cahoots with xargs. Is there any other way? for $file in wildcard* do ls -l "$file" done But thi

RE: [CentOS] Yum not updating kernel

2008-02-26 Thread Ross S. W. Walker
Ross S. W. Walker wrote: > Johnny Hughes wrote: > > Ross S. W. Walker wrote: > > > Johnny Hughes wrote: > > >> Bob Taylor wrote: > > >>> On Tue, 2008-02-26 at 08:14 -0600, Johnny Hughes wrote: > > >>> > > >>> [snip] > > >>> > > what happens if you edit /etc/rpm/platform and change it too: > >

RE: [CentOS] Pointer to simple mail server setup?

2008-02-26 Thread Joseph L. Casale
> Can someone point me to a tutorial on setting up a mail server on > CentOS 5? Howtoforge has many. I have used their stuff successfully in the past... jlc ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos

Re: [CentOS] bash - safely pass untrusted strings?

2008-02-26 Thread Garrick Staples
On Tue, Feb 26, 2008 at 04:33:30PM -0600, Les Mikesell alleged: > Does anyone have a quick reference to the order of operations as the > shell parses a command line (variable parsing,i/o redirection, wildcard > and variable expansion, splitting on IFS, quote removal, command > substitution etc.)

Re: [CentOS] bash - safely pass untrusted strings?

2008-02-26 Thread Les Mikesell
Garrick Staples wrote: On Tue, Feb 26, 2008 at 04:33:30PM -0600, Les Mikesell alleged: Does anyone have a quick reference to the order of operations as the shell parses a command line (variable parsing,i/o redirection, wildcard and variable expansion, splitting on IFS, quote removal, command s

Re: [CentOS] bash - safely pass untrusted strings?

2008-02-26 Thread Stephen Harris
On Tue, Feb 26, 2008 at 04:33:30PM -0600, Les Mikesell wrote: > Benjamin Smith wrote: > >> Unless I'm terribly mistaken (again?), the only way I've been able to > >see "loop thru a list of files" work reliably is with "find" using > >the "-print0" option, in cahoots with xargs. > > > >Is there a

Re: [CentOS] bash - safely pass untrusted strings?

2008-02-26 Thread Stephen Harris
On Tue, Feb 26, 2008 at 01:51:28PM -0800, Benjamin Smith wrote: > Unless I'm terribly mistaken (again?), the only way I've been able to > see "loop thru a list of files" work reliably is with "find" using > the "-print0" option, in cahoots with xargs. What is it you're trying to do? You typica

Re: [CentOS] bash - safely pass untrusted strings?

2008-02-26 Thread Stephen Harris
On Tue, Feb 26, 2008 at 05:30:12PM -0500, Jacques B. wrote: > If I understand you correctly, you are referring to the problem caused > by spaces in filenames? Steve mentioned the environment variable IFS > ("individual field separator" if memory serves me correctly). By > default it's space, tab

Re: [CentOS] bash - safely pass untrusted strings?

2008-02-26 Thread Les Mikesell
Stephen Harris wrote: On Tue, Feb 26, 2008 at 04:33:30PM -0600, Les Mikesell wrote: Benjamin Smith wrote: Unless I'm terribly mistaken (again?), the only way I've been able to see "loop thru a list of files" work reliably is with "find" using the "-print0" option, in cahoots with xargs. Is t

Re: [CentOS] bash - safely pass untrusted strings?

2008-02-26 Thread Benjamin Smith
On Tuesday 26 February 2008, Les Mikesell wrote: > Benjamin Smith wrote: > > > Unless I'm terribly mistaken (again?), the only way I've been able to > > see "loop thru a list of files" work reliably is with "find" using > > the "-print0" option, in cahoots with xargs. > > > > Is there any other

Re: [CentOS] bash - safely pass untrusted strings?

2008-02-26 Thread Stephen Harris
On Tue, Feb 26, 2008 at 03:30:02PM -0800, Benjamin Smith wrote: > Exactly. Here's my example: > > $ ls -laFd * You're doing it wrong: ls -laFD -- * > ls -l "$file"; You're doing it wrong: ls -l -- "$file" > $ /bin/bash ./script3.sh * You're doing it wrong: bash ./script3.sh "*"

[CentOS] Re: SAMBA is driving me crazy

2008-02-26 Thread Scott Silva
on 2/26/2008 1:42 PM Ross S. W. Walker spake the following: Actually I recant that, one use to be able to do so, but not any more. One use to be able to display full headers too, but that is now missing as well. Oh well, Hotmail now officially sucks. Can't say I'm surprised, everything eve

Re: [CentOS] bash - safely pass untrusted strings?

2008-02-26 Thread Garrick Staples
On Tue, Feb 26, 2008 at 03:30:02PM -0800, Benjamin Smith alleged: > File script3.sh contains the following: > $ cat script3.sh > #! /bin/sh > for file in $* > do > ls -l "$file"; > done Use "$@" instead of $*. It will split up the way you want. pgpniM2ihOWs1.pgp Desc

[CentOS] Re: bash - safely pass untrusted strings?

2008-02-26 Thread Robert Nichols
Benjamin Smith wrote: It's obviously getting slipped on on the "-b". Tried again: $ cat script3.sh #! /bin/bash for file in $* do ls -l -- "$file"; done $ /bin/bash ./script3.sh * -rw-r--r-- 1 bens nobody 5 2008-02-26 12:14 -b ls: cannot access Disney: No such file or d

Re: [CentOS] bash - safely pass untrusted strings?

2008-02-26 Thread Garrick Staples
On Tue, Feb 26, 2008 at 05:13:12PM -0600, Les Mikesell alleged: > Garrick Staples wrote: > >On Tue, Feb 26, 2008 at 04:33:30PM -0600, Les Mikesell alleged: > >>Does anyone have a quick reference to the order of operations as the > >>shell parses a command line (variable parsing,i/o redirection, wi

Re: [CentOS] Logwatch showing entries for non existent services

2008-02-26 Thread Brian
Joseph L. Casale wrote: Hi, Maybe I don't understand Logwatch correctly. Doesn't it look for all possible services defined by the existence of the many service definitions, and if it finds a log, it reports it? This is the default behavior from what I gathered, my silly mistake was not cleani

[CentOS] NFSroot is acting strange in CentOS5

2008-02-26 Thread vincenzo romero
Hello all, I have observed a problem with a diskless PXE client I am attempting to configure. PXE/NFS/DHCP/TFTPd server is running CentOS5.1 and the Diskless workstation's root and kernel was extracted from a CentOS5.1 (custom kernel due to setting to enable Root File System support). Problem: W

Re: [CentOS] Yum not updating kernel

2008-02-26 Thread Bob Taylor
On Tue, 2008-02-26 at 11:22 -0800, Garrick Staples wrote: > On Tue, Feb 26, 2008 at 11:19:36AM -0800, Bob Taylor alleged: > > I can not remove it with the command rpm -e kernel-2.6.18-53.1.13 but > > can if I add .el5 to the end it does. Before I deleted it I ran the > > That's correct. 53.1.13 i

Re: [CentOS] Yum not updating kernel

2008-02-26 Thread Bob Taylor
On Tue, 2008-02-26 at 11:51 -0800, Ray Van Dolson wrote: [snip] > > It looks like the problem may be in rpm after 4.4.2-37. Before I go to > > the rpm people, I need to confer with Ray Van Dolson who says his is the > > same as mine and he has no problem updating kernels. After Ray and I > > reso

RE: [CentOS] Yum not updating kernel

2008-02-26 Thread Bob Taylor
On Tue, 2008-02-26 at 17:30 -0500, Ross S. W. Walker wrote: [snip] > # rpm -qf /etc/rpm/platform rpm -qf /etc/rpm/platform file /etc/rpm/platform is not owned by any package > On a default environment it should come back that no package owns > that file. If a package does own it then there is t

Re: [CentOS] Re: Yum not updating kernel

2008-02-26 Thread Bob Taylor
On Tue, 2008-02-26 at 10:33 -0800, Scott Silva wrote: [snip] > >>> The contents of, > >>> > >>> # cat /etc/rpm/platform > >> i386-redhat-linux > > > > Good > Shouldn't this be i686-redhat-linux ? Bingo! Better late than never! :-) That is exactly the problem! -- Bob Taylor _

Re: [CentOS] Yum not updating kernel

2008-02-26 Thread Bob Taylor
On Tue, 2008-02-26 at 14:16 -0600, Johnny Hughes wrote: > Bob Taylor wrote: > > On Tue, 2008-02-26 at 08:14 -0600, Johnny Hughes wrote: > > > > [snip] > > > >> what happens if you edit /etc/rpm/platform and change it too: > >> > >> i686-redhat-linux > > > > Nothing. > > > > I downloaded the cur

Re: [CentOS] bash - safely pass untrusted strings?

2008-02-26 Thread Les Mikesell
Garrick Staples wrote: On Tue, Feb 26, 2008 at 05:13:12PM -0600, Les Mikesell alleged: Garrick Staples wrote: On Tue, Feb 26, 2008 at 04:33:30PM -0600, Les Mikesell alleged: Does anyone have a quick reference to the order of operations as the shell parses a command line (variable parsing,i/o r

RE: [CentOS] Yum not updating kernel - Solved!

2008-02-26 Thread Bob Taylor
The problem which began this long an laborious thread has been solved with an edit of /etc/rpm/platform replacing i386 with i686. Whatever created this file thinks my cpu is not an i686. Many thanks to all who helped track this down! Hitler is dead. End of thread! -- Bob Taylor __

Re: [CentOS] Yum not updating kernel

2008-02-26 Thread Bob Taylor
On Tue, 2008-02-26 at 16:09 -0600, Johnny Hughes wrote: [snip] > > Would anaconda even allow C5 to install on such a class cpu? > > no ... and we have no i386 kernel ... no idea how that file got changed, > but the only code to make it happen would be a pentium classic > processor. C5 would

RE: [CentOS] Yum not updating kernel

2008-02-26 Thread Bob Taylor
On Tue, 2008-02-26 at 15:27 -0500, Ross S. W. Walker wrote: [snip] > I think there may be a case or two of bad packages updating that file > I believe these are some dumb Mozilla plugins though, googling got > me these: > > http://dnmouse.webs.com/playdvdsmore.htm > > and here: > > http://www.

  1   2   >