Ask Your Question

Fedora 28, I can login with the root password, but cannot $ su - root with the same password

asked 2018-09-09 18:52:06 -0500

Fedora-Newbie gravatar image

Hi All,

I am encountering two issues with my Fedora 28: 1- The root PW working to log in as root, but the same PW doesn't work for $ su - root

2- I login as myself and I have wireless internet. I login as root and I don't

Please advise,

Many thanks for your good work!

edit retag flag offensive close merge delete



Welcome to ask.fedora. Generally, if you need a complete root environment you'd use su - by itself as root is implied. Have you tried it that way?

sideburns gravatar imagesideburns ( 2018-09-09 19:21:44 -0500 )edit

Re wifi, where are you logging in? Into your desktop or VT (tty)?

florian gravatar imageflorian ( 2018-09-09 23:43:47 -0500 )edit

Did su work since installing F28? Could there be an alias or bad path at work? What does which su say? (It should say /usr/bin/su.)

wallyk gravatar imagewallyk ( 2018-09-10 02:39:45 -0500 )edit

2 Answers

Sort by ยป oldest newest most voted

answered 2018-09-09 22:20:49 -0500

florian gravatar image

updated 2018-09-09 22:31:53 -0500

I use su -, provide root's password and you will have your root shell. It's the same as: su -l = su --login or even su - root.

edit flag offensive delete link more


There is also su which assumes root and prompts for the password.

wallyk gravatar imagewallyk ( 2018-09-10 02:38:19 -0500 )edit

answered 2018-09-09 20:37:52 -0500

cmurf gravatar image

updated 2018-09-10 11:09:29 -0500

I use sudo -i which will make any user in group wheel or in sudoers, effectively root. It's not identical but for most things it's root without having to have root logins persistently enabled.

edit flag offensive delete link more


the correct syntax would be: sudo -i

florian gravatar imageflorian ( 2018-09-09 22:16:14 -0500 )edit

Thanks for catching that typo! Fixed!

cmurf gravatar imagecmurf ( 2018-09-10 11:09:10 -0500 )edit

Question Tools

1 follower


Asked: 2018-09-09 18:52:06 -0500

Seen: 313 times

Last updated: Sep 10 '18