Re: Problem with Cable Moden & Router.



On Fri, 05 Jan 2007 03:14:32 GMT, Mark Healey wrote:

I had to make a few changes to your script. su-ing to root on my system
doesn't give you roots path so I had to add full path names in the script.

Guessing you did a su root
not a su - root :(


Here is the output.

Thu Jan 4 17:05:15 PST 2007
Fedora Core release 5 (Bordeaux)
Fedora Core release 5 (Bordeaux)
======== /etc/version ==========
msec security level is
======== chkconfig --list ==========
avahi-daemon 0:off 1:off 2:off 3:on 4:on 5:on 6:off

I recommend you turn that service off, can cause slow DNS lookups. Command:
service avahi-daemon stop
chkconfig avahi-daemon off

======== hostname ==========
localhost

I recommand a Fully Qualifed Domain Name (FQDN) for your node.
Local web, email servers and whatnot like a FQDN name.

Example with suggestion:
darkstar.mylan.invalid

The .invalid will help external email filters to drop any email that
might escape your system.


============== route =================
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth0

Thar she blows, no default gateway route, see my example

Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.2.0 0.0.0.0 255.255.255.0 U 10 0 0 eth0
169.254.0.0 0.0.0.0 255.255.0.0 U 10 0 0 eth0
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo
0.0.0.0 192.168.2.1 0.0.0.0 UG 10 0 0 eth0

line with UG Flags is default route line.


Your resolv.conf indicates dhclient so for some reason your
/sbin/dhclient-script did not set the gateway.

Also, your mods to my script did not show your
/etc/sysconfig/network-scripts/ifcfg-eth* settings.

I did get fc5 installed today and my scipt works :)

If you changed eth0 to static, that would explain what is going on.
You would have to add a gateway ip to /etc/sysconfig/network


======== /etc/sysconfig/network ==========
NETWORKING=yes
HOSTNAME=

There is where you can set FQDN node.domain used during cold start and
read by other scripts sourcing /etc/sysconfig/network

$ cat /etc/sysconfig/network
NETWORKING=yes
HOSTNAME=wb1.home.invalid <===== there is mine
GATEWAY=192.168.2.1 <=== gateway on my lan since eth0 is static setup

============== /etc/hosts ===============
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost.localdomain localhost

You also might set the FQDN here

$ head -3 /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 wb1.home.invalid wb1 localhost.localdomain localhost


It also looked for something that wasn't there and spat out this.

cat: /etc/version: No such file or directory

Yeah, that is a Mandriva Linux file. I fixed the script to manage it.
I re-installed fc5 at noon and found that bug.

Now when you make a hostname change, I recommend a reboot so all
services/deamons get the new host name.
.



Relevant Pages

  • IBM Informix Web DataBlade: Local root by design
    ... IBM Informix Web DataBlade: Local root by design ... Impact: Any user who can: 1) Save a Perl script anywhere on the server's ... admin right on any database can do it by loading the WDB module into ...
    (Bugtraq)
  • RE: Linux hacked
    ... I would also suggest using a simple script in the future that alerts ... Subject: Linux hacked ... To get back into your account you want to use, at the boot manager ... boot normally and you should be able to login as root with your new ...
    (Security-Basics)
  • Re: BSDstats v3.0 - The Security Rewrite
    ... The bsdstats script could easily pick up that entry and set ... a management machine, and that management machine only has ... Email is sent to root containing IDTOKEN= as generated by host, root forwards that to rpt@xxxxxxxxxxxx, rpt@xxxxxxxxxxxx sends back KEY= value ... second time, submits report values to root, root forwards that to rpt@xxxxxxxxxxxx ... ...
    (freebsd-questions)
  • Re: Great SWT Program
    ... from a terminal emulator and log in as root there. ... terminal-emulator windows open, ... The script, suid-root utility, or whatever would ... the command interpreter with root privileges ...
    (comp.lang.java.programmer)
  • Re: Rexx problem? - advice sought, Please
    ... Examples (Start with Drive S: current is root): ... In REXX function Directory() gets the same result as CD. ... There have been several public betas of this application using the install script. ...
    (comp.os.os2.programmer.misc)