Re: [CentOS] Chicken and egg question: passwd and cronjob

2011-06-22 Thread KevinO
On 06/22/2011 11:46 PM, Fajar Priyanto wrote:
> I mean at second 1 on the 90th day, which will run first?
> - The cronjob to renew the password
> - Or the password expiration, thus preventing the cronjob from running.
> 
just setup the password renewing job to run one minute earlier

or

don't expire the root passwd

-- 
KevinO
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] Chicken and egg question: passwd and cronjob

2011-06-22 Thread Fajar Priyanto
Hi all,
Let's say I activate password expiration for every account (including
root) for every 90 days.
I understand that cronjob for root will fail when the password expires.

The question is, if I setup a cronjob every 90 days to renew the root
password like: echo diFficulT123 | passwd --stdin root
will it work?

I mean at second 1 on the 90th day, which will run first?
- The cronjob to renew the password
- Or the password expiration, thus preventing the cronjob from running.

Pardon me if it's silly.
I know it's bad to change password from script, but the root acc is
not used at all and has been disabled from logon remotely.
I just need it to keep various cronjob to keep running. Any other
advise are welcome.
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] OT: DHCP address pool for specific MAC manufacturer

2011-06-22 Thread Raymond Lillard
Dear CentOS,

This is somewhat off-topic, but I do hope to implement this on
a CentOS system, so here goes...

I would like to be able to setup a dhcpd (or like) daemon to
maintain two IP address pools.  One for devices whose leading
three octets of the client MAC address are specified and the
other for all other clients.  Both pools would be a defined
range on a commmon /24 subnet. There a several static IP
devices also on this net (servers, printer, etc...).  At no
time would there be more than a dozen of the specified MAC
range devices active.

I considered splitting the /24 block into two /25 blocks and
creating a shared-network with two subnets, but that still
leaves no way to wild-card the lower 3 octets, which I cannot
know in advance.

In addition to DHCP, I've looked at DNSmasq and a few others
but no joy.  I don't see a solution that doesn't require a
significant development effort.

I'm off to think about possible doing this in perl.  I still
hope someone has already done this.

Thanks,
Ray


___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Year in log files

2011-06-22 Thread Giovanni Tirloni
On Wed, Jun 22, 2011 at 11:06 PM, Fajar Priyanto wrote:

> Hi,
> Can we display year in log files timestamp?
> We are being audited and the auditor wants to know when we apply
> certain patches.
> yum.log shows it, but it doesn't have the year.
> I can argue based on common sense, but it would be much nicer if the
> year is there.
>
>
> Example:
> Apr 12 11:41:25 Updated: krb5-libs-1.6.1-55.el5_6.1.i386
> Apr 12 11:41:27 Updated: openssl-0.9.8e-12.el5_5.7.i686
>

If you're using rsyslog, check this out:
http://www.rsyslog.com/doc/property_replacer.html

-- 
Giovanni Tirloni
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Year in log files

2011-06-22 Thread Fajar Priyanto
On Thu, Jun 23, 2011 at 10:18 AM, lists-centos
 wrote:
> You should set that log to rotate annually. That should address your
> issue, in addition to keeping logwatch from picking up year-old
> entries.

Yes it's rotated annually.
That's why I can argue based on common sense, by comparing the CESA
date and the occurance in the log file.
But if there is year, I don't have to argue at all with the auditor.
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] Year in log files

2011-06-22 Thread Fajar Priyanto
Hi,
Can we display year in log files timestamp?
We are being audited and the auditor wants to know when we apply
certain patches.
yum.log shows it, but it doesn't have the year.
I can argue based on common sense, but it would be much nicer if the
year is there.


Example:
Apr 12 11:41:25 Updated: krb5-libs-1.6.1-55.el5_6.1.i386
Apr 12 11:41:27 Updated: openssl-0.9.8e-12.el5_5.7.i686
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] inconsistent DNS results - ping vs dig vs nslookup

2011-06-22 Thread Devin Reade
--On Wednesday, June 22, 2011 03:30:18 PM -0500 Robert Henrichs
 wrote:

> root@pbx:~ $ cat /etc/resolv.conf
> search isp.com
>nameserver 8.8.4.4
>nameserver 216.146.36.36
>nameserver 8.8.8.8

Get rid of the leading whitespace if it actually exists in that file.
It shouldn't make a difference, but who knows.

BTW, you don't need to reboot.

> root@pbx:~ $ ping www.yahoo.com
> ping: unknown host www.yahoo.com

Try a trailing dot on the FQDN and see if it makes a difference.
It shouldn't with ping, but should always be used with dig:

   ping www.yahoo.com.

The trailing dot changes the lookup algorithm a bit.

You could also do a
RES_OPTIONS="debug"
export RES_OPTIONS
ping www.yahoo.com.
to try to figure things out.

Devin

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Firefox 5 on Centos 5.6

2011-06-22 Thread grace rante
I'm able to run firefox5_x64 on my Centos 5.6 system.

* Download libstdc++-4.3.0-8.x86_64.rpm to /tmp

* cd /tmp ; cpio -idv  libstdc++-4.3.0-8.x86_64.rpm | cpio -i
--make-directories

