[CentOS] Bash script to logout user from console

2008-04-24 Thread Joseph L. Casale
I am stumped to figure out how to logout a user after they run a script interactively when logged into the console. I see how to do it if in x, but this server does not have x installed. Thanks! jlc ___ CentOS mailing list CentOS@centos.org http://list

Re: [CentOS] RHCE Training

2008-04-24 Thread Christopher Chan
My advice for the exams would be don't over think the questions and know which man pages have examples you can gain experience from. :) Interestingly the pass rate isn't as high as I would have thought. Ha! I heard a story from someone back in 2001 that a company sent twelve of their staff

Re: [CentOS] TCPWrappers + Sendmail = not working

2008-04-24 Thread Jeffrey Tadlock
On Thu, Apr 24, 2008 at 5:32 PM, Ignacio Vazquez-Abrams <[EMAIL PROTECTED]> wrote: > > $ ldd /usr/sbin/sendmail.sendmail | grep wrap > libwrap.so.0 => /usr/lib/libwrap.so.0 (0x00319000) This means that sendmail is a valid option for hosts.allow or hosts.deny as sendmail has been compiled

Re: [CentOS] TCPWrappers + Sendmail = not working

2008-04-24 Thread Les Mikesell
Sean Carolan wrote: I'm confused. I'd expect the above symbol listing to show that sendmail is in fact using the libwrap library and it should be doing what the allow/deny files say. Regardless, the simple way to tell sendmail what you want to permit is to use the /usr/mail/access file. My

Re: [CentOS] Slightly OT: Extra icons on desktop

2008-04-24 Thread William L. Maltby
On Thu, 2008-04-24 at 11:06 -0700, MHR wrote: > I'm running FC8 with Gnome 2.20.0 at work and I have this interesting > situation. > > I have two disks on the system that are both configured to be mounted > in /etc/fstab, but I'm seeing two things I believe are strange. > > One is that the secon

Re: [CentOS] TCPWrappers + Sendmail = not working

2008-04-24 Thread Sean Carolan
> I'm confused. I'd expect the above symbol listing to show that sendmail is > in fact using the libwrap library and it should be doing what the allow/deny > files say. > > Regardless, the simple way to tell sendmail what you want to permit is to > use the /usr/mail/access file. My goal was to

Re: [CentOS] TCPWrappers + Sendmail = not working

2008-04-24 Thread Les Mikesell
Sean Carolan wrote: $ ldd /usr/sbin/sendmail.sendmail | grep wrap libwrap.so.0 => /usr/lib/libwrap.so.0 (0x00319000) tcp_wrappers never sees the connection directly. sendmail handles it from start to end. Thanks for this info. I will set up an iptables rule to block this access.

Re: [CentOS] DNS problem (on NAT configuration)

2008-04-24 Thread Les Mikesell
Patricia Bittencourt wrote: Hi, I'm dealing with a problem that the worker nodes that are behind a NAT aren't able to reach outside from time to time. (ie: on a given moment I can ping an address name and immediately after I cannot: "ping: unknown host"). The NAT was conf

Re: [CentOS] TCPWrappers + Sendmail = not working

2008-04-24 Thread Sean Carolan
> $ ldd /usr/sbin/sendmail.sendmail | grep wrap > libwrap.so.0 => /usr/lib/libwrap.so.0 (0x00319000) > > tcp_wrappers never sees the connection directly. sendmail handles it > from start to end. Thanks for this info. I will set up an iptables rule to block this access.

Re: [CentOS] TCPWrappers + Sendmail = not working

2008-04-24 Thread Ignacio Vazquez-Abrams
On Thu, 2008-04-24 at 15:45 -0500, Sean Carolan wrote: > I have set up entries in /etc/hosts.allow and /etc/hosts.deny as follows: > > /etc/hosts.allow > sendmail : 10.0.0.0/255.0.0.0 > sendmail : LOCAL > > /etc/hosts.deny > sendmail : ALL > > When I try to connect to port 25 from an Internet ho

[CentOS] DNS problem (on NAT configuration)

2008-04-24 Thread Patricia Bittencourt
   Hi,    I'm dealing with a problem that the worker nodes that are behind a NAT aren't able to reach outside from time to time. (ie: on a given moment I can ping an address name and immediately after I cannot: "ping: unknown host").     The NAT was configurated using the following:*nat-A P

Re: [CentOS] Networking help

