Linux - NewbieThis 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!
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.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
Hello, I have two accounts in my computer james and john. james is the only administrative account and I set it to expire. Now I am unable to login using james because it has expired. John is not in the sudoers list so I can not use it to reset James. I am unable to login using root either, I think it used the same password as james. Kindly help.
reboot the machine, on the boot screen, hit e to edit your default options, and add a 1 to the command line. then press b to boot. This will put you in as root, and let you set the root password as you wish.
You don't indicate which distribution of Linux you are using. If it's Ubuntu or one of its derivatives or something using Grub2, you can get detailed information at the link below. You would hit the 'e' key when you see the boot menu. The one you want to edit should be highlighted. Then follow the instructions at the link. You would want to use the arrows on your keyboard to go down to the linux line and the right arrow key to go to the end of the line, leave a space and enter the number 1.
Thanks guys for your help so far. I have found the line and added a space then 1. however when i press ctrl-X to boot with the changes I get a message
"rc-sysinit start/running process 2104
*asking all remaining processes to terminate
init: upstart-udev-bridge main process ended, respawning
init: rsyslog main process ended, respawning"
and I go to the recovery menu - with options
resume normal boot
Drop to root shell prompt.
When i choose drop to root shell prompt I get "login incorrect".
am using grub version 1.98+20100804-5ubuntu3
I finally got it to work
1. On the grub boot options menu press 'e'
2. edit the command line options in the line containing vmlinuz at the end of the line add a space then the word 'single' without the quotes then a space then /bin/bash
3. press cttrl-x to boot with the changes
remember the settings are not permanent so if your system for any reason has to reboot, remember to edit the settings again. (mine keeps on checking disks).
4. you should now have access to a root shell prompt
5. Feel happy
6. use the chage command to reset the account
chage -E -1 useraccount
7. if you get an error can not lock /etc/passwd
mount -o remount, rw /
8.take a few minutes in your life assist others.