Copy contents of unpacked libraries:
* cp /tmp/usr/lib64/libstdc++.so.6* /path/to/firefox5_x64/

Run firefox
* /path/to/firefox5_x64/firefox







On Tue, Jun 21, 2011 at 4:18 PM, Ljubomir Ljubojevic  wrote:
> fred smith wrote:
>> On Wed, Jun 22, 2011 at 12:46:09AM +0200, Ljubomir Ljubojevic wrote:
>>> fred smith wrote:
 I've been running Firefox 4 on Centos 5 (had to find a libstdc++.so.6 for
 it by perusing newer systems from which I could steal one, but it's been
 fine since then).

 Well, today firefox pushed down an update to Firefox 4.0.1 without saying
 what it was, and it turns out to have been firefox 5. fine, I wanted it
 anyway.

 But when I restarted it, I got a completely black browser window. Clicked
 on the X close button and got a completely black confirmation dialog.
 weird.

 exited it and tried safe mode. Works fine.

 ldd reports no conflicts or missing libraries.

 anybody else seen this? anyone got suggestions on what I should try next?

 Thanks!

>>> My guess is that you compiled from source, and that is not something
>>> (vast majority of) CentOS users do, so I would not hold my breath that
>>> anyone uses Firefox 4 on CentOS 5.x.
>>>
>>> Just return to 4.0 and you should be fine, I guess.
>>
>> Actually, no. it's the binaries from mozilla.org, though. firefox 4
>> did the update itself, again using the mozilla.org binaries.
>
> libstdc++.so.6 is a part of gcc libraries. I would like to have Firefox
> 4/5, but not at the cost of messing with the core part of my system.
>
> Ljubomir
> ___
> CentOS mailing list
> CentOS@centos.org
> http://lists.centos.org/mailman/listinfo/centos
>
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] inconsistent DNS results - ping vs dig vs nslookup

2011-06-22 Thread Ljubomir Ljubojevic
Ljubomir Ljubojevic wrote:
> Robert Henrichs wrote:
>> root@pbx:~ $ cat /etc/resolv.conf
>> search isp.com
>>nameserver 8.8.4.4
>>nameserver 216.146.36.36
>>nameserver 8.8.8.8
> Whats with the "search isp.com"? Try removing that and try again. Try 
> first without rebooting.
> 
> I am looking what it actually does. I do not have it on my systems.
> 
> Ljubomir
As Les wrote in another branch of the thread, search clause is if you 
try name without a domain.

Anyway, try removing it, but first try using ONLY 8.8.8.8 and 8.8.4.4, 
remove 216.146.36.36 and then test.

Ljubomir
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] inconsistent DNS results - ping vs dig vs nslookup

2011-06-22 Thread Ljubomir Ljubojevic
Robert Henrichs wrote:
> 
> root@pbx:~ $ cat /etc/resolv.conf
> search isp.com
>nameserver 8.8.4.4
>nameserver 216.146.36.36
>nameserver 8.8.8.8
Whats with the "search isp.com"? Try removing that and try again. Try 
first without rebooting.

I am looking what it actually does. I do not have it on my systems.

Ljubomir
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] inconsistent DNS results - ping vs dig vs nslookup

2011-06-22 Thread Les Mikesell
On 6/22/2011 3:30 PM, Robert Henrichs wrote:
>
>
> what's a good link to read about how the resolv.conf file is
> constructed?  esp. the "search" entry?

The 'search' should only apply if you don't supply the domain portion of 
the name.  Each nameserver address should be queried until one responds.

> ***
> My nsswitch.conf file does contain:
>hosts:  files dns
> (this is an interesting file I'll have to revisit...thanks).

The part that doesn't make sense yet is that your dns is working as 
shown by the dig/nslookup queries, but ping/wget are failing to look up 
the name.  You might get random success/failure if some of the 
nameservers in resolv.conf are misconfigured.  Seems like a long shot 
but try:
dig @server_address www.henrichs.org
for each of the namesever addresses, then maybe
strace ping www.henrichs.org
and wade through the output to see if it has trouble loading the 
resolver library or something.

-- 
   Les Mikesell
lesmikes...@gmail.com


___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Using umask

2011-06-22 Thread Todd Cary
Many thanks to you and DrewI am the only user...

Todd

On 6/21/2011 11:05 PM, Anthony wrote:
> On 06/22/2011 01:22 AM, Todd Cary wrote:
>> Grasping a full understanding of setting default Users, Groups
>> and Masks has alluded me over the years, but now I find myself in
>> a situation where manually "setting" the file/directory
>> attributes is becoming a pain.
>>
>> I understand the fundamentals of the file attributes, though from
>> time to time I have to review the "sticky bit"; what I do not
>> understand is where/how the attributes are set when a user
>> creates or modifies a file/directory.  Here is my situation:
>>
>> My /var/www/html files have been manually set by me to
>> apache/apache 774.  This allows my PHP applications to access the
>> files, and I assume this is a "good" setting.
> In your smb.conf file, add the following to the [sharename] section:
>
> force user = apache
> force create mode = 0774
>
> This should ensure that all files you dump in via samba are always owned
> by apache with the proper permissions.  I do this on servers that never
> see the internet.  If this is insecure, please enlighten me as said
> servers may one day be made visible to the outside world...
>
> Ak.
> ___
> CentOS mailing list
> CentOS@centos.org
> http://lists.centos.org/mailman/listinfo/centos
>
>

-- 
Ariste Software
Petaluma, CA 94952

http://www.aristesoftware.com

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] inconsistent DNS results - ping vs dig vs nslookup

