Re: [CentOS] Formatting print with awk and ORS

2009-07-07 Thread John Doe
From: Joseph L. Casale > I have a command I execute: > awk 'BEGIN { ORS=" " } { print "\"" $1 "\"" }' input_file > which gives me exactly what I need, all field one's in quotes on one line > each separated by one space. I now need to print a single quote around all > of this, but the ORS flag is

Re: [CentOS] Network Utilization

2009-07-07 Thread John Doe
From: "Parsons, Scott" > I'm attempting to create a script that will indicate the % utilization > of a network interface. I need this to export a one shot output that can > be called by nagios. > I've tried the following tools but I was unable to find a way to output > just the utilization, and j

Re: [CentOS] Memory reporting...

2009-07-07 Thread John Doe
From: Peter Kjellstrom > On Monday 06 July 2009, John Doe wrote: > > When I do a free, I get: > > total used free sharedbuffers cached > > Mem: 18482800 18030668 452132 0 6830689426792 > > -/+ buffers/cache:7920808 10561992 >

[CentOS] Init checking for processes that are configured to "respawn"

2009-07-07 Thread Dirk H. Schulz
Hi folks, I have a sophisticated question for which I can't find any hints on the web: If you configure init (via /etc/inittab) to respawn processes (like the getty processes) when they exit - how often does init check for the existence of such a process? Does it check actively at all or does

Re: [CentOS] Memory reporting...

2009-07-07 Thread Sander Snel
try vmstat, see all the options in "man vmstat" it reads from /proc/meminfo and /proc/stat #vmstat -a 5 -S m on my system with 2 GB ram it shows that i'm having 18 mb free, 922 mb inactive and 821 mb active my running processes only use a tiny bit of my active ram, you can check it with: #ps aux

Re: [CentOS] Init checking for processes that are configured to "respawn"

2009-07-07 Thread Michael Kralka
On 2009-07-07, at 6:17 AM, "Dirk H. Schulz" wrote: > Hi folks, > > I have a sophisticated question for which I can't find any hints on > the > web: > > If you configure init (via /etc/inittab) to respawn processes (like > the > getty processes) when they exit - how often does init check f

[CentOS] Permission problem

2009-07-07 Thread Niki Kovacs
Hi, I have to solve an apparently simple permission problem, and I don't know if it's the sunny weather or birdsong, well... I just can't figure it out. Here goes. I have a bunch of users in a public library. Some are "administrators": they handle the library, write the docs for everyone, etc.

Re: [CentOS] Permission problem

2009-07-07 Thread Barry Brimer
> 1) Members of the "administrators" group have unlimited read/write > access to /home/pub and below. > > 2) Members of the "agents" group have read-only access to /home/pub and > below. > > 3) All the others (that is, members of neither "administrators" and > "agents") have no access at all to /ho

Re: [CentOS] Permission problem

2009-07-07 Thread Christoph Neuhaus
Hi Niki, > I have to solve an apparently simple permission problem, and I don't > know if it's the sunny weather or birdsong, well... I just can't figure > it out. Here goes. > ... > The thing is: I can't seem to formulate my problem in terms of > user/group/others, as there are no owners, but two

Re: [CentOS] Permission problem

2009-07-07 Thread Kurian Thayil
Yes, as Barry said, use ACL for giving permission for group agents. The permission must be 770 and the group associated to /home/pub must be administrator. Then give acl rx (setfacl -m g:agent:rx /home/pub) to /home/pub. This should solve the issue. Make sure your filesystem is mounted with ACL sup

Re: [CentOS] Permission problem

2009-07-07 Thread Bo Lynch
On Tue, July 7, 2009 7:45 am, Niki Kovacs wrote: > Hi, > > I have to solve an apparently simple permission problem, and I don't > know if it's the sunny weather or birdsong, well... I just can't figure > it out. Here goes. > > I have a bunch of users in a public library. Some are "administrators":

Re: [CentOS] Permission problem

2009-07-07 Thread Radu-Cristian FOTESCU
http://rofi.roger-ferrer.org/eiciel/?s=2 __ Looking for the perfect gift? Give the gift of Flickr! http://www.flickr.com/gift/ ___ CentOS mailing list CentOS@centos.org http://l

[CentOS] dovecot autocreate home and /var/mail

2009-07-07 Thread Eugene Vilensky
Hi, is there a way to make dovecot autocreate the home directory and the /var/mail/username mbox file? I have tons of users in /etc/passwd but they might never open a shell (where I have oddjobmkhome working), just pop/imap. Thanks! ___ CentOS mailing

Re: [CentOS] dovecot autocreate home and /var/mail