2008-04-24 Thread Ray Leventhal
Les Mikesell wrote: Chris Mason (Lists) wrote: Ray Leventhal wrote: I'm no expert, but I'd be the HWADDR values in your /etc/sysconfig/ifcfg-ethx files need to be updated to reflect the new MAC addresses of the physical interfaces in the box. Done that. The ifcfg-ethX is referencing the

[CentOS] TCPWrappers + Sendmail = not working

2008-04-24 Thread Sean Carolan
I have set up entries in /etc/hosts.allow and /etc/hosts.deny as follows: /etc/hosts.allow sendmail : 10.0.0.0/255.0.0.0 sendmail : LOCAL /etc/hosts.deny sendmail : ALL When I try to connect to port 25 from an Internet host via telnet, the server still responds as usual. The only difference I s

Re: [CentOS] Networking help

2008-04-24 Thread Les Mikesell
Chris Mason (Lists) wrote: Ray Leventhal wrote: I'm no expert, but I'd be the HWADDR values in your /etc/sysconfig/ifcfg-ethx files need to be updated to reflect the new MAC addresses of the physical interfaces in the box. Done that. The ifcfg-ethX is referencing the right interfaces.

Re: [CentOS] Networking help

2008-04-24 Thread Chris Mason (Lists)
Ray Leventhal wrote: I'm no expert, but I'd be the HWADDR values in your /etc/sysconfig/ifcfg-ethx files need to be updated to reflect the new MAC addresses of the physical interfaces in the box. Done that. The ifcfg-ethX is referencing the right interfaces. -- This message has been scan

[CentOS] package-cleanup fails when cleaning kernels in CentOS 5

2008-04-24 Thread J.J. Garcia
Hija! I get this error while doing the cleanup, hints? Cheers, JJ --- [EMAIL PROTECTED] ~]# package-cleanup --oldkernels --count 2 Setting up yum Loading "priorities" plugin Loading "kernel-module" plugin Loading "protectbase" plugin Load

Re: [CentOS] Networking help

2008-04-24 Thread Ray Leventhal
Chris Mason (Lists) wrote: I have a centos 4.0 box that has three network interfaces and is used as router. It runs shorewall as a two-ISP firewall for a single LAN. This morning, the motherboard's LAN interface gave trouble, spewing out IRQ problems, so I disabled it and changed the network car

Re: [CentOS] Problems with KMail and signatures

2008-04-24 Thread Anne Wilson
On Thursday 24 April 2008 19:51, Robert Spangler wrote: > After more searching I found the problem.  Seems my keymanager got cross > wired and I had to resart it.  Thnx for your help. I once had a similar problem. Since then I've made sure that I have secure copies of my keyrings :-) Restarting

[CentOS] Networking help

2008-04-24 Thread Chris Mason (Lists)
I have a centos 4.0 box that has three network interfaces and is used as router. It runs shorewall as a two-ISP firewall for a single LAN. This morning, the motherboard's LAN interface gave trouble, spewing out IRQ problems, so I disabled it and changed the network cards. As I only had two slots

Re: [CentOS] Slightly OT: Extra icons on desktop

2008-04-24 Thread MHR
On Thu, Apr 24, 2008 at 11:11 AM, Ross S. W. Walker <[EMAIL PROTECTED]> wrote: > > Slightly OT? > > Only way it could be more OT is if this were a Mac OS X or > Windows forum... ;-) > You mean "slightly" isn't a synonym for "way?" :-) > I suggest, forgoing disk labels... > I umounted the dr

Re: [CentOS] Problems with KMail and signatures

2008-04-24 Thread Robert Spangler
On Thursday 24 April 2008 14:07, Anne Wilson wrote: > On Thursday 24 April 2008 18:58:24 Anne Wilson wrote: > > On Thursday 24 April 2008 18:45:40 Robert Spangler wrote: > > > Hello, > > > > > > For some reason KMail is all but coming to a stand still when I open > > > messages with any kind

[CentOS] .htaccess for script aliased directories

2008-04-24 Thread Pam Astor
With the great assistance I got here I was able to get .htaccess to work on a centos 5.1 box running Apache 2.2.3 a few days ago. One other question. I am trying to protect a sub dir within the web space of a domain that is serving site statistics of awstats generated pages. The path to th

RE: [CentOS] Slightly OT: Extra icons on desktop

2008-04-24 Thread Ross S. W. Walker
MHR wrote: > > I'm running FC8 with Gnome 2.20.0 at work and I have this > interesting situation. > > I have two disks on the system that are both configured to be mounted > in /etc/fstab, but I'm seeing two things I believe are strange. > > One is that the second drive is not getting mounted a