2011-06-22 Thread Ryan Ivey
>   what's a good link to read about how the resolv.conf file is
> constructed?  esp. the "search" entry?
>


man resolv.conf



>
> ***
> This was part of the wget response:
> www.henrichs.orgcanonical name = ehost-services119.com.
> Name:   ehost-services119.com
> Address: 69.64.155.165
>
> Doesn't the "address: Address: 69.64.155.165" indicate a correct result?
>
>

That's the response from nslookup, not wget.


How is this server connected to the Internet?  Sounds like something is
blocking domain port 53.
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Firefox 5 on Centos 5.6

2011-06-22 Thread Mike Hanby
sorry

mv ~/.mozilla ~/.mozilla.orig


> -Original Message-
> From: centos-boun...@centos.org [mailto:centos-boun...@centos.org] On
> Behalf Of Mike Hanby
> Sent: Wednesday, June 22, 2011 3:37 PM
> To: CentOS mailing list
> Subject: Re: [CentOS] Firefox 5 on Centos 5.6
> 
> What if you try:
> 
> mv ~/.mozilla
> 
> start firefox5 and see if it works, if it does, then restore your
> .mozilla and figure what the offending extension / plugin is.
> 
> Mike
> 
> > -Original Message-
> > From: centos-boun...@centos.org [mailto:centos-boun...@centos.org] On
> > Behalf Of Ljubomir Ljubojevic
> > Sent: Wednesday, June 22, 2011 3:35 AM
> > To: CentOS mailing list
> > Subject: Re: [CentOS] Firefox 5 on Centos 5.6
> >
> > James A. Peltier wrote:
> > >
> > > There is the libsdc++-4.1.2-50.el5 package and the gcc44 packages,
> > both can be installed without messing with the core system
> > >
> > >
> > Yes there is, but it does not provide (GLIBCXX_3.4.9), only up to
> > (GLIBCXX_3.4.8). Closest (GLIBCXX_3.4.9) is for Fedora 10, little to
> > far
> > for my taste.
> >
> >
> http://rpm.pbone.net/index.php3/stat/4/idpl/15703005/dir/centos_5/com/l
> > ibstdc++-4.1.2-50.el5.x86_64.rpm.html
> >
> > Ljubomir
> > ___
> > CentOS mailing list
> > CentOS@centos.org
> > http://lists.centos.org/mailman/listinfo/centos
> ___
> CentOS mailing list
> CentOS@centos.org
> http://lists.centos.org/mailman/listinfo/centos
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Firefox 5 on Centos 5.6

2011-06-22 Thread Mike Hanby
What if you try:

mv ~/.mozilla

start firefox5 and see if it works, if it does, then restore your .mozilla and 
figure what the offending extension / plugin is.

Mike

> -Original Message-
> From: centos-boun...@centos.org [mailto:centos-boun...@centos.org] On
> Behalf Of Ljubomir Ljubojevic
> Sent: Wednesday, June 22, 2011 3:35 AM
> To: CentOS mailing list
> Subject: Re: [CentOS] Firefox 5 on Centos 5.6
> 
> James A. Peltier wrote:
> >
> > There is the libsdc++-4.1.2-50.el5 package and the gcc44 packages,
> both can be installed without messing with the core system
> >
> >
> Yes there is, but it does not provide (GLIBCXX_3.4.9), only up to
> (GLIBCXX_3.4.8). Closest (GLIBCXX_3.4.9) is for Fedora 10, little to
> far
> for my taste.
> 
> http://rpm.pbone.net/index.php3/stat/4/idpl/15703005/dir/centos_5/com/l
> ibstdc++-4.1.2-50.el5.x86_64.rpm.html
> 
> Ljubomir
> ___
> CentOS mailing list
> CentOS@centos.org
> http://lists.centos.org/mailman/listinfo/centos
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] inconsistent DNS results - ping vs dig vs nslookup

2011-06-22 Thread Robert Henrichs

Thanks All,

   Answering multiple questions:

***
I started off with Google's DNS servers-  8.8.8.8 and 8.8.4.4 with 
the same results.  The current set were copied off other working 
wkstas on the LAN .   Same type results with "ping www.yahoo.com" and 
"ping www.yahoo.com".   Just changed it to:   (1) 8.8.4.4   (2) 
216.146.36.36   (3) 8.8.8.8

Rebooted the box, then . . .

root@pbx:~ $ cat /etc/resolv.conf
search isp.com
   nameserver 8.8.4.4
   nameserver 216.146.36.36
   nameserver 8.8.8.8
root@pbx:~ $ ping www.henrichs.org
ping: unknown host www.henrichs.org
root@pbx:~ $ ping www.yahoo.com
ping: unknown host www.yahoo.com
root@pbx:~ $ ping yahoo.com
ping: unknown host yahoo.com
root@pbx:~ $ ping microsoft.com
ping: unknown host microsoft.com
root@pbx:~ $ ping lilug.org
ping: unknown host lilug.org
root@pbx:~ $ ping centos.org
ping: unknown host centos.org
root@pbx:~ $

   what's a good link to read about how the resolv.conf file is 
