LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 04-08-2010, 07:30 PM   #1
derodr
LQ Newbie
 
Registered: Apr 2010
Posts: 2

Rep: Reputation: 0
How do I disable networking on RHEL5


Hello Linux Networking Forum,

I have an HP workstation running Red Hat Linux 5 that is currently configured for a static IP connection. I wish to keep the existing network configuration, but I want to be able to use the workstation and log into my accounts when I am not connected to the network. I have tried using the following methods to disable the network with no success:

1. I set the "ONBOOT" parameter of the ifcfg-eth0 file to "no".
2. I set the "Networking" parameter in the /etc/sysconfig/network file to "no".
3. I moved the /etc/resolv.conf file to /etc/resolv.conf.OFF
4. I used the ifdown eth0 command.

If I am on the network, I have no problem logging into my user accounts. If I am off the network, I cannot log onto my accounts. How can I disable the network config from the workstation so that I can log onto my accounts without being connected to the network?

Thank you for your help.
 
Old 04-08-2010, 07:58 PM   #2
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,973

Rep: Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623
My guess is the ifdown should have dropped the nic. What happens they you do that? (assuming you have permissions)


I am not sure I understand the last part.
 
Old 04-08-2010, 10:46 PM   #3
mweed
Member
 
Registered: Mar 2006
Posts: 33

Rep: Reputation: 17
Does your user exist in /etc/passwd? Are you using LDAP or some sort of network based authentication for your account of other services/configuration on the machine?
 
Old 04-09-2010, 05:47 PM   #4
derodr
LQ Newbie
 
Registered: Apr 2010
Posts: 2

Original Poster
Rep: Reputation: 0
The issue that I am running into is that I cannot logon as root or as any other user. I had no problem logging into the controller when it was on the network. Now that it is not on the network, I cannot log on.

When I log on as root, I get an error message that says "No profile for user 'root' found". However, when I go to single level user mode, I do find the /root/bash_profile file. All my accounts are local and listed in /etc/passwd.

The workstation is currently configured for NIS. Are there specific files that I need to edit to disable NIS dependencies? Thank you for your help.
 
Old 04-09-2010, 08:20 PM   #5
mweed
Member
 
Registered: Mar 2006
Posts: 33

Rep: Reputation: 17
Is nis enabled in /etc/nsswitch.conf? If so what order compared to files and which options are enabled for it?
 
Old 04-09-2010, 09:18 PM   #6
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,973

Rep: Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623
Could it be possible that user credentials are on a networked drive?
 
Old 04-12-2010, 08:15 AM   #7
alli_yas
Member
 
Registered: Apr 2010
Location: Johannesburg
Distribution: Fedora 14, RHEL 5.5, CentOS 5.5, Ubuntu 10.04
Posts: 559

Rep: Reputation: 92
Please post the output of the following:

1. # cat /etc/passwd
2. # ifconfig -a
3. # cat /etc/nsswitch.conf
4. # cat /etc/ldap.conf
5. # cat /etc/openldap/ldap.conf

The most likely scenario is that the "accounts" you're talking about are LDAP accounts and thus you cannot login into any of these when disconnected from the network.

In order to "disable" the network - do you mean your network interface OR network login requirements for and LDAP account as an example?

Cheers
Y
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
I prefere networking, how to disable network-manager abd_bela Ubuntu 3 01-11-2010 05:13 AM
How to disable root login in GUI (RHEL5)? saagar Linux - Newbie 4 08-06-2009 11:54 AM
How to disable networking function of a NIC longtongfish Linux - Networking 1 08-23-2007 08:15 AM
how to disable networking on boot arunvk Linux - Networking 3 03-10-2006 03:44 AM

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

All times are GMT -5. The time now is 07:03 PM.

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