Sudo password not working for fedora28
Clash 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.
fedora sudo upgrade
add a comment |Â
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.
fedora sudo upgrade
Fill a bugreport
â Ipor Sircer
Jun 14 at 9:06
Log in as root and examine thesudoers
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. Whengrub
shows the kernel that you normally boot into, select it and presse
. On the next screen, go down to the kernel line that starts withlinux
, change thero
torw init=/sysroot/bin/sh
.Ctrl X
to boot into single user mode. When the prompt comes up, enterchroot /sysroot/
and that will get you into/
. Enterpasswd
and then enter and confirm the new root password. You can now login and become root withsu -
.
â Nasir Riley
Jun 14 at 11:30
add a comment |Â
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.
fedora sudo upgrade
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.
fedora sudo upgrade
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 thesudoers
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. Whengrub
shows the kernel that you normally boot into, select it and presse
. On the next screen, go down to the kernel line that starts withlinux
, change thero
torw init=/sysroot/bin/sh
.Ctrl X
to boot into single user mode. When the prompt comes up, enterchroot /sysroot/
and that will get you into/
. Enterpasswd
and then enter and confirm the new root password. You can now login and become root withsu -
.
â Nasir Riley
Jun 14 at 11:30
add a comment |Â
Fill a bugreport
â Ipor Sircer
Jun 14 at 9:06
Log in as root and examine thesudoers
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. Whengrub
shows the kernel that you normally boot into, select it and presse
. On the next screen, go down to the kernel line that starts withlinux
, change thero
torw init=/sysroot/bin/sh
.Ctrl X
to boot into single user mode. When the prompt comes up, enterchroot /sysroot/
and that will get you into/
. Enterpasswd
and then enter and confirm the new root password. You can now login and become root withsu -
.
â 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
add a comment |Â
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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 presse
. On the next screen, go down to the kernel line that starts withlinux
, change thero
torw init=/sysroot/bin/sh
.Ctrl X
to boot into single user mode. When the prompt comes up, enterchroot /sysroot/
and that will get you into/
. Enterpasswd
and then enter and confirm the new root password. You can now login and become root withsu -
.â Nasir Riley
Jun 14 at 11:30