Re: [CentOS] Problems with KMail and signatures

2008-04-24 Thread Anne Wilson
On Thursday 24 April 2008 18:58:24 Anne Wilson wrote: > On Thursday 24 April 2008 18:45:40 Robert Spangler wrote: > > Hello, > > > > For some reason KMail is all but coming to a stand still when I open > > messages with any kind of signature. So I goto the configuration page of > > KMail Security

[CentOS] Slightly OT: Extra icons on desktop

2008-04-24 Thread MHR
I'm running FC8 with Gnome 2.20.0 at work and I have this interesting situation. I have two disks on the system that are both configured to be mounted in /etc/fstab, but I'm seeing two things I believe are strange. One is that the second drive is not getting mounted at boot time. The other is th

Re: [CentOS] Problems with KMail and signatures

2008-04-24 Thread Anne Wilson
On Thursday 24 April 2008 18:45:40 Robert Spangler wrote: > Hello, > > For some reason KMail is all but coming to a stand still when I open > messages with any kind of signature. So I goto the configuration page of > KMail Security Crypo Back ends and I see nothing is checked off. So I hit > resc

[CentOS] Problems with KMail and signatures

2008-04-24 Thread Robert Spangler
Hello, For some reason KMail is all but coming to a stand still when I open messages with any kind of signature. So I goto the configuration page of KMail Security Crypo Back ends and I see nothing is checked off. So I hit rescan and get the error that is listed in the attachment. Anyone els

[CentOS] After OSMA 5.4 installed, system reboot hang on "hpoj"

2008-04-24 Thread mcclnx mcc
We have Centos 4.4 on DELL 2650 server. system have been worked well for long time. I just installed OMSA 5.4 on it and reboot the server. while server boot up and it hang in "starting hpoj". Does anyone know how to fix this problem? 生活有問題?問大家,不如找知識+ ,還可抽MacBook Air - 馬上找知識!_

Re: [CentOS] ClamAV version(s)

2008-04-24 Thread Paul Heinlein
On Thu, 24 Apr 2008, Sam Drinkard wrote: I had clamav-milter working as well as clamd, then for some reason clamd stopped and would not create the socket. After much hair pulling, I finally tracked the problem(s) down to /etc/clamd.conf. After enduring failed starts several times, I now just

RE: [CentOS] TCP/IP Port Relay

2008-04-24 Thread Frank M. Ramaekers
As was implied before, both interfaces are connected internally (IntrA-net) and before I try the relay with VPN, I'm testing it on another internal computer (just to eliminate any VPN potential problems). Frank M. Ramaekers Jr. Systems Programmer MCP, MCP+I, MCSE & RHCE America

RE: [CentOS] TCP/IP Port Relay

2008-04-24 Thread Frank M. Ramaekers
Oh, sorryI should have explained. In this initial testing (before getting VPN involved) there is no internal/external only two adapters that are "bonded": bond0 Link encap:Ethernet HWaddr 00:0D:60:19:7A:9A inet addr:10.2.0.99 Bcast:10.2.255.255 Mask:255.255.0.0 ine

Re: [CentOS] TCP/IP Port Relay

2008-04-24 Thread Vahur Jõesalu
well you can't - to the best of my knowledge. And I cannot see the reason for wanting it. The idea of using -i and -o in FORWARD chain is to specify the direction traffic is allowed to go. It could be that firewall is blocking all outgoing traffic. Omitting -i and -o would allow the internal se

Re: [CentOS] TCP/IP Port Relay

2008-04-24 Thread Vahur Jõesalu
to clarify. your rules that you entered were (I am replacing it-304.ailife.com here with 10.1.1.1, and external_interface with eth0, and internal_interface with eth1 - for claritys sake): /sbin/iptables -t nat -I PREROUTING -p tcp --dport 23 -j DNAT \ --to 10.1.9.2:3270 /sbin/iptables -I FORWAR

RE: [CentOS] TCP/IP Port Relay

