Re: [CentOS] echo password into bash script

2015-08-25 Thread Marc Wiatrowski
What are you trying to do? Copy your public key out to use it for future authentication? Use ssh-copy-id to set it up the first time? Or look at the package sshpass. On Tue, Aug 25, 2015 at 12:58 PM, zep zgreenfel...@gmail.com wrote: On 08/25/2015 12:51 PM, Tim Dunphy wrote: Hey guys,

[CentOS] sed question

2015-08-25 Thread Jerry Geis
I am trying to use sed to change a value in a pipe. --- This is the two line script CHANGE=1234 cat my_file.txt | sed 's/CANCELID/$CHANGE/' cancel.txt --- and the my_file.txt has: v1:notificationIdCANCELID/v1:notificationId it gets changed to $CHANGE

Re: [CentOS] sed question

2015-08-25 Thread James A. Peltier
- Original Message - | I am trying to use sed to change a value in a pipe. | | --- This is the two line script | CHANGE=1234 | | cat my_file.txt | sed 's/CANCELID/$CHANGE/' cancel.txt | --- | | and the my_file.txt has: |

Re: [CentOS] sed question

2015-08-25 Thread Gordon Messmer
On 08/25/2015 10:50 AM, Jerry Geis wrote: cat my_file.txt | sed 's/CANCELID/$CHANGE/' cancel.txt sed doesn't perform environment variable expansion. That is to say that when you instruct sed to substitute $CHANGE for CANCELID, $CHANGE is a literal string that will be substituted. bash,

[CentOS] C7 and /etc/sysconfig/network

2015-08-25 Thread Robert Moskowitz
Does Centos 7 use /etc/sysconfig/network or is this replaced by some systemctl set of commands. For example I know to set my host name with: hostnamectl set-hostname nevia.htt-consult.com But I don't know if this is the same as cat EOF/etc/sysconfig/network || exit 1 NETWORKING=yes

Re: [CentOS] Compile for C6 / glibc

2015-08-25 Thread Leon Fauster
Am 25.08.2015 um 16:31 schrieb Eero Volotinen eero.voloti...@iki.fi: 25.8.2015 4.03 ip. Leon Fauster leonfaus...@googlemail.com kirjoitti: In the hope that some skilled developers are here: We have a commercial product that do not run under CentOS6 /lib64/libc.so.6: version

Re: [CentOS] echo password into bash script

2015-08-25 Thread Eero Volotinen
Use expect? Eero 25.8.2015 7.52 ip. Tim Dunphy bluethu...@gmail.com kirjoitti: Hey guys, I'm trying to echo my password into some commands inside of a bash script. But I think I'm going about it incorrectly. Here's the top part of my script: #!/bin/bash pub=~/.ssh/id_rsa.pub

Re: [CentOS] sed question

2015-08-25 Thread John R Pierce
On 8/25/2015 10:50 AM, Jerry Geis wrote: --- This is the two line script CHANGE=1234 cat my_file.txt | sed 's/CANCELID/$CHANGE/' cancel.txt --- and the my_file.txt has: v1:notificationIdCANCELID/v1:notificationId it gets changed to $CHANGE instead of

Re: [CentOS] sed question

2015-08-25 Thread Larry Martell
On Tue, Aug 25, 2015 at 1:50 PM, Jerry Geis ge...@pagestation.com wrote: I am trying to use sed to change a value in a pipe. --- This is the two line script CHANGE=1234 cat my_file.txt | sed 's/CANCELID/$CHANGE/' cancel.txt --- and the my_file.txt has:

Re: [CentOS] clamav / EXIM on Centos 7 - workaround

2015-08-25 Thread Gary Stainburn
The story so far: Even though I've got clamav-server-systemd installed I can't find any units etc to enable me to control clamd via systemctl. When I ran clamd in a terminal it complained that it couldn't find /etc/clamd.conf which made sense as it didn't exist. I copied /etc/clam.d/exim.conf

Re: [CentOS] Compile for C6 / glibc