constructed?  esp. the "search" entry?

***
This was part of the wget response:
www.henrichs.orgcanonical name = ehost-services119.com.
Name:   ehost-services119.com
Address: 69.64.155.165

Doesn't the "address: Address: 69.64.155.165" indicate a correct result?

***
My nsswitch.conf file does contain:
  hosts:  files dns
(this is an interesting file I'll have to revisit...thanks).

***

It was suggested off-list that I show "the contents of 
/etc/resolv.conf and a little history on your ifcfg-ethx files in
/etc/sysconfig/network-scripts/"

 Here is /etc/resolv.conf:
root@pbx:/etc/sysconfig/network-scripts $ cat /etc/resolv.conf
search isp.com
   nameserver 216.146.35.35
   nameserver 216.146.36.36
   nameserver 8.8.8.8
root@pbx:/etc/sysconfig/network-scripts $

 Here are the files in my /etc/sysconfig/network-scripts directory:
root@pbx:/etc/sysconfig/network-scripts $ ls
ifcfg-eth0   ifdown-ippp   ifdown-ppp ifup  ifup-ib 
ifup-isdn   ifup-routesinit.ipv6-global
ifcfg-lo ifdown-ipsec  ifdown-routes  ifup-aliases  ifup-ippp 
ifup-plip   ifup-sit   net.hotplug
ifdown   ifdown-ipv6   ifdown-sit ifup-bnep ifup-ipsec 
ifup-plusb  ifup-slnetwork-functions
ifdown-bnep  ifdown-isdn   ifdown-sl  ifup-eth  ifup-ipv6 
ifup-post   ifup-tunnelnetwork-functions-ipv6
ifdown-eth   ifdown-post   ifdown-tunnel  ifup-hdlc ifup-ipx 
ifup-pppifup-wireless
root@pbx:/etc/sysconfig/network-scripts $

Here is the contents of the ifcfg-eth0 file:
root@pbx:/etc/sysconfig/network-scripts $ cat ifcfg-eth0
# Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+
DEVICE=eth0
TYPE=ethernet
BOOTPROTO=none
BROADCAST=192.168.70.255
IPADDR=192.168.70.40
NETMASK=255.255.255.0
GATEWAY=192.168.70.2
HWADDR=00:1D:7D:26:31:D0
ONBOOT=yes
DHCP_HOSTNAME=pbx.local
root@pbx:/etc/sysconfig/network-scripts $



Robert Henrichs.






At 12:42 PM 6/22/2011, you wrote:
>robert henrichs wrote:
> > I am getting what I believe to be inconsistent replies/results from
> > my CentOs machine, trying to ping URLs.  Pinging by URL fails the DNS
> > lookup, while pinging the IP address (that should have been returned)
> > works.  The DNS lookup also fails NSLOOKUP, but interestingly, dig
> > and wget return A records with the correct IP.
> >
> > Robert Henrichs.
> >
>wget has *not* returned correct IP! Only nslookup and dig.
>
>First try to use only google DNS servers: 8.8.8.8 and 8.8.4.4, and if
>that does not help, and your only problem is with only that domain, you
>will have to contact support where domain is parked, and see is that helps.
>
>Only relevant info is in resolve.conf, there is no need to look at
>network configuration if you can ping IP's.
>
>Ljubomir
>___
>CentOS mailing list
>CentOS@centos.org
>http://lists.centos.org/mailman/listinfo/centos

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] inconsistent DNS results - ping vs dig vs nslookup

2011-06-22 Thread Ljubomir Ljubojevic
robert henrichs wrote:
> I am getting what I believe to be inconsistent replies/results from 
> my CentOs machine, trying to ping URLs.  Pinging by URL fails the DNS 
> lookup, while pinging the IP address (that should have been returned) 
> works.  The DNS lookup also fails NSLOOKUP, but interestingly, dig 
> and wget return A records with the correct IP.
> 
> Robert Henrichs.
> 
wget has *not* returned correct IP! Only nslookup and dig.

First try to use only google DNS servers: 8.8.8.8 and 8.8.4.4, and if 
that does not help, and your only problem is with only that domain, you 
will have to contact support where domain is parked, and see is that helps.

Only relevant info is in resolve.conf, there is no need to look at 
network configuration if you can ping IP's.

Ljubomir
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] inconsistent DNS results - ping vs dig vs nslookup

2011-06-22 Thread Owen Beckley
> -Original Message-
> Behalf Of robert henrichs
> Subject: [CentOS] inconsistent DNS results - ping vs dig vs nslookup
> 
> I am getting what I believe to be inconsistent replies/results from
> my CentOs machine, trying to ping URLs.  Pinging by URL fails the DNS
> lookup, while pinging the IP address (that should have been returned)
> works.  The DNS lookup also fails NSLOOKUP, but interestingly, dig
> and wget return A records with the correct IP.
> 

What does your "hosts:" entry in /etc/nsswitch.conf look like? Does is
list dns as a source?