2009-07-07 Thread Ray Van Dolson
On Tue, Jul 07, 2009 at 09:36:01AM -0500, Eugene Vilensky wrote: > Hi, > > is there a way to make dovecot autocreate the home directory and the > /var/mail/ > username mbox file? > > I have tons of users in /etc/passwd but they might never open a shell (where I > have oddjobmkhome working), just

Re: [CentOS] Permission problem

2009-07-07 Thread Niki Kovacs
Radu-Cristian FOTESCU a écrit : > > http://rofi.roger-ferrer.org/eiciel/?s=2 First of all, thanks for the instant replies. I took a peek at ACLs and how they work. But then, being a fervent adept of the KISS (Keep It Simple Stupid) principle (I started out with Slackware some eight years ago),

Re: [CentOS] Permission problem

2009-07-07 Thread Niki Kovacs
Niki Kovacs a écrit : > > # chown jcpascot:agents /home/pub/jcpascot/ > # chown nkovacs:agents /home/pub/nkovacs > # chmod 0750 /home/pub/* Small mistake. This last line should go chmod 2750, so every file created in that directory will have the same group ('agents'). Niki _

Re: [CentOS] Formatting print with awk and ORS

2009-07-07 Thread Joseph L. Casale
>awk -v q="'" ' BEGIN { ORS=" "; printf("%s", q) } { print "\"" $1 "\"" } END { >printf("%s", q) } ' >or >awk ' BEGIN { ORS=" "; printf("\x27") } { print "\"" $1 "\"" } END { >printf("\x27") } ' Thanks JD! ___ CentOS mailing list CentOS@centos.org http

Re: [CentOS] Permission problem

2009-07-07 Thread JohnS
On Tue, 2009-07-07 at 13:45 +0200, Niki Kovacs wrote: > /home/pub > > and > > /home/echange > > Then, I created two groups, "administrators" and "agents". Here's what > I'd like to achieve (but I think my IQ is just below the required limit > :oD): > > 1) Members of the "administrators" gro

Re: [CentOS] Permission problem

2009-07-07 Thread JohnS
On Tue, 2009-07-07 at 17:23 +0200, Niki Kovacs wrote: Where's the ENGLISH Version? John ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos

Re: [CentOS] Permission problem

2009-07-07 Thread Filipe Brandenburger
On Tue, Jul 7, 2009 at 13:03, JohnS wrote: > Where's the ENGLISH Version? I see you use GMail, so you can try "Message translation" in the "Labs" feature of Gmail. I tried it, glanced at the translation, and it is quite decent. I does screw up the command-line listings, though. HTH, Filipe __

Re: [CentOS] hardware requirements for Centos 2

2009-07-07 Thread Dmitry
Thanks a lot for your help , guys. P.s : think, we'll add memory and proceed with Centos 5 ... Michael A. Peters wrote: > Niki Kovacs wrote: > >> Dmitry a écrit : >> >>> Hi. >>> >>> Could you please give me advice about issue described below. >>> >>> My friends have to use a PC with old ha

[CentOS] server fails reboot - GRUB

2009-07-07 Thread Rob Kampen
Hi All, Just wondering if anyone else has experienced a reboot problem. I have a intel motherboard based server of late 2004 vintage with 2 by 160GB SATA drives running linux software raid 1 with boot partition and /. The server was running 2.6.18-128.1.10 and had uptime of approx 40 days. I did

[CentOS] yum update error

2009-07-07 Thread Olaf Mueller
Hello, since today I could not update my CentOS 5.3 system with yum cause of the following error message. # yum update [...] Resolving Dependencies --> Running transaction check ---> Package exiv2.i386 0:0.18.2-1.el5.rf set to be updated ---> Package perl-Params-Util.i386 0:1.00-1.el5.rf set to b

Re: [CentOS] yum update error

2009-07-07 Thread Ralph Angenendt
Olaf Mueller wrote: > I have asked about the missing perl(Class::MOP) >= 0.89 package on the > rpmforge mailing list without getting any answer. So maybe could this > be a problem of CentOS or Epel repo? a) rpmforge and epel don't mix well b) rpmforge perl packages get a mass rebuild at the momen

Re: [CentOS] yum update error

2009-07-07 Thread Olaf Mueller
Olaf Mueller wrote: > I have asked about the missing perl(Class::MOP) >= 0.89 package on > the rpmforge mailing list without getting any answer. So maybe could > this be a problem of CentOS or Epel repo? Ok, found it on the rpmforge list and the error is caused by rpmforge. It was not an answer t

Re: [CentOS] yum update error

2009-07-07 Thread Olaf Mueller
Ralph Angenendt wrote: Hello. > a) rpmforge and epel don't mix well Yes, you are right. Now I have disabled rpmforge. regards Olaf ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos

[CentOS] Is there an openssh security problem?

2009-07-07 Thread Olaf Mueller
Hello, is there a security issue on CentOS 5.3 with openssh 4.3? I ask that cause of http://www.h-online.com/security/Rumours-of-critical-vulnerability-in-OpenSSH-in-Red-Hat-Enterprise-Linux--/news/113712 and http://secer.org/hacktools/0day-openssh-remote-exploit.html. Should ssh login from inter

Re: [CentOS] Permission problem

2009-07-07 Thread JohnS
On Tue, 2009-07-07 at 13:18 -0400, Filipe Brandenburger wrote: > On Tue, Jul 7, 2009 at 13:03, JohnS wrote: > > Where's the ENGLISH Version? > > I see you use GMail, so you can try "Message translation" in the > "Labs" feature of Gmail. I tried it, glanced at the translation, and > it is quite de

Re: [CentOS] Flash Drive problem?

2009-07-07 Thread Ron Blizzard
On Thu, Jul 2, 2009 at 11:02 PM, Robert Nichols wrote: > Ron Blizzard wrote: > 1 >> Jul  1 03:54:26 localhost hald[2450]: forcibly attempting to lazy >> unmount /dev/sda1 as enclosing drive was disc > > That indicates that you unplugged the drive without first unmounting > it, which is very likely

Re: [CentOS] Flash Drive problem?

2009-07-07 Thread nate
Ron Blizzard wrote: > At any rate, I'm now unmounting and then waiting for a while before > removing the flash (just in case it is still writing). Thanks. You can if you want also run the 'sync' command to flush out the write cache of the system. I do that myself before I remove any type of disk

Re: [CentOS] Is there an openssh security problem?

2009-07-07 Thread Geoff Galitz
> is there a security issue on CentOS 5.3 with openssh 4.3? If this is a real zero-day exploit.. then yes, there is an issue. The following link may be the best source of information at the moment: http://isc.sans.org/diary.html?storyid=6742 FWIW, I think the second comment about RHEL/Cento

Re: [CentOS] Is there an openssh security problem?

2009-07-07 Thread Ray Van Dolson
On Tue, Jul 07, 2009 at 10:31:36PM +0200, Geoff Galitz wrote: > > is there a security issue on CentOS 5.3 with openssh 4.3? > > If this is a real zero-day exploit.. then yes, there is an issue. The > following link may be the best source of information at the moment: > > http://isc.sans.org/diar

Re: [CentOS] Flash Drive problem?

2009-07-07 Thread Filipe Brandenburger
Hi, On Tue, Jul 7, 2009 at 16:16, Ron Blizzard wrote: > One thing that is odd -- sometimes when I unmount the flash drive, I > get a notice on the bottom of the screen that says 1) Wait until the > files are written to the flash and 2) It is now safe to remove the > flash drive. But I only get the

Re: [CentOS] Flash Drive problem?

2009-07-07 Thread Ron Blizzard
On Tue, Jul 7, 2009 at 3:24 PM, nate wrote: > > You can if you want also run the 'sync' command to flush out the > write cache of the system. > > I do that myself before I remove any type of disk that I have > written to, mainly out of habit, it's not a bad habit to > have. > > I believe once a fil

[CentOS] Sysctl on Kernel 2.6.18-128.1.16.el5

2009-07-07 Thread JohnS
Sysctl Values --- net.core.rmem_max = 16777216 net.core.wmem_max = 16777216 net.ipv4.tcp_rmem = 4096 87380 16777216 net.ipv4.tcp_wmem = 4096 65536 16777216 net.ipv4.tcp_window_scaling = 1 # vm.max-readahead = ? # vm.min-readahead = ? # HW Controler Off # ma

Re: [CentOS] Is there an openssh security problem?

2009-07-07 Thread Rainer Duffner
Am 07.07.2009 um 22:31 schrieb Geoff Galitz: > > > >> is there a security issue on CentOS 5.3 with openssh 4.3? > > If this is a real zero-day exploit.. then yes, there is an issue. The > following link may be the best source of information at the moment: > > http://isc.sans.org/diary.html?story

Re: [CentOS] Flash Drive problem?

2009-07-07 Thread Ron Blizzard
On Tue, Jul 7, 2009 at 3:43 PM, Filipe Brandenburger wrote: > Hi, > > On Tue, Jul 7, 2009 at 16:16, Ron Blizzard wrote: >> One thing that is odd -- sometimes when I unmount the flash drive, I >> get a notice on the bottom of the screen that says 1) Wait until the >> files are written to the flash a

Re: [CentOS] Sysctl on Kernel 2.6.18-128.1.16.el5