2015-08-25 Thread Eero Volotinen
How about virtualization and running on supported platform? Eero 25.8.2015 4.03 ip. Leon Fauster leonfaus...@googlemail.com kirjoitti: In the hope that some skilled developers are here: We have a commercial product that do not run under CentOS6 /lib64/libc.so.6: version `GLIBC_2.14' not

Re: [CentOS] Compile for C6 / glibc

2015-08-25 Thread Gordon Messmer
On 08/25/2015 07:31 AM, Eero Volotinen wrote: How about virtualization and running on supported platform? Or docker, or another chroot environment containing the required libraries... ___ CentOS mailing list CentOS@centos.org

[CentOS] smartctl of usb backup drive

2015-08-25 Thread Robert Moskowitz
On a headless C7 server (actually a pogoplug with the Redsleeve 7 distro), I have a usb attached backup drive (what other type of drives can you have on a pogoplug other than usb? :) ). I had reformated the partition as ext4: # parted /dev/sdb print Model: WD My Book 1230 (scsi) Disk

Re: [CentOS] smartctl of usb backup drive

2015-08-25 Thread John Hodrien
On Tue, 25 Aug 2015, Robert Moskowitz wrote: I looked at the manpage and I don't know how to figure out what usb bridge to specify. Almost always I find -d sat is what you want with USB connected disks. jh ___ CentOS mailing list CentOS@centos.org

Re: [CentOS] clamav / EXIM on Centos 7

2015-08-25 Thread Gary Stainburn
On Tuesday 25 August 2015 14:44:55 Mihamina Rakotomandimby wrote: Does the directory /var/run/clamav-milter/ exist and is it traversable and writable by the clamav user is running as? Socket creation mostly doesnt include recursive operation (creating the directory) It looks like I'm barking

Re: [CentOS] Compile for C6 / glibc

2015-08-25 Thread zep
On 08/25/2015 09:02 AM, Leon Fauster wrote: In the hope that some skilled developers are here: We have a commercial product that do not run under CentOS6 /lib64/libc.so.6: version `GLIBC_2.14' not found Is it possible to compile software (compile switch?) on a system that uses a newer

Re: [CentOS] smartctl of usb backup drive

2015-08-25 Thread Robert Moskowitz
On 08/25/2015 11:16 AM, John Hodrien wrote: On Tue, 25 Aug 2015, Robert Moskowitz wrote: I looked at the manpage and I don't know how to figure out what usb bridge to specify. Almost always I find -d sat is what you want with USB connected disks. Thanks. That did the trick.

Re: [CentOS] echo password into bash script

2015-08-25 Thread zep
On 08/25/2015 12:51 PM, Tim Dunphy wrote: Hey guys, I'm trying to echo my password into some commands inside of a bash script. But I think I'm going about it incorrectly. Here's the top part of my script: #!/bin/bash pub=~/.ssh/id_rsa.pub dps_pass=my_pass ssh=/usr/bin/ssh

[CentOS] echo password into bash script

2015-08-25 Thread Tim Dunphy
Hey guys, I'm trying to echo my password into some commands inside of a bash script. But I think I'm going about it incorrectly. Here's the top part of my script: #!/bin/bash pub=~/.ssh/id_rsa.pub dps_pass=my_pass ssh=/usr/bin/ssh scp=/usr/bin/scp for i in 10.10.10.2{5,6} do echo xfring key up

Re: [CentOS] Compile for C6 / glibc

2015-08-25 Thread Nicolas Thierry-Mieg
On 08/25/2015 07:11 PM, Leon Fauster wrote: Am 25.08.2015 um 16:31 schrieb Eero Volotinen eero.voloti...@iki.fi: 25.8.2015 4.03 ip. Leon Fauster leonfaus...@googlemail.com kirjoitti: In the hope that some skilled developers are here: We have a commercial product that do not run under

Re: [CentOS] grub.conf

2015-08-25 Thread Barry Brimer
On Tue, 25 Aug 2015, Sachin Gupta wrote: Thank you so much!!! It worked. On Tue, Aug 25, 2015 at 8:04 PM, Barry Brimer li...@brimer.org wrote: Thanks for reply. I replaced break=y with init=/bin/sh. In that case case system just hangs with the following message. Freeing unused kernel

Re: [CentOS] echo password into bash script

