Hi
Can I know how to use sed to substitue 2 instead of 1 at the same time?
eg:
sed 's/pchloe.com/abc.com/ ; /192.92.123.5/10.10.0.3/g' orgfile >> newfile
thank you
__________________________________________________________________
Be smarter than spam. See how smart SpamGuard is at giving junk email the boot with the All-new Yahoo! Mail. Click on Options in Mail and switch to New Mail today or register for free at http://mail.yahoo.ca
I set up a 5.4 server with tomcat5
All standard packages from CentOS repo
I can not seem to access the tomcat manager from a remote host
I can access the tomcat admin remotely
I have a manager role and user defined in tomcat-users.xml
Attempting to access the manager gets me
HTTP Status 403 - Access to the requested resource has been denied
type Status report
message Access to the requested resource has been denied
description Access to the specified resource (Access to the requested
resource has been denied) has been forbidden.
How do I enable remote access
Thanks
Richard
Hi all,
I have a CentOS 5.4 server with 3 interfaces used as a NAS (SMB, iSCSI and NFS).
Is it possible to bind all NFS services (portmap, nfsd, mountd, etc) to a specific
interface?
Thanks.
--
CL Martinez
carlopmart {at} gmail {d0t} com
Hi,
My ftpd is being abused.
Maximum login attempts exceeded from hosts:
::ffff:64.251.22.142[::ffff:64.251.22.142] : 24197 Time(s)
I had came across an article stating that proftpd with mod wrap can actually
block these IP using denyhosts.
I had googled but I did not see any proftpd rpm with mod wrap. Is there
anyone with a copy would like to share?
Or can someone share a spec file, so I can roll my own rpm.
I am running on CentOS 5.4.
Thanks
wL
UPDATE:
I tried with FreeBSD8 as well and the DNS query didn't work. This is
beginning to look more and more like an issue with my UTStarcom *WA3002G4
ADSL2+ Router and its NAT config or the lack of it.*
*
*
*My setup and the ip addresses:*
*Router 192.168.1.1*
*Windows 192.168.1.2*
*Centos 5.4 192.168.1.3*
*FreeBSD8 192.168.1.4*
*
*
*The windows host works fine with no issues with DNS queries.*
Best Regards,
Gaurav
On Tue, Mar 9, 2010 at 12:08 AM, Gaurav Nangla <gaurav.knangla(a)gmail.com>wrote:
> [root@cent5 ~]# dig www.google.com @208.67.220.220
>
> ; <<>> DiG 9.3.6-P1-RedHat-9.3.6-4.P1.el5 <<>> www.google.com @
> 208.67.220.220
> ;; global options: printcmd
> ;; connection timed out; no servers could be reached
>
> Best Regards,
> Gaurav
>
>
>
> On Mon, Mar 8, 2010 at 5:21 PM, Pitshou Asingalembi <depitsho(a)yahoo.fr>wrote:
>
>> John R Pierce wrote:
>> > Gaurav Nangla wrote:
>> >
>> >> I can ping the google.com <http://google.com> ip addresses
>> >> (209.85.231.104) but can't ping the FQDN, obviously DNS is broken.
>> >>
>> >> I can also ping the nameserver ip addresses specified in
>> /etc/resolv.conf.
>> >>
>> >
>> > well, the DNS servers given by your resolv.conf output seem valid from
>> > here.. I recommend doing some more debugging with `host` or similar DNS
>> > diagnostic tools.
>> >
>> > note regular DNS lookups like these tend to use UDP rather than TCP, if
>> > you're behind a NAT firewall which doesn't allow outbound udp port 53
>> > and connection track the response, then things might not work well.
>> >
>> >
>> > $ host google.com 208.67.220.220
>> > Using domain server:
>> > Name: 208.67.220.220
>> > Address: 208.67.220.220#53
>> > Aliases:
>> >
>> > google.com has address 74.125.19.105
>> > google.com has address 74.125.19.99
>> > google.com has address 74.125.19.103
>> > google.com has address 74.125.19.106
>> > google.com has address 74.125.19.147
>> > google.com has address 74.125.19.104
>> > google.com mail is handled by 400 google.com.s9b2.psmtp.com.
>> > google.com mail is handled by 200 google.com.s9a2.psmtp.com.
>> > google.com mail is handled by 300 google.com.s9b1.psmtp.com.
>> > google.com mail is handled by 100 google.com.s9a1.psmtp.com.
>> >
>> > $ host google.com 208.67.222.222
>> > Using domain server:
>> > Name: 208.67.222.222
>> > Address: 208.67.222.222#53
>> > Aliases:
>> >
>> > google.com has address 74.125.19.105
>> > google.com has address 74.125.19.147
>> > google.com has address 74.125.19.99
>> > google.com has address 74.125.19.103
>> > google.com has address 74.125.19.104
>> > google.com has address 74.125.19.106
>> > google.com mail is handled by 400 google.com.s9b2.psmtp.com.
>> > google.com mail is handled by 200 google.com.s9a2.psmtp.com.
>> > google.com mail is handled by 300 google.com.s9b1.psmtp.com.
>> > google.com mail is handled by 100 google.com.s9a1.psmtp.com.
>> > _______________________________________________
>> > CentOS mailing list
>> > CentOS(a)centos.org
>> > http://lists.centos.org/mailman/listinfo/centos
>> >
>> >
>> please try:
>> dig www.google.com @IPofyourDNSserver
>> and send me the output
>> _______________________________________________
>> CentOS mailing list
>> CentOS(a)centos.org
>> http://lists.centos.org/mailman/listinfo/centos
>>
>
>
Hello list,
I have a question about LVM.
My server has five disks and I will use it to create a LVM environment.
I saw in the lvcreate man page that I can use the “-i” option to set
the number of disks that I want to stripe the lvols, but this option
doesn’t exists in the “lvchange” option (in case I add new disks to
the VG).
I had in mind: create 10 lvols – “lvcreate -i5 -L 10G MyVG
/dev/MyVG/lvol[1-10]” and in the future, add more disks and increate
the stripe value of the existing lvols.
Does anybody knows how to change the parameter “-i" of a lvol that
already exists?
Best Regards
Lincoln Zuljewic Silva
More contact info.: http://www.system.adm.br/contact.php
"How often must a question be asked before it’s considered a
frequently asked question?"
Hi,
I am trying to fix a problem I have for about a week now.
The environment is:
--several independent servers with Centos5.4 on the latest patchlevel
(example will be server2) All of them are working properly.
--a machine with Xen installed to host some virtual machines
(xenserver1)
--domu servers on xenserver1 (crmserver1, winserver1)
The whole network is connected with a Lancom router to a DSL line.
Some days ago I noticed that server2 was updated properly, but
xenserver1, crmserver1 and winserver were not updating the OS
properly. They seemed to be cut off the internet. I can ping from all
to all servers internally, I can ssh from all to all servers
internally and I can browse the Internet from server2 successfully
(using IP-numbers and hostnames), but xenserver1 and its domu clients
could not connect to the internet. I checked the firewalls on
xenserver, and crmserver1. They seemed to be OK and stopping them with
"etc/init.d/iptables stop" didn't solve the problem.
I can resolve hostnames:
>[root@xenserver1 ~]# nslookup www.centos.org
>Server: 192.168.1.1
>Address: 192.168.1.1#53
>
>Non-authoritative answer:
>Name: www.centos.org
>Address: 72.232.194.162
but I cannot browse neither to "elinks http://www.centos.org" nor to
72.232.194.162, however, I can ping www.centos.org successfully.
the network routes seem to be OK :
>[root@xenserver1 ~]# route
>Kernel IP routing table
>Destination Gateway Genmask Flags Metric Ref Use Iface
>10.1.1.0 * 255.255.255.0 U 0 0 0 eth1
>192.168.122.0 * 255.255.255.0 U 0 0 0 virbr0
>169.254.0.0 * 255.255.0.0 U 0 0 0 eth0
>192.168.0.0 * 255.255.0.0 U 0 0 0 eth0
>default LANCOM_1751_1.p 0.0.0.0 UG 0 0 0 eth0
(eth1 is a drbd interface)
> [root@crmserver1 ~]# route
> Kernel IP routing table
> Destination Gateway Genmask Flags Metric Ref Use Iface
> 169.254.0.0 * 255.255.0.0 U 0 0 0 eth0
> 192.168.0.0 * 255.255.0.0 U 0 0 0 eth0
> default LANCOM_1751_1.p 0.0.0.0 UG 0 0 0 eth0
Has anybody any clue where to look?
best regards
---
Michael Schumacher
PAMAS Partikelmess- und Analysesysteme GmbH
Dieselstr.10, D-71277 Rutesheim
Tel +49-7152-99630
Fax +49-7152-996333
Geschäftsführer: Gerhard Schreck
Handelsregister B Stuttgart HRB 252024
Hey folks,
Google brings up one concrete hit at
http://chadsikorra.com/?p=96
but I contacted the author and he said it is buggy and needs a fair
bit of work, so I decided against using it.
That's about all I was able to come up with.
Anything else out there?
thanks,
-Alan
--
“Don't eat anything you've ever seen advertised on TV”
- Michael Pollan, author of "In Defense of Food"
I have access to all of the HEX data on each drive, and I now which sector
each stripe starts at. Is there any way that I can reconstruct my data from
that? When a file gets split up in RAID0, does the controller use the same
sectors on each stripe to write the file parts?
Thanks,
Jeff
On Wed, Mar 3, 2010 at 9:39 PM, Sorin Srbu <sorin.srbu(a)orgfarm.uu.se> wrote:
> >-----Original Message-----
> >From: centos-bounces(a)centos.org [mailto:centos-bounces@centos.org] On
> Behalf
> >Of Timo Schoeler
> >Sent: Thursday, March 04, 2010 8:15 AM
> >To: CentOS mailing list
> >Subject: Re: [CentOS] Recover RAID
> >
> >>> Backups? I wish :) I will now.
> >>[...]
> >> Eh? Raid0 with no backups? For real?
> >
> >Backups are for sissies; running a hara-kiri RAID demands *not* having
> >backups. Or did the kamikaze pilots have parachutes?
>
> 8-)
>
> Or as Linus Torvalds is said to have said; "Real men don't use backups,
> they
> post their stuff on a public ftp server and let the rest of the world make
> copies."
>
> ;-)
> --
> /Sorin
>
> _______________________________________________
> CentOS mailing list
> CentOS(a)centos.org
> http://lists.centos.org/mailman/listinfo/centos
>
>
Looking at the documentation of the /etc/group file including
some google searches, it appears to me that, contrary to the man
pages for group, Linux systems generally do not put membership
user names for the user's primary group in the record for it in
the /etc/group file, only for secondary groups. FreeBSD seems to
do the same thing while SCO OpenServer has full entries for the
primary group as well as secondaries.
Is there a best practice when manipulating these regarding line
length? I've see articles that recommend splitting long entries
into multiple group lines with the same group id, while at least
some SuSE Linux Enterprise systems produce single long lines
(30,869 characters on a site with about 5,100 accounts).
How would the system's group maintenance routines interact with a
group file where this was done?
Bill
--
INTERNET: bill(a)celestial.com Bill Campbell; Celestial Software LLC
URL: http://www.celestial.com/ PO Box 820; 6641 E. Mercer Way
Voice: (206) 236-1676 Mercer Island, WA 98040-0820
Fax: (206) 232-9186 Skype: jwccsllc (206) 855-5792
The man who produces while others dispose of his product is a slave.
Ayn Rand