Sudo password not working for fedora28

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
0
down vote

favorite












I upgraded from Fedora 26 to Fedora 28 by using sudo dnf "system-upgrade download --releasever=28" command.



Now I can login to Gnome, but sudo is not working. When I do sudo -i, it asks for the password for my username. I login to Gnome with the same username but that password doesn't work in the terminal. Now I cannot check the wheel group or do visudo, as I don't have access.







share|improve this question





















  • Fill a bugreport
    – Ipor Sircer
    Jun 14 at 9:06










  • Log in as root and examine the sudoers file to see why it does not work for you.
    – Kusalananda
    Jun 14 at 10:47










  • @Kusalananda How to login as root? I didn't set any root user in fedora28.
    – yogeshkakde
    Jun 14 at 11:03










  • @yogeshkakde If you didn't set a root user while installing (which is odd) or you just don't remember the password, boot into single-user mode and reset it. When grub shows the kernel that you normally boot into, select it and press e. On the next screen, go down to the kernel line that starts with linux, change the ro to rw init=/sysroot/bin/sh. Ctrl X to boot into single user mode. When the prompt comes up, enter chroot /sysroot/ and that will get you into /. Enter passwd and then enter and confirm the new root password. You can now login and become root with su -.
    – Nasir Riley
    Jun 14 at 11:30














up vote
0
down vote

favorite












I upgraded from Fedora 26 to Fedora 28 by using sudo dnf "system-upgrade download --releasever=28" command.



Now I can login to Gnome, but sudo is not working. When I do sudo -i, it asks for the password for my username. I login to Gnome with the same username but that password doesn't work in the terminal. Now I cannot check the wheel group or do visudo, as I don't have access.







share|improve this question





















  • Fill a bugreport
    – Ipor Sircer
    Jun 14 at 9:06










  • Log in as root and examine the sudoers file to see why it does not work for you.
    – Kusalananda
    Jun 14 at 10:47










  • @Kusalananda How to login as root? I didn't set any root user in fedora28.
    – yogeshkakde
    Jun 14 at 11:03










  • @yogeshkakde If you didn't set a root user while installing (which is odd) or you just don't remember the password, boot into single-user mode and reset it. When grub shows the kernel that you normally boot into, select it and press e. On the next screen, go down to the kernel line that starts with linux, change the ro to rw init=/sysroot/bin/sh. Ctrl X to boot into single user mode. When the prompt comes up, enter chroot /sysroot/ and that will get you into /. Enter passwd and then enter and confirm the new root password. You can now login and become root with su -.
    – Nasir Riley
    Jun 14 at 11:30












up vote
0
down vote

favorite









up vote
0
down vote

favorite











I upgraded from Fedora 26 to Fedora 28 by using sudo dnf "system-upgrade download --releasever=28" command.



Now I can login to Gnome, but sudo is not working. When I do sudo -i, it asks for the password for my username. I login to Gnome with the same username but that password doesn't work in the terminal. Now I cannot check the wheel group or do visudo, as I don't have access.







share|improve this question













I upgraded from Fedora 26 to Fedora 28 by using sudo dnf "system-upgrade download --releasever=28" command.



Now I can login to Gnome, but sudo is not working. When I do sudo -i, it asks for the password for my username. I login to Gnome with the same username but that password doesn't work in the terminal. Now I cannot check the wheel group or do visudo, as I don't have access.









share|improve this question












share|improve this question




share|improve this question








edited Jun 14 at 10:36









Jeff Schaller

30.8k846105




30.8k846105









asked Jun 14 at 9:04









yogeshkakde

11




11











  • Fill a bugreport
    – Ipor Sircer
    Jun 14 at 9:06










  • Log in as root and examine the sudoers file to see why it does not work for you.
    – Kusalananda
    Jun 14 at 10:47










  • @Kusalananda How to login as root? I didn't set any root user in fedora28.
    – yogeshkakde
    Jun 14 at 11:03










  • @yogeshkakde If you didn't set a root user while installing (which is odd) or you just don't remember the password, boot into single-user mode and reset it. When grub shows the kernel that you normally boot into, select it and press e. On the next screen, go down to the kernel line that starts with linux, change the ro to rw init=/sysroot/bin/sh. Ctrl X to boot into single user mode. When the prompt comes up, enter chroot /sysroot/ and that will get you into /. Enter passwd and then enter and confirm the new root password. You can now login and become root with su -.
    – Nasir Riley
    Jun 14 at 11:30
















  • Fill a bugreport
    – Ipor Sircer
    Jun 14 at 9:06










  • Log in as root and examine the sudoers file to see why it does not work for you.
    – Kusalananda
    Jun 14 at 10:47










  • @Kusalananda How to login as root? I didn't set any root user in fedora28.
    – yogeshkakde
    Jun 14 at 11:03










  • @yogeshkakde If you didn't set a root user while installing (which is odd) or you just don't remember the password, boot into single-user mode and reset it. When grub shows the kernel that you normally boot into, select it and press e. On the next screen, go down to the kernel line that starts with linux, change the ro to rw init=/sysroot/bin/sh. Ctrl X to boot into single user mode. When the prompt comes up, enter chroot /sysroot/ and that will get you into /. Enter passwd and then enter and confirm the new root password. You can now login and become root with su -.
    – Nasir Riley
    Jun 14 at 11:30















Fill a bugreport
– Ipor Sircer
Jun 14 at 9:06




Fill a bugreport
– Ipor Sircer
Jun 14 at 9:06












Log in as root and examine the sudoers file to see why it does not work for you.
– Kusalananda
Jun 14 at 10:47




Log in as root and examine the sudoers file to see why it does not work for you.
– Kusalananda
Jun 14 at 10:47












@Kusalananda How to login as root? I didn't set any root user in fedora28.
– yogeshkakde
Jun 14 at 11:03




@Kusalananda How to login as root? I didn't set any root user in fedora28.
– yogeshkakde
Jun 14 at 11:03












@yogeshkakde If you didn't set a root user while installing (which is odd) or you just don't remember the password, boot into single-user mode and reset it. When grub shows the kernel that you normally boot into, select it and press e. On the next screen, go down to the kernel line that starts with linux, change the ro to rw init=/sysroot/bin/sh. Ctrl X to boot into single user mode. When the prompt comes up, enter chroot /sysroot/ and that will get you into /. Enter passwd and then enter and confirm the new root password. You can now login and become root with su -.
– Nasir Riley
Jun 14 at 11:30




@yogeshkakde If you didn't set a root user while installing (which is odd) or you just don't remember the password, boot into single-user mode and reset it. When grub shows the kernel that you normally boot into, select it and press e. On the next screen, go down to the kernel line that starts with linux, change the ro to rw init=/sysroot/bin/sh. Ctrl X to boot into single user mode. When the prompt comes up, enter chroot /sysroot/ and that will get you into /. Enter passwd and then enter and confirm the new root password. You can now login and become root with su -.
– Nasir Riley
Jun 14 at 11:30















active

oldest

votes











Your Answer







StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "106"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
convertImagesToLinks: false,
noModals: false,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);








 

draft saved


draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f449759%2fsudo-password-not-working-for-fedora28%23new-answer', 'question_page');

);

Post as a guest



































active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes










 

draft saved


draft discarded


























 


draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f449759%2fsudo-password-not-working-for-fedora28%23new-answer', 'question_page');

);

Post as a guest













































































Popular posts from this blog

How to check contact read email or not when send email to Individual?

Displaying single band from multi-band raster using QGIS

How many registers does an x86_64 CPU actually have?