Ask Your Question
0

if i forget root password then how i get if i am having a administrator role

asked 2013-01-20 20:38:02 -0500

santosh zaveri gravatar image

updated 2014-09-28 15:40:04 -0500

mether gravatar image

root password

edit retag flag offensive close merge delete

3 Answers

Sort by ยป oldest newest most voted
1

answered 2013-01-22 01:16:29 -0500

ztank1013 gravatar image

If you can login with your personal (non root) account open a terminal and verify if you really are part of the administrators group running the following command:

id

if in the output there is a group named wheel then you are effectively an administrator of the machine and you can become root just running the

sudo su -

command. When prompted just insert your account password and there you go, you should be root now (notice the # sign at the beginning of the line). Once you are root just type the passwd command to change the root password to whatever you like.

edit flag offensive delete link more
0

answered 2013-01-21 00:36:34 -0500

tbwen gravatar image

updated 2013-01-21 21:35:50 -0500

" 2.1.1 Reseting passwords by booting into single-user mode

This is the easiest and the fastest method to reset passwords. The steps are a little different depending on if you are using GRUB or LILO as a bootmanager.

Booting into single-user mode from LILO

Follow these steps to reset the password when using LILO:

Reboot the system. When you see the LILO: prompt (see Fig. 1 below), type in linux single and press 'Enter'. This will log you in as root in single-user mode. If your system requires you to enter your root password to log in, then try linux init=/bin/bash instead.
Once the system finishes booting, you will be logged in as root in single-user mode. Use passwd and choose a new password for root.
Type reboot to reboot the system and then you can login with the new password you just selected.

Lilo Boot Menu Figure 1. Lilo Boot Menu

If you have a new version of LILO which gives you a menu selection of the various kernels available press Tab to get the LILO: prompt and then proceed as shown above."

Found it here http://linuxgazette.net/107/tomar.html

edit flag offensive delete link more

Comments

Please, can you include the essential parts of the linked article in your answer, and provide the link for reference. Failing to do that leaves the answer at risk from link rot and deletion.

Jomoos gravatar imageJomoos ( 2013-01-21 13:33:11 -0500 )edit
0

answered 2013-01-21 01:01:37 -0500

Jomoos gravatar image

Well, you can do it by booting into single user mode. From fedora docs:

In single-user mode, your computer boots to runlevel 1. Your local file systems are mounted, but your network is not activated. You have a usable system maintenance shell. Unlike rescue mode, single-user mode automatically tries to mount your file system. Do not use single-user mode if your file system cannot be mounted successfully. You cannot use single-user mode if the runlevel 1 configuration on your system is corrupted.

On an x86 system using GRUB, use the following steps to boot into single-user mode:

  1. Press the Esc key at boot time to load the GRUB splash screen, then press any key to enter the GRUB interactive menu.
  2. Select Fedora with the version of the kernel that you wish to boot and type a to append the line.
  3. Go to the end of the line and type single as a separate word (press the Spacebar and then type single). Press Enter to exit edit mode.

But most probably you will have GRUB2 as your boot-loader. So, the following instructions are for GRUB 2. It is almost same as for GRUB.

  1. On GRUB2 default screen, use the arrow keys to select(highlight) the kernel to edit and press e.

  2. Goto 'linux' line with arrow keys, then press end button to get end of line (or move cursor to end of line with arrow keys). Write space and single as a parameter at the end of the line.

  3. Press Ctrl+X or F10 to boot (Esc to cancel).

Once you booted up into single user mode, you will be logged into root user and will be greeted with a command prompt. Now, enter the command passwd and type new password for root user. Now, you can reboot using reboot command.

edit flag offensive delete link more

Question Tools

Stats

Asked: 2013-01-20 20:38:02 -0500

Seen: 5,359 times

Last updated: Jan 22 '13