LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 11-12-2007, 08:07 PM   #16
landonmkelsey
Member
 
Registered: Jul 2001
Location: Texas
Distribution: Fedora 16
Posts: 323

Original Poster
Rep: Reputation: 37
the alias was already in modprobe.conf


thanks but

[root@x1-6-00-b0-d0-16-1c-01 etc]# cat hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost.localdomain localhost localhost
# ::1 localhost6.localdomain6 localhost6
[root@x1-6-00-b0-d0-16-1c-01 etc]#

had no effect

This seemed to start when I switched to cable internet!
 
Old 11-13-2007, 05:38 PM   #17
Brian1
LQ Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 65
I want to see if the /etc/sysconfig/network file has anything to do with it.
So change the line in /etc/sysconfig/network to
HOSTNAME=LMKIII
Reboot. Is it now LMKIII

Also what is the output from the command ' route '

Without going through the whole start of bash terminal which makes calls from /etc/profile, /etc/bashrc, Your own home .bashrc, .profile, and some others.

Brian
 
Old 11-13-2007, 06:38 PM   #18
landonmkelsey
Member
 
Registered: Jul 2001
Location: Texas
Distribution: Fedora 16
Posts: 323

Original Poster
Rep: Reputation: 37
thanks! That worked as you can see on my prompt below

with the results of route displayed.

I hope mysql gives no problems with the hostname!

BTW what is the actual IP address of my computer?

This all started when I switched to cable internet!


[root@LMKIII ~]# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.122.0 * 255.255.255.0 U 0 0 0 virbr0
72.47.28.0 * 255.255.254.0 U 0 0 0 eth0
link-local * 255.255.0.0 U 0 0 0 eth0
default doc-72-47-28-1. 0.0.0.0 UG 0 0 0 eth0
[root@LMKIII ~]#


[root@LMKIII ~]# netstat -rn
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
192.168.122.0 0.0.0.0 255.255.255.0 U 0 0 0 virbr0
72.47.28.0 0.0.0.0 255.255.254.0 U 0 0 0 eth0
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth0
0.0.0.0 72.47.28.1 0.0.0.0 UG 0 0 0 eth0
[root@LMKIII ~]#
 
Old 11-13-2007, 07:03 PM   #19
Brian1
LQ Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 65
I was hoping to see x1-6-00-b0-d0-16-1c-01 in the route but not being found there. One more thing I see odd is the /etc/hosts file and the duplicate localhost words. I don't think you need the last one in the chain.
127.0.0.1 localhost.localdomain localhost

May return your /etc/sysconfig back to what it was and remove the last localhost from the /etc/hosts file. Doubt it would make a difference but my only has one.

What is in /etc/host.conf?

This just eludes me to what is going on. i would love to know why it is doing it like that on yours. Maybe something will come to me.

Brian
 
Old 11-13-2007, 07:03 PM   #20
landonmkelsey
Member
 
Registered: Jul 2001
Location: Texas
Distribution: Fedora 16
Posts: 323

Original Poster
Rep: Reputation: 37
next problem is mysql

LMKIII (landon4) ~ [330]>mysql --user='landon@LMKIII' --password='rumprocella'
ERROR 1045 (28000): Access denied for user 'landon@LMKIII'@'localhost' (using password: YES)
LMKIII (landon4) ~ [331]>mysql --user='landon@localhost' --password='rumprocella'
ERROR 1045 (28000): Access denied for user 'landon@localhost'@'localhost' (using password: YES)
LMKIII (landon4) ~ [332]>

mysql is inserting localhost. I believe this is a strange characteristic of mysql and one must enter the exact code it wants!
 
Old 11-13-2007, 07:14 PM   #21
landonmkelsey
Member
 
Registered: Jul 2001
Location: Texas
Distribution: Fedora 16
Posts: 323

Original Poster
Rep: Reputation: 37
thanks!

[root@LMKIII ~]# cat /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost.localdomain localhost localhost
# ::1 localhost6.localdomain6 localhost6
[root@LMKIII ~]#
 
Old 11-13-2007, 07:24 PM   #22
Brian1
LQ Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 65
Wondering if it is fixed.

Did you remove the second localhost and returned network file back to default?
If so does that resolve it and make mysql to work as well.

Also contents of /etc/host.conf file

Brian
 
Old 11-13-2007, 07:41 PM   #23
landonmkelsey
Member
 
Registered: Jul 2001
Location: Texas
Distribution: Fedora 16
Posts: 323

Original Poster
Rep: Reputation: 37
second localhost commented out

[root@LMKIII ~]# cat /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost.localdomain localhost localhost
# ::1 localhost6.localdomain6 localhost6
[root@LMKIII ~]#

[root@x1-6-00-b0-d0-16-1c-01 ~]# cat /etc/host.conf
order hosts,bind

[root@x1-6-00-b0-d0-16-1c-01 ~]#

[root@x1-6-00-b0-d0-16-1c-01 ~]# cat /etc/sysconfig/network
NETWORKING=yes
NETWORKING_IPV6=no
HOSTNAME=localhost.localdomain
#HOSTNAME=LMKIII

back to

[root@x1-6-00-b0-d0-16-1c-01 ~]# hostname
x1-6-00-b0-d0-16-1c-01
[root@x1-6-00-b0-d0-16-1c-01 ~]#

[root@x1-6-00-b0-d0-16-1c-01 ~]# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.122.0 * 255.255.255.0 U 0 0 0 virbr0
72.47.28.0 * 255.255.254.0 U 0 0 0 eth0
link-local * 255.255.0.0 U 0 0 0 eth0
default doc-72-47-28-1. 0.0.0.0 UG 0 0 0 eth0
[root@x1-6-00-b0-d0-16-1c-01 ~]#
 
Old 11-13-2007, 08:01 PM   #24
Brian1
LQ Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 65
I mean this edit, the line in /etc/hosts from this
127.0.0.1 localhost.localdomain localhost localhost
to this
127.0.0.1 localhost.localdomain localhost

Reboot and see what happens.

Brian
 
Old 11-13-2007, 08:18 PM   #25
landonmkelsey
Member
 
Registered: Jul 2001
Location: Texas
Distribution: Fedora 16
Posts: 323

Original Poster
Rep: Reputation: 37
Thanks but back to square 1
seems like we were ahead HOSTNAME=LMKIII

after reboot here it is
[root@x1-6-00-b0-d0-16-1c-01 ~]# !388

cat /etc/sysconfig/network
NETWORKING=yes
NETWORKING_IPV6=no
HOSTNAME=localhost.localdomain
#HOSTNAME=LMKIII


[root@x1-6-00-b0-d0-16-1c-01 ~]# !388
cat /etc/sysconfig/network
NETWORKING=yes
NETWORKING_IPV6=no
HOSTNAME=localhost.localdomain
#HOSTNAME=LMKIII
 
Old 11-13-2007, 08:20 PM   #26
landonmkelsey
Member
 
Registered: Jul 2001
Location: Texas
Distribution: Fedora 16
Posts: 323

Original Poster
Rep: Reputation: 37
cat /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost.localdomain localhost
# ::1 localhost6.localdomain6 localhost6
 
Old 11-13-2007, 08:29 PM   #27
Brian1
LQ Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 65
I am at a total lost as to why your system is doing this as far as leaving network file as default. It should localhost in the bash prompt inside if the IPv6 stuff. I need to get hold of my Redhat contact and get his input if he is not busy.

I myself edited my network file to use a different name other than localhost. I return everything to default install, directly connected to modem, and dhcp setup. My reverts to user@localhost as expected. I thought maybe it was getting that info if the ISP has set a domain name to the IP. Again just mine blowing.

Brian
 
Old 11-13-2007, 08:30 PM   #28
landonmkelsey
Member
 
Registered: Jul 2001
Location: Texas
Distribution: Fedora 16
Posts: 323

Original Poster
Rep: Reputation: 37
worrisome post

http://www.linuxquestions.org/questi...sabled-249688/
 
