On 11/1/25 5:25 PM, Stephen Morris wrote:
On 11/01/2025 05:56 PM, Stephen Morris wrote:

Hi Samuel, just for info and I don't know if this is just my environment, if I issue sudo -i it prompts for my password, which when supplied it switches to root as expected. If I issue su - it prompts for a password and if I supply my password it gets an authentication failure, which I assume is because it wants a root user which by default Fedora doesn't create.

So use sudo -i and while you're root, run passwd to set a root password.
Thanks Joe, I hadn't understood that feature, but unless my environment was defective, I thought that fedora didn't even create the root user as a user that could be logged in with if you wanted to.

There's always a root user. That's what sudo and su are doing, switching you to that user. sudo just does it with an suid executable so that root doesn't need to have a password.

--
_______________________________________________
users mailing list -- [email protected]
To unsubscribe send an email to [email protected]
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/[email protected]
Do not reply to spam, report it: 
https://pagure.io/fedora-infrastructure/new_issue

Reply via email to