Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Admin Help

Status
Not open for further replies.

cbrider

IS-IT--Management
Feb 3, 2003
94
US
I just installed Mandrake 9.1. I created a user called admin and gave that user the same password as the root user. I cannot log in as root, nor do i have administrative privilages. Is there a solution to this or am i stuck? Currently when i try to access the settings for the user 'admin' i get an error message denying access.

Thank you in advance
 
The passwords are independent of eachother. All users can have the same password and it shouldn't affect the machine.

Why is it you can't access root? What happens when you try?

The way to get around this is to boot Linux into singleuser mode. This will give you root permissions. Use the 'passwd' command to change the root password and you should be OK. To boot single user mode for:

a) LILOtype 'linux single' at the LILO prompt. If you have the graphical screen, press crtl+x to get to the boot prompt.
b) GRUB[/] At the GRUB boot screen, select the Linux with the version of the kernel that you wish to boot and type e to enable you to edit. From here, you will be presented with a list of items in the configuration file for the title you just selected. Next, select the line that starts with kernel and type e to edit the line. Go to the end of the line and type single as a separate word (press the [Spacebar] and then type single). Next, press [Enter] to exit edit mode. Back at the GRUB screen, type b to boot into single user mode.

Then type passwd to issue a new password.

Note that in single-user mode, you PC will boot to runlevel 1. Your local filesystems will be mounted, but your network will not be activated. You will have a usable system maintenance shell.

Another way is to use a bootable CD, such as knoppix. You can boot up with it, mount the linux partition, and edit the Shadow file to remove the root password. Then you can make a new one. I think it's /etc/Shadow. Use pico or vi to do this. You have to delete the characters after the word 'Password' to reset the password.

Good Luck. Post back if you still have trouble.

 
Thank you for responding. I have to admin that i am a real novice in regards to the terminology. But your help is greatly appreciatted.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top