2015-08-25 Thread Peter
On 08/26/2015 08:14 AM, Tim Dunphy wrote: Well, look at the lines in my script that I'm showing here. That's exactly what I'm doing. Copying up my public key so that later in the script (which I didn't show, no need to I think) is to cat the public key into place and make sure there are proper

Re: [CentOS] grub.conf

2015-08-25 Thread Barry Brimer
My grub.conf is as following. title Linux Init Break kernel /vmlinuz root=/dev/sda6 ro rootwait break=y initrd /initrd.gz What I expect is by adding *break=y* to cmdline, init will pause early in the boot process and launch an interactive sh shell which can be used for troubleshooting

Re: [CentOS] grub.conf

2015-08-25 Thread Sachin Gupta
Thanks for reply. I replaced break=y with init=/bin/sh. In that case case system just hangs with the following message. Freeing unused kernel memory : 400k freed. Thanks!! Sachin On Tue, Aug 25, 2015 at 7:16 PM, Barry Brimer li...@brimer.org wrote: My grub.conf is as following. title Linux

Re: [CentOS] grub.conf

2015-08-25 Thread Sachin Gupta
Thank you so much!!! It worked. On Tue, Aug 25, 2015 at 8:04 PM, Barry Brimer li...@brimer.org wrote: Thanks for reply. I replaced break=y with init=/bin/sh. In that case case system just hangs with the following message. Freeing unused kernel memory : 400k freed. Thanks!! Sachin On

Re: [CentOS] grub.conf

2015-08-25 Thread Barry Brimer
Thanks for reply. I replaced break=y with init=/bin/sh. In that case case system just hangs with the following message. Freeing unused kernel memory : 400k freed. Thanks!! Sachin On Tue, Aug 25, 2015 at 7:16 PM, Barry Brimer li...@brimer.org wrote: My grub.conf is as following. title

Re: [CentOS] sed question

2015-08-25 Thread Gordon Messmer
On 08/25/2015 11:21 AM, Alice Wonder wrote: cat file.txt |\ sed -e s?foo?bar?g |\ sed -e s?dirty?clean? |\ file2.txt I don't understand why you'd quote that way. Though unlikely, you could potentially match a filename in the working directory, and hose the sed command. For

Re: [CentOS] sed question

2015-08-25 Thread Alice Wonder
On 08/25/2015 11:02 AM, Gordon Messmer wrote: Additionally, you can avoid using cat to make the script more efficient. You'll start fewer processes, and complete more quickly. cat is almost never needed unless you actually need to concatenate multiple files. I sometimes like to use cat

[CentOS] CentOS 6.6 - reshape of RAID 6 is stucked

2015-08-25 Thread Daniel Reich
Hello I have a CentOS 6.6 Server with 13 disks in a RAID 6. Some weeks ago, i upgraded it to 17 disks, two of them configured as spare. The reshape worked like normal in the beginning. But at 69% it stopped. md2 : active raid6 sdj1[0] sdg1[18](S) sdh1[2] sdi1[5] sdm1[15] sds1[12] sdr1[14]

Re: [CentOS] Where's My CD/DVD?

