Linux - SoftwareThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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....
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 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...
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.
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.