2008-04-24 Thread Frank M. Ramaekers
There seems to be a problem with it Normal (TN3270 traffic originating from the relay host): 10:44:29.667165 IP doylebrunson.ailife.com.46318 > 10.1.9.2.verismart: S 707994026:707994026(0) win 5840 10:44:29.685075 IP 10.1.9.2.verismart > doylebrunson.ailife.com.46318: S 1665830401:1665830401(0

RE: [CentOS] TCP/IP Port Relay

2008-04-24 Thread Frank M. Ramaekers
Yes, I was thinking along those lines, but I thought I'd ask. THANKS! Frank M. Ramaekers Jr. Systems Programmer MCP, MCP+I, MCSE & RHCE American Income Life Insurance Co. Phone: (254)761-6649 1200 Wooded Acres Dr.Fax: (254)741-5777 Waco, Texas 76710

Re: [CentOS] TCP/IP Port Relay

2008-04-24 Thread James Pifer
On Thu, 2008-04-24 at 17:27 +0300, Vahur Jõesalu wrote: > hmm, if I understood you correctly, then this should work just fine (on > linux firewall): > > /sbin/iptables -t nat -I PREROUTING -p tcp --dport 23 -j DNAT \ > --to telnetserverip:port-number > /sbin/iptables -I FORWARD -i external_interf

Re: [CentOS] TCP/IP Port Relay

2008-04-24 Thread Vahur Jõesalu
hmm, if I understood you correctly, then this should work just fine (on linux firewall): /sbin/iptables -t nat -I PREROUTING -p tcp --dport 23 -j DNAT \ --to telnetserverip:port-number /sbin/iptables -I FORWARD -i external_interface -o internal_interface \ -p tcp -d telnetserverip --dport portn

[CentOS] TCP/IP Port Relay

2008-04-24 Thread Frank M. Ramaekers
What is the best way to temporarily setup a port relay. I'm trying to diagnose a problem with Cisco's latest VPN client and need to determine if the problem is port number related. e.g. VPN client-23-(Linux box to relay port)---xx-(Telnet server) (Keep in mind this is temporary and

Re: [CentOS] ClamAV version(s)

2008-04-24 Thread Barry Brimer
Quoting Sam Drinkard <[EMAIL PROTECTED]>: > I had clamav-milter working as well as clamd, then for some reason clamd > stopped and would not create the socket. After much hair pulling, I > finally tracked the problem(s) down to /etc/clamd.conf. After > commenting all the stuff out that was provi

[CentOS] ClamAV version(s)

2008-04-24 Thread Sam Drinkard
I had clamav-milter working as well as clamd, then for some reason clamd stopped and would not create the socket. After much hair pulling, I finally tracked the problem(s) down to /etc/clamd.conf. After commenting all the stuff out that was providing errors, it is now working again. I had so

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

2008-04-24 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] Re: Kickstart network settings problem -SOLVED

2008-04-24 Thread Plant, Dean
Tony Mountifield wrote: > In article > <[EMAIL PROTECTED]>, > Plant, Dean <[EMAIL PROTECTED]> wrote: >> >> If like me you have never had to mess with the stage2.img file to fix >> installations issues, below shows what is required. >> >> cd ~ >> wget http://yourwebserver/centos5-dvd/images/stage

Re: [CentOS] tomcat5 - RHEL4.5 - CentOS 4.5

2008-04-24 Thread Tom Brown
WARNING: unable to set your JAVA_HOME. This may cause problems for any java applications you run --- I am : tomcat on hostname JAVA_HOME : /usr/jdk1.3.1_08 Any ideas why this is and where that JAVA_HO

[CentOS] Re: Kickstart network settings problem -SOLVED

2008-04-24 Thread Tony Mountifield
In article <[EMAIL PROTECTED]>, Plant, Dean <[EMAIL PROTECTED]> wrote: > > If like me you have never had to mess with the stage2.img file to fix > installations issues, below shows what is required. > > cd ~ > wget http://yourwebserver/centos5-dvd/images/stage2.img > mkdir tmp > mount -t squashfs

[CentOS] tomcat5 - RHEL4.5 - CentOS 4.5

2008-04-24 Thread Tom Brown
Hi I am seeing this issue on a RHEL4 box but i presume that the same will be for CentOS4.5 I am trying to get tomcat5 up and running using only upstream rpm's, as opposed to own rolled like i have done before, and hitting this issue. I have JAVA_HOME set in /etc/tomcat5/tomcat5.conf and als

RE: [CentOS] Kickstart network settings problem -SOLVED

2008-04-24 Thread Plant, Dean
Ray Van Dolson wrote: > On Tue, Apr 22, 2008 at 12:47:39PM +0100, Plant, Dean wrote: >> I would like one of my kickstart scripts to prompt for disk and >> networking only. Commenting out the disk and network settings makes >> the installer prompt for disk settings but not for network settings, >> t