Old 11-13-2007, 09:58 PM   #29
landonmkelsey
Member
 
Registered: Jul 2001
Location: Texas
Distribution: Fedora 16
Posts: 323

Original Poster
Rep: Reputation: 37
clue from mysql

mysql> select user, host from mysql.user;
+---------+------------------------+
| user | host |
+---------+------------------------+
| root | 127.0.0.1 |
| lando | LMKIII |
| landon | LMKIII |
| landon4 | LMKIII |
| root | localhost |
| root | x1-6-00-b0-d0-16-1c-01 |
+---------+------------------------+
6 rows in set (0.00 sec)

mysql>

I have seen confusion in the use of hostname in mysql

however

[landon4@LMKIII ~]$ mysql -u landon4@LMKIII --password='Kateaux3141'
ERROR 1045 (28000): Access denied for user 'landon4@LMKIII'@'localhost' (using password: YES)
[landon4@LMKIII ~]$
 
Old 11-13-2007, 10:21 PM   #30
landonmkelsey
Member
 
Registered: Jul 2001
Location: Texas
Distribution: Fedora 16
Posts: 323

Original Poster
Rep: Reputation: 37
another surprise

mysql> select user, host from mysql.user;
+---------+------------------------+
| user | host |
+---------+------------------------+
| root | 127.0.0.1 |
| landon | LMKIII |
| landon4 | LMKIII |
| root | localhost |
| root | x1-6-00-b0-d0-16-1c-01 |
+---------+------------------------+
5 rows in set (0.00 sec)

mysql> drop user landon@LMKIII;
Query OK, 0 rows affected (0.00 sec)

mysql> grant all on *.* to landon4@localhost identified by 'Kateaux3141';
Query OK, 0 rows affected (0.00 sec)

mysql>

under a non-root user, I cannot log in

all the following fail
330 mysql --user='landon@LMKIII' --password='rumprocella'
331 mysql --user='landon@localhost' --password='rumprocella'
332 h
333 mysql --user='landon@localhost6' --password='rumprocella'
334 passwd
335 passwd
336 mysql --user='lando@localhost6' --password='passwordx'
337 mysql --user='lando@localhost' --password='passwordx'
338 mysql --user='lando@LMKIII' --password='passwordx'
339 h
340 mysql --user='landon4@LMKIII' --password='passwordx'
341 hostname
342 mysql --user='landon4'@'LMKIII' --password='passwordx'
343 mysql --user='landon4'@'LMKIII' --password='passwordx'
344 mysql -u other4 --password='passwordx'
345 mysql -u landon4 --password='passwordx'
346 mysql -u landon4@LMKIII --password='passwordx'
347 mysql -u landon4 --password='passwordx'
348 mysql -u landon4 --password='passwordx'
349 h
350 mysql --user='landon4@LMKIII' --password='passwordx'
351 mysql -u landon4 --password='passwordx'
352 mysql -u landon4 --password='passwordx'
353 mysql -u landon4@LMKIII --password='passwordx'
354 mysql -u landon4@LMKIII --password='passwordx'
355 mysql -u landon4@LMKIII@localhost --password='passwordx'
356 mysql -u landon4@localhost --password='passwordx'
357 h
358 mysql -u landon4 --password='passwordx'
359 vi xxx
360 vi xxx
361 mysql -u landon4@LMKIII --password='passwordx'
362 mysql -u landon4 --password='passwordx'
363 h
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Firefox still slow even with IPv6 disabled... Biggen Slackware 6 07-22-2007 03:58 PM
Wireless Slow.. possible DNS .. ipv6 disabled EclipseAgent SUSE / openSUSE 0 08-05-2006 10:33 PM
internet slow (certain sites) but IPv6 disabled ashlock Linux - Networking 3 11-14-2004 09:39 AM
Get_local_host: hostname '...' bad christophe.dr Linux - Newbie 6 12-15-2003 04:02 PM
LPD error - bad hostname RH7.3 KL2001 Linux - Newbie 10 09-05-2002 05:32 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 08:49 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration