i am using fedora via vmware server.
i never set the root password.
now, i can't.
all attempts to use sudo result in complaints that xxxx user is not in /etc/sudoers.
cannot edit that file as no permissions.
cannot set root password
what to do?
You can try to boot into fedora in runlevel 1. That way you'll have root permissions without using a root password.
Press the spacebar as soon as you see the GRUB-menu. Then press 'e'.
Use the arrow-keys to go to the second line, the one that starts with 'kernel'. Press 'e' again.
Your cursor is now at the end of the line. Type 'linux 1' there. Than press 'Enter', and 'b'.
Your system should start in grafical mode, you're automatically loggid in as root.
Type 'passwd' and you can enter a new password. After that, type 'reboot' and start fedora the 'normal' way.