2009-07-07 Thread JohnS
On Tue, 2009-07-07 at 16:54 -0400, JohnS wrote: > Sysctl Values > --- > net.core.rmem_max = 16777216 > net.core.wmem_max = 16777216 > net.ipv4.tcp_rmem = 4096 87380 16777216 > net.ipv4.tcp_wmem = 4096 65536 16777216 > net.ipv4.tcp_window_scaling = 1 > > # v

Re: [CentOS] yum update error

2009-07-07 Thread John R Pierce
Ralph Angenendt wrote: > a) rpmforge and epel don't mix well > more specifically, EPEL doesn't mix well with -any- other repository as they insist on not using a repository tag I for one leave EPEL disabled, and only enable it manually when I absolutely need something from it thats not avai

Re: [CentOS] yum update error

2009-07-07 Thread Lanny Marcus
On Tue, Jul 7, 2009 at 5:38 PM, John R Pierce wrote: > Ralph Angenendt wrote: >> a) rpmforge and epel don't mix well > > more specifically, EPEL doesn't mix well with -any- other repository as > they insist on not using a repository tag > > I for one leave EPEL disabled, and only enable it manually

Re: [CentOS] yum update error

2009-07-07 Thread Les Bell
Lanny Marcus wrote: >> IMHO, on my CentOS 5.3 (32 bit) Desktop, RPMForge works very well. I have given it a much higher Priority than EPEL. When I added the EPEL Repository, the number of excluded packages went from approximately 400 to 1705. My belief is that if EPEL had a high priority, it wo

[CentOS] md0 mounted rw on boot

2009-07-07 Thread David . Mackintosh
Hi folks, I updates one of my long-running CentOS 4.x systems today, and afterwards it wouldn't boot properly. My issue was that it would start, then announce: Checking root filesystem /dev/md0 is mounted. e2fsck cannot continue. After much twiddling around, I discovered that if I booted from

[CentOS] no more single cd installs?

2009-07-07 Thread William Warren
for some reason cent 5 now wants cd 3 as well as 1. I make sure to uncheck everything and instlal only the base system. Bad iso or new default? Sincerely, William Warren ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listin

Re: [CentOS] no more single cd installs?

2009-07-07 Thread Robert Heller
At Tue, 07 Jul 2009 22:15:55 -0400 CentOS mailing list wrote: > > for some reason cent 5 now wants cd 3 as well as 1. I make sure to > uncheck everything and instlal only the base system. Bad iso or new > default? The only way you are going to get a one-disk media install is to use the DVD

Re: [CentOS] no more single cd installs?

2009-07-07 Thread Mathew S. McCarrell
I've had no issues doing just base installs of CentOS 5.3 with only disk 1. I would try again and double check that you only have base checked. Matt -- Mathew S. McCarrell Clarkson University '10 mccar...@gmail.com mccar...@clarkson.edu On Tue, Jul 7, 2009 at 10:56 PM, Robert Heller wrote: >

Re: [CentOS] no more single cd installs?

2009-07-07 Thread Daniel_Curry
I've started using live media to build my CentOS or Fedora 'client' systems. And a KS file to build a server base image. It seems to be working well, so far. -Original Message- From: centos-boun...@centos.org [mailto:centos-boun...@centos.org] On Behalf Of William Warren Sent: Tuesday, J

Re: [CentOS] Flash Drive problem?

2009-07-07 Thread Robert Nichols
Ron Blizzard wrote: > One thing that is odd -- sometimes when I unmount the flash drive, I > get a notice on the bottom of the screen that says 1) Wait until the > files are written to the flash and 2) It is now safe to remove the > flash drive. But I only get these notices some of the time -- mayb

[CentOS] Question about optimal filesystem with many small files.

2009-07-07 Thread oooooooooooo ooooooooooooo
Hi, I have a program that writes lots of files to a directory tree (around 15 Million fo files), and a node can have up to 40 files (and I don't have any way to split this ammount in smaller ones). As the number of files grows, my application gets slower and slower (the app is works someth

Re: [CentOS] Question about optimal filesystem with many small files.

2009-07-07 Thread Niki Kovacs
o a écrit : > Hi, > > I have a program that writes lots of files to a directory tree Did that program also write your address header ? :o) ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/cent

Re: [CentOS] Question about optimal filesystem with many small files.

2009-07-07 Thread Per Qvindesland
Perhaps think about running tune2fs maybe also consider adding noatime Regards Per E-mail: p...@norhex.com [1] http://www.linkedin.com/in/perqvindesland [2] --- Original message follows --- SUBJECT: Re: [CentOS] Question about optimal filesystem with many small files. FROM:  Niki Kovacs TO: "CentO