Mine looks like this:

hosts:  files dns

--
Owen Beckley



___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] inconsistent DNS results - ping vs dig vs nslookup

2011-06-22 Thread robert henrichs
I am getting what I believe to be inconsistent replies/results from 
my CentOs machine, trying to ping URLs.  Pinging by URL fails the DNS 
lookup, while pinging the IP address (that should have been returned) 
works.  The DNS lookup also fails NSLOOKUP, but interestingly, dig 
and wget return A records with the correct IP.

Robert Henrichs.

 -  =  -  =  --  =  -  =  --  =  -  =  - 
   -  =  -  =  -

(INFO/examples:)


cat /etc/sysconfig/network-scripts/ifcfg-eth0
cat /etc/resolv.conf


PBX in a Flash PURPLE Daemon Status - Version 1.8.1  Released on 041211
System Information
   Asterisk   = ONLINE  | Dahdi = ONLINE  | MySQL = ONLINE
   SSH= ONLINE  | Apache= ONLINE  | Iptables  = ONLINE
   Fail2ban   = ONLINE  | Internet  = OFFLINE | Ip6Tables = ONLINE
   BlueTooth  = ONLINE  | Hidd  = ONLINE  | NTPD  = ONLINE
   SendMail   = ONLINE  | Samba = OFFLINE | Webmin= ONLINE
   Ethernet0  = ONLINE  | Ethernet1 = N/A | Wlan0 = N/A

   PBX in a Flash Version   = 1.7.5.6
   FreePBX Version  = 2.8.1.4
   Running Asterisk Version = 1.8.3.3
   Asterisk Source Version  = 1.8.3.3
   Dahdi Source Version = 2.4.1.2+2.4.1
   Libpri Source Version= 1.4.11.5
   IP Address   = 192.168.70.40 on eth0
   Operating System = CentOS release 5.6 (Final)
   Kernel Version   = 2.6.18-238.9.1.el5 - 32 Bit



root@pbx:/etc/sysconfig/network-scripts $ cat ifcfg-eth0
# Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+
DEVICE=eth0
TYPE=ethernet
BOOTPROTO=none
BROADCAST=192.168.70.255
IPADDR=192.168.70.40
NETMASK=255.255.255.0
GATEWAY=192.168.70.2
HWADDR=00:1D:7D:26:31:D0
ONBOOT=yes
DHCP_HOSTNAME=pbx.local

root@pbx:/etc/sysconfig/network-scripts $



root@pbx:/etc $ cat resolv.conf
search isp.com
   nameserver 216.146.35.35
   nameserver 216.146.36.36
   nameserver 8.8.8.8


root@pbx:/etc $ ping www.henrichs.org
ping: unknown host www.henrichs.org


root@pbx:/etc $ ping 69.64.155.165
PING 69.64.155.165 (69.64.155.165) 56(84) bytes of data.
64 bytes from 69.64.155.165: icmp_seq=1 ttl=238 time=92.9 ms
64 bytes from 69.64.155.165: icmp_seq=2 ttl=238 time=89.1 ms
64 bytes from 69.64.155.165: icmp_seq=3 ttl=238 time=89.1 ms
64 bytes from 69.64.155.165: icmp_seq=4 ttl=238 time=89.7 ms
64 bytes from 69.64.155.165: icmp_seq=5 ttl=238 time=88.3 ms
64 bytes from 69.64.155.165: icmp_seq=6 ttl=238 time=90.6 ms

--- 69.64.155.165 ping statistics ---
6 packets transmitted, 6 received, 0% packet loss, time 5002ms
rtt min/avg/max/mdev = 88.398/90.013/92.994/1.514 ms


root@pbx:/etc $ tracert www.henrichs.org
www.henrichs.org: Temporary failure in name resolution
Cannot handle "host" cmdline arg `www.henrichs.org' on position 1 (argc 1)


root@pbx:/etc $ dig www.henrichs.org

; <<>> DiG 9.3.6-P1-RedHat-9.3.6-16.P1.el5 <<>> www.henrichs.org
;; global options:  printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 48631
;; flags: qr rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 5, ADDITIONAL: 0

;; QUESTION SECTION:
;www.henrichs.org.  IN  A

;; ANSWER SECTION:
www.henrichs.org.   3566IN  CNAME   ehost-services119.com.
ehost-services119.com.  3565IN  A   69.64.155.165

;; AUTHORITY SECTION:
ehost-services119.com.  3565IN  NS  dns1.name-services.com.
ehost-services119.com.  3565IN  NS  dns2.name-services.com.
ehost-services119.com.  3565IN  NS  dns3.name-services.com.
ehost-services119.com.  3565IN  NS  dns4.name-services.com.
ehost-services119.com.  3565IN  NS  dns5.name-services.com.

;; Query time: 18 msec
;; SERVER: 216.146.35.35#53(216.146.35.35)
;; WHEN: Wed Jun 22 12:17:53 2011
;; MSG SIZE  rcvd: 194


root@pbx:/etc $ wget www.henrichs.org
--2011-06-22 12:18:38--  http://www.henrichs.org/
Resolving www.henrichs.org... failed: Temporary failure in name resolution.
wget: unable to resolve host address `www.henrichs.org'
root@pbx:/etc $ nslookup www.henrichs.org
Server: 216.146.35.35
Address:216.146.35.35#53

Non-authoritative answer:
www.henrichs.orgcanonical name = ehost-services119.com.
Name:   ehost-services119.com
Address: 69.64.155.165


root@pbx:/etc $ route
Kernel IP routing table
Destination Gateway Genmask Flags Metric RefUse Iface
192.168.70.0*   255.255.255.0   U 0  00 eth0
169.254.0.0 *   255.255.0.0 U 0  00 eth0
default 192.168.70.20.0.0.0 UG0  00 eth0
root@pbx:/etc $


___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] CUPS not rendering documents via Samba

2011-06-22 Thread Kevin Thorpe
On Wed, Jun 22, 2011 at 5:41 PM,   wrote:
> Kevin Thorpe wrote:
 Hi guys, any CUPS / Samba experts out there?
>>
>> Bah! I saw that lpr could print PS but smbclient coudn't so in desperation
>> I restarted samba. Now it prints PS. Why is completely beyond me.
>> That's why I couldn't work out what I'd done wrong - I hadn't.
>>
> Following up my last post, I just looked at the smbd manpage - this may be
> of interest, from the very *bottom* of the manpage:
>
> 
> SIGNALS
>
>   Sending the smbd a SIGHUP will cause it to reload its smb.conf configu-
>   ration file within a short period of time.

Yup, I tried SIGHUP. That didn't fix it but restart did - I guess Samba is a
bit too much like windows ;-)


-- 
Kevin Thorpe
Head of IT
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] CUPS not rendering documents via Samba

2011-06-22 Thread m . roth
Kevin Thorpe wrote:
>>> Hi guys, any CUPS / Samba experts out there?
>
> Bah! I saw that lpr could print PS but smbclient coudn't so in desperation
> I restarted samba. Now it prints PS. Why is completely beyond me.
> That's why I couldn't work out what I'd done wrong - I hadn't.
>
Following up my last post, I just looked at the smbd manpage - this may be
of interest, from the very *bottom* of the manpage:


SIGNALS

   Sending the smbd a SIGHUP will cause it to reload its smb.conf configu-
   ration file within a short period of time.


mark

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] CUPS not rendering documents via Samba

2011-06-22 Thread m . roth
Kevin Thorpe wrote:
>>> Hi guys, any CUPS / Samba experts out there?
>
> Bah! I saw that lpr could print PS but smbclient coudn't so in desperation
> I restarted samba. Now it prints PS. Why is completely beyond me.
> That's why I couldn't work out what I'd done wrong - I hadn't.
>
Did you fix cups, and not restart samba? If so, I'll be the info was
cached, and had to be reread to know what to do.

mark

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] CUPS not rendering documents via Samba

2011-06-22 Thread Robert Heller
At Wed, 22 Jun 2011 16:22:57 +0100 CentOS mailing list  
wrote:

> 
> >>> On Wed, 22 Jun 2011 15:16:54 +0100
> >>> Kevin Thorpe  wrote:
> >>>
>  Hi guys, any CUPS / Samba experts out there?
> 
> >>> In CUPS https://localhost:631/ setup your printers and set the printer
> >>> driver for each printer to local raw printer
> 
> > And you say that, using localhost:631, you did add printer, then selected
> > make and model, and chose one of the drivers, and it still doesn't do the
> > right thing?
> 
> That sets the printer up just fine in Linux. I can print to that fine
> with Open Office.
> The problem I have is that a generic PS driver in Windows to the SMB printer
> outputs the raw PS script instead of rendering which is odd because the
> CUPS test page is a postscript file.

Look *closely* at your smb.conf file.  I'll bet it has something like
this:

# Cups Options let you pass the cups libs custom options, setting it to
raw
# for example will let you use drivers on your Windows clients
#
# Printcap Name let you specify an alternative printcap file
#
# You can choose a non default printing system using the Printing option

load printers = yes
cups options = raw

;   printcap name = /etc/printcap
#obtain list of printers automatically on SystemV
printcap name = cups
show add printer wizard = no
printing = cups

Note the line 'cups options = raw'.  This means that when you add a
printer via NETBIOS (adding a network printer from the Network
Neighborhood) and send a printout, it gets sent *directly* to the
printer and DOES NOT go through the CUPS (foomatic) filter.  This means
that the MS-Windows machine must have the MS-Windows printer driver for
the printer installed and must be using this driver.

For a *real* PostScript printer (eg almost all *Laser* printers
(typically all but bargin basement types)), picking the 'generic'
PostScript driver will work just fine (I have no real idea *why*
MS-Windows thinks you need to have umpteen *different* PostScript
drivers, one for each model of PostScript printer).

MS-Windows *supposedly* supports the ipp protocol.  If you manage to get
the MS-Windows box to use *that* protocol for the network printer, (eg
ipp://IP-address:631/...), then you *should* be able to use the
'generic' PostScript, even if the printer is your basic (cheap) inkjet
printer using the CUPS foomagic (Ghostscript) driver/filter.

> 

-- 
Robert Heller -- 978-544-6933 / hel...@deepsoft.com
Deepwoods Software-- http://www.deepsoft.com/
()  ascii ribbon campaign -- against html e-mail
/\  www.asciiribbon.org   -- against proprietary attachments


 
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] CUPS not rendering documents via Samba