2015-08-25 Thread Antonio M
I have a similar problem in Fedora (see https://bugzilla.redhat.com/show_bug.cgi?id=1234317) but nobody seems to take care of it. Hope that Centos is more responsive :-) 2015-08-25 21:45 GMT+02:00 Steve Atkins fsra...@comcast.net: Afraid I'm new enough at this I'm still in the learning curve.

Re: [CentOS] a peculiar LVM failure on CentOS 6 run as a VMware 5.5 guest

2015-08-25 Thread Boris Epstein
Hello again, Not sure I have this down 100% but it appears that the main LVM config file ( /etc/lvm/lvm.conf ) has been changed on August 13, 2015 on a number of machines we have - all of them configured for automatic yum updates. So I presume that could be a change that came as part an update -

[CentOS] please block user

2015-08-25 Thread Alice Wonder
julie70773 [at] loverhearts.com Responded off-list to message on the list, spam with content that is not suitable for minors. It is possible subscribed under different address. IP of offending spam : Received: from mx2.loverhearts.com (mx2.loverhearts.com [45.55.128.151]) (using

Re: [CentOS] Software Collections

2015-08-25 Thread Johnny Hughes
On 08/25/2015 04:29 PM, Jeff Spahr wrote: What's CentOS's policy on keeping up with RHEL software collections releases? It looks like just the 1.0 release is available on CentOS. 1.1, 1.2, and 2.0 have been released on the RHEL side. Is there anything I can do to help with this effort?

Re: [CentOS] Where's My CD/DVD?

2015-08-25 Thread Robert Wolfe
Have you tried manually mounting it? -Original Message- From: centos-boun...@centos.org [mailto:centos-boun...@centos.org] On Behalf Of Steve Atkins Sent: Tuesday, August 25, 2015 2:28 PM To: CentOS@centos.org Subject: [CentOS] Where's My CD/DVD? Hello, I recently upgraded from CentOs

Re: [CentOS] Where's My CD/DVD?

2015-08-25 Thread Steve Atkins
Afraid I'm new enough at this I'm still in the learning curve. I re-booted into a previous kernel version and now the CD/DVD is on the list (under computer) but properties reveal unknown for every area. Seems strange because it knew all about the Asus drive when I first installed the system.

Re: [CentOS] echo password into bash script

2015-08-25 Thread Tim Dunphy
Don't try to automate your password like this for scp or other ssh-related apps. Generate and use a public/private keypair instead and your script will then be able to connect without prompting for a password. Well, look at the lines in my script that I'm showing here. That's exactly what

Re: [CentOS] echo password into bash script

2015-08-25 Thread Tim Dunphy
Use expect? yep! Expect should work. Thanks On Tue, Aug 25, 2015 at 12:56 PM, Eero Volotinen eero.voloti...@iki.fi wrote: Use expect? Eero 25.8.2015 7.52 ip. Tim Dunphy bluethu...@gmail.com kirjoitti: Hey guys, I'm trying to echo my password into some commands inside of a bash

[CentOS] Where's My CD/DVD?

2015-08-25 Thread Steve Atkins
Hello, I recently upgraded from CentOs 6.6 to 6.7 and among others oddities, my CD/DVD drive has disappeared from the system. it lights up when I insert a disc and appears to be reading, but that's it. Any thoughts? Many thanks! -steve ___

[CentOS] a peculiar LVM failure on CentOS 6 run as a VMware 5.5 guest

2015-08-25 Thread Boris Epstein
Hello listmates, I have encountered a rather peculiar situation. We have a Centos 6 VM (64 bit) running on a VMware vSphere 5.5 server. It was running just fine until one day I decided to reboot it and it just would not boot up. Effectively, dracut failed to initialize the LVM, much like under

Re: [CentOS] echo password into bash script

2015-08-25 Thread Peter
On 08/26/2015 04:51 AM, Tim Dunphy wrote: Hey guys, I'm trying to echo my password into some commands inside of a bash script. But I think I'm going about it incorrectly. Here's the top part of my script: #!/bin/bash pub=~/.ssh/id_rsa.pub dps_pass=my_pass ssh=/usr/bin/ssh

[CentOS] clamav / EXIM on Centos 7

2015-08-25 Thread Gary Stainburn
Me again, I'm still building my new mail server and I'm struggling getting clamav and exim to talk to each other. I've installed: clamav-server-0.98.7-1.el7.x86_64 clamav-lib-0.98.7-1.el7.x86_64 clamav-0.98.7-1.el7.x86_64 clamav-milter-0.98.7-1.el7.x86_64 clamav-data-0.98.7-1.el7.noarch

Re: [CentOS] clamav / EXIM on Centos 7

2015-08-25 Thread Mihamina Rakotomandimby
On 08/25/2015 04:16 PM, Gary Stainburn wrote: connect to UNIX socket (/var/run/clamd.exim/clamd.sock): No such file If you try to locate that file, do you find it somewhere? When you list services (units) and grep with clamav, do you find some? ___

Re: [CentOS] Compile for C6 / glibc

2015-08-25 Thread Leon Fauster
Am 25.08.2015 um 19:17 schrieb Nicolas Thierry-Mieg nicolas.thierry-m...@imag.fr: On 08/25/2015 07:11 PM, Leon Fauster wrote: The support of this vendor (2) is willing to provide such OS support for there products. The same was also offered by a different vendor (1), they just

Re: [CentOS] Compile for C6 / glibc

2015-08-25 Thread John R Pierce
On 8/25/2015 3:48 PM, Leon Fauster wrote: sure, thats always possible but exist there some backward compatibility switch when compiling against a newer glibc? binary compatibility has /never/ been a goal of the linux/gpl architects/authors. in fact, it seems like they make design decisions

Re: [CentOS] Compile for C6 / glibc

2015-08-25 Thread Johnny Hughes
On 08/25/2015 05:48 PM, Leon Fauster wrote: Am 25.08.2015 um 19:17 schrieb Nicolas Thierry-Mieg nicolas.thierry-m...@imag.fr: On 08/25/2015 07:11 PM, Leon Fauster wrote: The support of this vendor (2) is willing to provide such OS support for there products. The same was also offered by

Re: [CentOS] Compile for C6 / glibc

2015-08-25 Thread Leon Fauster
Am 26.08.2015 um 01:04 schrieb Johnny Hughes joh...@centos.org: On 08/25/2015 05:48 PM, Leon Fauster wrote: Am 25.08.2015 um 19:17 schrieb Nicolas Thierry-Mieg nicolas.thierry-m...@imag.fr: On 08/25/2015 07:11 PM, Leon Fauster wrote: So the easiest solution would be that the vendor (2)

Re: [CentOS] Compile for C6 / glibc

2015-08-25 Thread Gordon Messmer
On 08/25/2015 04:22 PM, John R Pierce wrote: binary compatibility has /never/ been a goal of the linux/gpl architects/authors. in fact, it seems like they make design decisions to discourage it. I don't think that's true. Development in GNU/Linux is highly de-centralized, and some

Re: [CentOS] please block user

2015-08-25 Thread Fabian Arrotin
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 25/08/15 20:39, Alice Wonder wrote: julie70773 [at] loverhearts.com Responded off-list to message on the list, spam with content that is not suitable for minors. It is possible subscribed under different address. IP of offending spam :

[CentOS] Inappropriate Message From Reply to List

2015-08-25 Thread James A. Peltier
This is probably going to sound a bit crazy, but did anyone else receive an e-mail after replying the sed question from someone with inappropriate content from one Julie Anna? I'm just wondering if it was only me. It was in fact quoting the CentOS list with the appropriate subject that I

[CentOS] Software Collections

2015-08-25 Thread Jeff Spahr
What's CentOS's policy on keeping up with RHEL software collections releases? It looks like just the 1.0 release is available on CentOS. 1.1, 1.2, and 2.0 have been released on the RHEL side. Is there anything I can do to help with this effort?

Re: [CentOS] Inappropriate Message From Reply to List

2015-08-25 Thread John R Pierce
On 8/25/2015 2:22 PM, James A. Peltier wrote: This is probably going to sound a bit crazy, but did anyone else receive an e-mail after replying the sed question from someone with inappropriate content from one Julie Anna? I'm just wondering if it was only me. It was in fact quoting the

[CentOS] Compile for C6 / glibc

2015-08-25 Thread Leon Fauster
In the hope that some skilled developers are here: We have a commercial product that do not run under CentOS6 /lib64/libc.so.6: version `GLIBC_2.14' not found Is it possible to compile software (compile switch?) on a system that uses a newer glibc but in such a way that can be used (executed)

Re: [CentOS] clamav / EXIM on Centos 7

2015-08-25 Thread Gary Stainburn
[root@ollie2 ~]# find / -iname clamd.sock [root@ollie2 ~]# systemctl list-unit-files --type=service [.] clamav-milter.service enabled exim.serviceenabled spamassassin.serviceenabled [.] [root@ollie2 ~]# ps

Re: [CentOS] clamav / EXIM on Centos 7

2015-08-25 Thread Mihamina Rakotomandimby
On 08/25/2015 04:36 PM, Gary Stainburn wrote: so I've edited that file to comment out the 'example' line. In here it defines the socket as /var/run/clamav-milter/clamav-milter.socket However, after saving this file the service still fails to start and the socket still doesn't exist Does the

[CentOS] grub.conf

2015-08-25 Thread Sachin Gupta
Hello Everyone, My grub.conf is as following. title Linux Init Break kernel /vmlinuz root=/dev/sda6 ro rootwait break=y initrd /initrd.gz What I expect is by adding *break=y* to cmdline, init will pause early in the boot process and launch an interactive sh shell which can be used for

Re: [CentOS-es] Cambios en CentOS 7

2015-08-25 Thread José Roberto Alas
El 24 de agosto de 2015, 9:48 a. m., Luis Alberto Roman Aguirre luisroma...@hotmail.com escribió: Buenas estimados listeros: Actualmente vengo trabajando con la versión del CentOS 6.4 y me decidí a actualizar al a versión 7,pero hay cambios desde la instalación. Y tengo algunas dudas y

[CentOS-es] warning: no MX host for thxtransport.com has a valid address record

2015-08-25 Thread Periko Support
Hola. Se estan quejando que los correos para un X dominio estan tardando en llegarle. Revisando los logs para ese correo veo varios warnings/errores en maillog: Aug 25 09:56:41 mail postfix/smtp[25658]: 8EBC41B006F: to=XXX, relay=none, delay=0.16, delays=0.15/0/0/0, dsn=4.4.3, status=deferred

[CentOS-announce] CEBA-2015:1652 CentOS 5 udev BugFix Update

2015-08-25 Thread Johnny Hughes
CentOS Errata and Bugfix Advisory 2015:1652 Upstream details at : https://rhn.redhat.com/errata/RHBA-2015-1652.html The following updated files have been uploaded and are currently syncing to the mirrors: ( sha256sum Filename ) i386:

[CentOS-announce] CESA-2015:1664 Moderate CentOS 5 nss Security Update

2015-08-25 Thread Johnny Hughes
CentOS Errata and Security Advisory 2015:1664 Moderate Upstream details at : https://rhn.redhat.com/errata/RHSA-2015-1664.html The following updated files have been uploaded and are currently syncing to the mirrors: ( sha256sum Filename ) i386:

[CentOS-announce] CESA-2015:1668 Moderate CentOS 6 httpd Security Update

2015-08-25 Thread Johnny Hughes
CentOS Errata and Security Advisory 2015:1668 Moderate Upstream details at : https://rhn.redhat.com/errata/RHSA-2015-1668.html The following updated files have been uploaded and are currently syncing to the mirrors: ( sha256sum Filename ) i386:

Re: [CentOS-es] Cambios en CentOS 7

2015-08-25 Thread Rodolfo Edgar
El 24/8/15, Luis Alberto Roman Aguirre luisroma...@hotmail.com escribió: Buenas estimados listeros: Actualmente vengo trabajando con la versión del CentOS 6.4 y me decidí a actualizar al a versión 7,pero hay cambios desde la instalación. Y tengo algunas dudas y espero me puedan guiar:

[CentOS-announce] CESA-2015:1665 Moderate CentOS 7 mariadb Security Update

2015-08-25 Thread Johnny Hughes
CentOS Errata and Security Advisory 2015:1665 Moderate Upstream details at : https://rhn.redhat.com/errata/RHSA-2015-1665.html The following updated files have been uploaded and are currently syncing to the mirrors: ( sha256sum Filename ) x86_64:

[CentOS-announce] CESA-2015:1667 Moderate CentOS 7 httpd Security Update

2015-08-25 Thread Johnny Hughes
CentOS Errata and Security Advisory 2015:1667 Moderate Upstream details at : https://rhn.redhat.com/errata/RHSA-2015-1667.html The following updated files have been uploaded and are currently syncing to the mirrors: ( sha256sum Filename ) x86_64:

Re: [CentOS-es] warning: no MX host for thxtransport.com has a valid address record

2015-08-25 Thread Carlos Alvear
Lo que puedo indicar es que el registro MX existe, no tiene registro PTR (eso es un problema con respecto a los servidores de correo, deben tener si o si PTR si no son considerados como spam), no tiene registro SPF (utilizado para confirmar que estas autorizado para enviar correo a nombre de tu