Hi ,,,

My Name is Prasant ,I am fairly new to linux ,the problem which im facing is ,i have forgotten my sudo password of my operating system(I am using Fedora 14 ) ,,,,kindly help me on this ,,,,,,,,,,,,,,,

Dani AI

Generated

Brief, practical recovery notes for a forgotten sudo/password on Fedora 14 — expands on the thread and gives two reliable ways to regain account access. and pointed to the right approaches; the procedures below show how to reset the account password safely and what to watch for.

When GRUB is editable (no GRUB password) and the root partition is not encrypted, boot to single-user/root shell, make the root filesystem writable, then reset the account password and trigger an SELinux relabel:

# at the root shell
mount -o remount,rw /
passwd yourusername
touch /.autorelabel
sync
reboot

If GRUB is protected or single-user booting is blocked, use a Live/rescue image (Knoppix, Fedora Live, etc.), mount the root filesystem and chroot into it to change the password:

mkdir /mnt/sysimage
mount /dev/sdaX /mnt/sysimage      # replace /dev/sdaX with the root partition
mount --bind /dev  /mnt/sysimage/dev
mount --bind /proc /mnt/sysimage/proc
mount --bind /sys  /mnt/sysimage/sys
chroot /mnt/sysimage
passwd yourusername
touch /.autorelabel
exit
umount /mnt/sysimage/{dev,proc,sys}
umount /mnt/sysimage
reboot

Important cautions and troubleshooting

  • Full-disk/LUKS encryption stops these methods unless the decryption passphrase is available.
  • If GRUB itself is password-protected, a bootable USB/CD will be required.
  • On SELinux-enabled Fedora, create /.autorelabel before reboot so file contexts are rebuilt; otherwise logins may fail.
  • Physical access to the machine makes reset possible; this is why disk encryption is critical for protecting data.
  • Fedora 14 is long out of support; once access is restored, plan migration to a supported release.

These steps change the account password that sudo authenticates against, and they are the common, safe recovery methods for a forgotten sudo/login password on Fedora 14.

Recommended Answers

All 3 Replies

Your password for sudo us your user password....

sudo uses your user password to give you access to root. So how would knoppix help?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.