2011-06-22 Thread Kevin Thorpe
>> Hi guys, any CUPS / Samba experts out there?

Bah! I saw that lpr could print PS but smbclient coudn't so in desperation
I restarted samba. Now it prints PS. Why is completely beyond me.
That's why I couldn't work out what I'd done wrong - I hadn't.

-- 
Kevin Thorpe
Head of IT
PI Benchmark
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] CUPS not rendering documents via Samba

2011-06-22 Thread Kevin Thorpe
> In CUPS https://localhost:631/ setup your printers and set the printer
> driver for each printer to local raw printer
>>
>>> And you say that, using localhost:631, you did add printer, then
>>> selected make and model, and chose one of the drivers, and it still
>>> doesn't do the right thing?
>>
>> That sets the printer up just fine in Linux. I can print to that fine
>> with Open Office. The problem I have is that a generic PS driver in
>> Windows to the SMB printer outputs the raw PS script instead of rendering
>> which is odd because the CUPS test page is a postscript file.
>
> Hmmm... maybe we're looking at this the wrong way: what is the setup on
> the *Windows* side - what driver does that use?

I put together the cups PS driver (cupsps6.dll et.al.) and the postscript driver
from HP laserjet PS (pscript5.dll et.al.) as described in the CUPS HOWTO
then used cupsaddsmb to make it available to the workstations. This driver
installs automatically just fine when I connect to the printer share and
quite correctly produces a postscript file - unfortunately samba+CUPS
don't recognise the need to render it. I haven't got cups options = raw in
my smb.conf so it shouldn't bypass the CUPS filtering (I don't think)

-- 
Kevin Thorpe
Head of IT
PI Benchmark
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] CUPS not rendering documents via Samba

2011-06-22 Thread m . roth
Kevin Thorpe wrote:
 On Wed, 22 Jun 2011 15:16:54 +0100
 Kevin Thorpe  wrote:

> Hi guys, any CUPS / Samba experts out there?
>
 In CUPS https://localhost:631/ setup your printers and set the printer
 driver for each printer to local raw printer
>
>> And you say that, using localhost:631, you did add printer, then
>> selected make and model, and chose one of the drivers, and it still
>> doesn't do the right thing?
>
> That sets the printer up just fine in Linux. I can print to that fine
> with Open Office. The problem I have is that a generic PS driver in
> Windows to the SMB printer outputs the raw PS script instead of rendering
> which is odd because the CUPS test page is a postscript file.

Hmmm... maybe we're looking at this the wrong way: what is the setup on
the *Windows* side - what driver does that use?

mark

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] CUPS not rendering documents via Samba

2011-06-22 Thread Kevin Thorpe
>>> On Wed, 22 Jun 2011 15:16:54 +0100
>>> Kevin Thorpe  wrote:
>>>
 Hi guys, any CUPS / Samba experts out there?

>>> In CUPS https://localhost:631/ setup your printers and set the printer
>>> driver for each printer to local raw printer

> And you say that, using localhost:631, you did add printer, then selected
> make and model, and chose one of the drivers, and it still doesn't do the
> right thing?

That sets the printer up just fine in Linux. I can print to that fine
with Open Office.
The problem I have is that a generic PS driver in Windows to the SMB printer
outputs the raw PS script instead of rendering which is odd because the
CUPS test page is a postscript file.

-- 
Kevin Thorpe
Head of IT
PI Benchmark
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] CUPS not rendering documents via Samba

2011-06-22 Thread m . roth
Kevin Thorpe wrote:
> On Wed, Jun 22, 2011 at 4:02 PM, Benjamin Hackl 
> wrote:
>> Dear Kevin,
>>
>> On Wed, 22 Jun 2011 15:16:54 +0100
>> Kevin Thorpe  wrote:
>>
>>> Hi guys, any CUPS / Samba experts out there?
>
>> you have to do the following:
>>
>> In CUPS https://localhost:631/ setup your printers and set the printer
>> driver for each printer to local raw printer
>
> Actually that's the opposite of what I want. I want to use the generic
> postscript driver in Windows and get the server to RIP for me.

And you say that, using localhost:631, you did add printer, then selected
make and model, and chose one of the drivers, and it still doesn't do the
right thing?

   mark

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] CUPS not rendering documents via Samba

2011-06-22 Thread Kevin Thorpe
On Wed, Jun 22, 2011 at 4:02 PM, Benjamin Hackl  wrote:
> Dear Kevin,
>
> On Wed, 22 Jun 2011 15:16:54 +0100
> Kevin Thorpe  wrote:
>
>> Hi guys, any CUPS / Samba experts out there?

> you have to do the following:
>
> In CUPS https://localhost:631/ setup your printers and set the printer
> driver for each printer to local raw printer

Actually that's the opposite of what I want. I want to use the generic
postscript
driver in Windows and get the server to RIP for me.


-- 
Kevin Thorpe
Head of IT
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] CUPS not rendering documents via Samba

