LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-04-2009, 04:04 AM   #1
ythaaa
LQ Newbie
 
Registered: Jan 2008
Posts: 4

Rep: Reputation: 0
Debian in Bad shape


Hi,

Ok I have a big problem here and need help....~~~~

i have server running on NIS. i have a client which i accidentally modified the file /etc/nssswitch.conf such that now no local users can be recognized. not even root. i cannot use keyboard or mouse or anything.

i can only go to grub and i can type in grub. is there anyway i can use grub to modify my file so that i can go back to my lovely linux. i backup my file so as long as i can go to the file and modify it.

really need help. thanks~~~~~~~~
 
Old 07-04-2009, 04:06 AM   #2
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,527

Rep: Reputation: 898Reputation: 898Reputation: 898Reputation: 898Reputation: 898Reputation: 898Reputation: 898
Try to boot from a live cd.
 
Old 07-04-2009, 04:58 AM   #3
ythaaa
LQ Newbie
 
Registered: Jan 2008
Posts: 4

Original Poster
Rep: Reputation: 0
i inserted a live cd into it..... may i ask how to find the files in my hdd?? sorry

thanks
 
Old 07-04-2009, 05:19 AM   #4
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,527

Rep: Reputation: 898Reputation: 898Reputation: 898Reputation: 898Reputation: 898Reputation: 898Reputation: 898
Depends on the live cd
Look if the HD is mounted using a filebrowser.
If not, you need to mount the HD yourself.

do
Code:
fdisk -l
then
Code:
mount /dev/hd[a1,b1,whatever] /mountpoint
 
Old 07-04-2009, 05:24 PM   #5
cmdln
Member
 
Registered: Apr 2009
Location: Lawrence, KS
Distribution: Debian, Centos
Posts: 102
Blog Entries: 1

Rep: Reputation: 24
http://www.cmdln.org/2009/01/18/howt...ord-on-debian/
boot into single mode by appending single init=/bin/bash to the kernel line
in grub. From there you should he able to fix your nsswitch.conf with your favorite console text editor (vim, pico) or whatnot.
 
  


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
LXer: Ubuntu Intel Performance Still In Bad Shape LXer Syndicated Linux News 0 05-08-2009 01:50 AM
Lost KDE .desktop settings ...in bad shape... wombat53 Slackware - Installation 6 06-06-2005 01:35 AM
Help, I think I am in bad shape here! unixfreak Linux - Newbie 23 10-09-2004 05:55 PM
Bad mouse pointer shape in appss: xterm, nedit, ... cjcoats Linux - General 4 07-05-2004 11:14 AM
bad sides of debian spank Linux - Newbie 8 01-28-2004 10:26 PM


All times are GMT -5. The time now is 10:24 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration