LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-12-2013, 06:54 AM   #1
raulapati
Member
 
Registered: May 2010
Posts: 51

Rep: Reputation: 0
Unhappy Urgent


Actually as a part of my driver devlopment i have to reboot the desktop frequently.For this it takes time and always askes for user-login and passwd.So to escape this task of entering user and passwrd details i tried to remove that option.I searched from net and i saw in on post that tells to comment the root login in /etc/passwd script.

So for that immediatly I have commented it and rebooted.
This has drived me nuts.As i have commented out the root user to access shell so now iam not able to login as root.

Can any body help me to rectify this problem.
I have only one user and that dont have root permissions.
so iam not able to change the script....
 
Old 06-12-2013, 06:55 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
this is not urgent for us. Please do not use such words to demand priority attention. You should have instead used a useful and informative thread title that related to your question. And you could have said please / thank you too...
 
Old 06-12-2013, 07:05 AM   #3
marc_online_
LQ Newbie
 
Registered: Apr 2013
Location: The Netherlands
Distribution: Linux Mint Cinnamon
Posts: 15

Rep: Reputation: Disabled
Hi,

Boot from a linux live-cd/dvd and mount your system disk in this environment. That way you should be able to access the files on your harddrive.

Cheers.
 
Old 06-12-2013, 07:07 AM   #4
raulapati
Member
 
Registered: May 2010
Posts: 51

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by acid_kewpie View Post
this is not urgent for us. Please do not use such words to demand priority attention. You should have instead used a useful and informative thread title that related to your question. And you could have said please / thank you too...
This might not be urgent for you but its urgent for me...If u can help give suggestions thats it...
 
Old 06-12-2013, 07:15 AM   #5
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
yes, but you want our help, and we are a voluntary community, and you can't expect us jump for you, that's just rude.
 
Old 06-12-2013, 08:20 AM   #6
Z038
Member
 
Registered: Jan 2006
Location: Dallas
Distribution: Slackware
Posts: 912

Rep: Reputation: 174Reputation: 174
marc_online_ gave you a good solution. Here is another one if you are using Lilo, but it may not work in all distros. This works for Slackware, and probably many others.

When you see the Lilo boot splash page, press the tab key to get a Lilo boot prompt. Then enter "linux init=/bin/bash rw" at the boot prompt.

After pressing tab key you'll see the boot prompt.

Code:
Linux
boot: linux init=/bin/bash rw
The boot will proceed, but it will fail at some point and you'll end up at the command line as root. You will not be asked for a password. You can then go edit your passwd file and reboot.

If for some reason the root filesystem comes up read-only, you can remount it rw once you get to the command line:

Code:
mount -o remount,rw /
I'm not familiar with GRUB, but I'm sure there's some similar way of getting to a root command line prompt without having to enter a password.


In the future when asking for help, please provide a meaningful title and supply relevant details. For this situation, it would be helpful to know what distro and version you are using and which boot loader.

Last edited by Z038; 06-12-2013 at 08:32 AM. Reason: add remount info.
 
1 members found this post helpful.
Old 06-12-2013, 08:47 AM   #7
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,636

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by raulapati View Post
Actually as a part of my driver devlopment i have to reboot the desktop frequently.For this it takes time and always askes for user-login and passwd.So to escape this task of entering user and passwrd details i tried to remove that option.I searched from net and i saw in on post that tells to comment the root login in /etc/passwd script.

So for that immediatly I have commented it and rebooted. This has drived me nuts.As i have commented out the root user to access shell so now iam not able to login as root.

Can any body help me to rectify this problem. I have only one user and that dont have root permissions. so iam not able to change the script....
If you don't have root permissions, how exactly are you doing kernel driver development?? And if you don't have root permissions on (assuming), your OWN workstation, who does? Can you not put a line in your sudoers file, and let it run the reboot command without a password? All you'd have to do is "sudo reboot"...no password needed.
Quote:
Originally Posted by raulapati
This might not be urgent for you but its urgent for me...If u can help give suggestions thats it...
Spell out your words, and stop being rude, please. This is NOT urgent for anyone but you...asking for/expecting 'urgent' help is rude. If you need 'urgent' assistance, then PAY FOR Red Hat or SuSE Enterprise, and call their support numbers.

You've been registered here for three years now...you should have read the LQ Rules and posting tips by now.

Last edited by TB0ne; 06-12-2013 at 08:48 AM.
 
Old 06-12-2013, 12:12 PM   #8
salasi
Senior Member
 
Registered: Jul 2007
Location: Directly above centre of the earth, UK
Distribution: SuSE, plus some hopping
Posts: 4,070

Rep: Reputation: 897Reputation: 897Reputation: 897Reputation: 897Reputation: 897Reputation: 897Reputation: 897
Quote:
Originally Posted by raulapati View Post
This might not be urgent for you but its urgent for me...If u can help give suggestions thats it...
Look, what you have done so far has not worked. You should consider why your approach, so far, has not worked, if this is genuinely urgent for you (you are asking for us to consider what might be a minor irritation to be cured as a matter of urgency; we might have different opinions).

In any case (and that includes the case of someone who has wilfully ignored the posting guidelines), you should have observed how threads entitled 'Urgent' usually go. Your thread has gone the same way, and so this couldn't really be a surprise to someone who cared.

Additionally, a minimum requirement for a thread to be taken seriously as an 'Urgent' one, would be for it to have sufficient information for the people willing to help to be able to work with. In fact, I know the answer to this question for one distribution only and you don't even state which distribution you are using (or actually, whether you are using a distro, at all). This is unsatisfactory.

So, a change in title and a bit of co-operation from yourself might get this thread back on track; otherwise you will, I suspect, be disappointed. The choice is up to you. But, if it genuinely urgent to you, you will do what is necessary.
 
2 members found this post helpful.
  


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
boot sector and lilo collapse !!!!! URGENT URGENT URGEN !!!!! frelihm Linux - Software 21 12-02-2009 10:21 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04: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