2011-06-22 Thread Benjamin Hackl
Dear Kevin,

On Wed, 22 Jun 2011 15:16:54 +0100
Kevin Thorpe  wrote:

> Hi guys, any CUPS / Samba experts out there?
> 
> The CUPS printing guide is a horrendous maze of options. I've got
> nearly there but I've got
> one thing wrong and I don't know where to look.

you have to do the following:

In CUPS https://localhost:631/ setup your printers and set the printer
driver for each printer to local raw printer

In /etc/samba/smb.conf make sure you have the following settings

[main]
printing = cups

# printer share for your windows drivers
[print$]
comment = printer drivers
path = /var/lib/samba/somewhere
read only = yes
guest ok = no
write list = @somegroup, john

mkdir 
/var/lib/samba/somewhere/{COLOR,IA64,W32ALPHA,W32MIPS,W32PPC,W32X86,WIN40,x64}

# set permissions
chown -R john:somegroup /var/lib/samba/somewhere
chmod 775 /var/lib/samba/somewhere

or if you use ACL
setfacl --recursive -m g:somegroup:rwx /var/lib/samba/somewhere
etc.


Grant the SePrintOperatorPrivilege privilege

net rpc rights grant "" \
SePrintOperatorPrivilege -U /root


In windows open the print management tool and install the device drivers
there.


HTH, Brgds


-- 
Freundliche Gruesse/Best Regards
Benjamin Hackl
IT/Administration

Media FOCUS Research Ges.m.b.H.
Maculangasse 8, 1220 Wien Austria
Tel: +43 1 258 97 01-295
b.ha...@focusmr.com
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] CUPS not rendering documents via Samba

2011-06-22 Thread Kevin Thorpe
On Wed, Jun 22, 2011 at 3:44 PM,   wrote:
> Kevin Thorpe wrote:
>> Hi guys, any CUPS / Samba experts out there?
>>
>> The CUPS printing guide is a horrendous maze of options. I've got
>> nearly there but I've got
>> one thing wrong and I don't know where to look.
>>
>> I set up our two printers (HP K5400s) using the GUI printer tool. Both
>
> The GUI printer tool - is that from the o/s, or, from the server, did you
> browse to  ? From the latter, you can add
> printer->choose driver.

Both the KDE printer manager and the CUPS manager on :631 create
the same printer setup.

-- 
Kevin Thorpe
Head of IT
PI Benchmark
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] CUPS not rendering documents via Samba

2011-06-22 Thread m . roth
Kevin Thorpe wrote:
> Hi guys, any CUPS / Samba experts out there?
>
> The CUPS printing guide is a horrendous maze of options. I've got
> nearly there but I've got
> one thing wrong and I don't know where to look.
>
> I set up our two printers (HP K5400s) using the GUI printer tool. Both

The GUI printer tool - is that from the o/s, or, from the server, did you
browse to  ? From the latter, you can add
printer->choose driver.

mark

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] CUPS not rendering documents via Samba

2011-06-22 Thread Kevin Thorpe
Hi guys, any CUPS / Samba experts out there?

The CUPS printing guide is a horrendous maze of options. I've got
nearly there but I've got
one thing wrong and I don't know where to look.

I set up our two printers (HP K5400s) using the GUI printer tool. Both
print the test page just fine.
I set up the [printers] and [print$] shares and can browse to the
printers from Windows (XP for me)
I managed to get the postscript drivers installed with cupsaddsmb and
it installs on the XP client just fine.

. sadly it just prints the postscript instead of rendering it. I
guess the printer queue is in raw mode
but I can't see where to change it. I vaguely remember foomatic and
such from ages back. Can someone
point me at the right part of the setup to fix this please?

-- 
Kevin Thorpe
Head of IT
PI Benchmark
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Firefox 5 on Centos 5.6

2011-06-22 Thread Ljubomir Ljubojevic
James A. Peltier wrote:
> 
> There is the libsdc++-4.1.2-50.el5 package and the gcc44 packages, both can 
> be installed without messing with the core system
> 
> 
Yes there is, but it does not provide (GLIBCXX_3.4.9), only up to 
(GLIBCXX_3.4.8). Closest (GLIBCXX_3.4.9) is for Fedora 10, little to far 
for my taste.

http://rpm.pbone.net/index.php3/stat/4/idpl/15703005/dir/centos_5/com/libstdc++-4.1.2-50.el5.x86_64.rpm.html

Ljubomir
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Firefox 5 on Centos 5.6

2011-06-22 Thread Ljubomir Ljubojevic
fred smith wrote:
> On Tue, Jun 21, 2011 at 11:35:36PM +0100, Lucian wrote:
>> On Tue, Jun 21, 2011 at 9:54 PM, fred smith
>>  wrote:
>>> anybody else seen this? anyone got suggestions on what I should try next?
>> Try to disable all the extensions and see if it helps. If it does then
>> enable them back one by one until you find the guilty one.
> 
> well, it starts in safe mod4e with all add-ons disabled. but how can I
> disable them so I can start it without safe-mode? if I can't run it without
> safe mode then I can't disable add-ons. or at least I don't know how.
> 
Can't you open add-on window in safe mode and click on the disable button?

Ljubomir
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos