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 ,,,,,,,,,,,,,,,
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 ,,,,,,,,,,,,,,,
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
/.autorelabel before reboot so file contexts are rebuilt; otherwise logins may fail. 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.
Jump to Post— rch1231 169Your password for sudo us your user password....
Your password for sudo us your user password....
If you need to reset your sudo password, you can try and download Knoppix and fix it that way. Here's a tutorial on how to do it: http://www.makeuseof.com/tag/how-to-reset-any-linux-password/
sudo uses your user password to give you access to root. So how would knoppix help?
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.