Labels

Showing posts with label Fedora. Show all posts
Showing posts with label Fedora. Show all posts

Thursday, December 29, 2011

Fedora core Linux password reset

Fedora core Linux

Forgotten root password

  1. Reboot your computer.
  1. Press key ‘A’ on the keyboard.
  1. When you see the following

grub append> ro root=LABEL=/ rhgb

Give space and press key ‘1’ and hit enter key.

  1. When you see

sh-2-05b#

Prompt type passwd root and hit enter key.It’ll ask for the new password. Enter the password according to your convenience to remember this.

5. You’ll be asked to re-type the password for verification. Once you’re finished, the password will be changed and you can reboot by typing shutdown –r now at the prompt; then you can log in to root as before.

Tuesday, December 13, 2011

Unable to log in to GUI using root account Fedora


In Fedora Linux root log in is not allowed in GUI by default, if you want to enable the same then please follow below steps.

Step1: Login to Terminal using root account

Step2: Change Directory to /etc/pam.d

            cd /etc/pam.d

Step3: Take back up of two files inside pam.d direcory
           
  1. gdm
  2. gdm-password
 Note: in Linux it is strongly recommended to take back up of any file before making any changes

Step4: Open file “gdm” using text editor

            vi gdm

Step5: Comment the line "auth required pam_succeed_if.so user != root quiet" by adding a # symbol in the beginning of the line

            #auth required pam_succeed_if.so user != root quiet

            Note: # meant to comment that line so that it won't be considered as an input from that file

Step6: Open file “gdm-password” using text editor

            vi gdm-password

Step7: Comment the line "auth required pam_succeed_if.so user != root quiet" by adding a # symbol in the beginning of the file

            #auth required pam_succeed_if.so user != root quiet

Step8: Congrats you are done, now just log in to GUI as root user J