Ask Your Question
2

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

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

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

Comments

1

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 -0600 )edit

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

florian gravatar imageflorian ( 2018-09-09 23:43:47 -0600 )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 -0600 )edit

2 Answers

Sort by ยป oldest newest most voted
3

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

florian gravatar image

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

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

Comments

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

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

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

cmurf gravatar image

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

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

Comments

the correct syntax would be: sudo -i

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

Thanks for catching that typo! Fixed!

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

Question Tools

1 follower

Stats

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

Seen: 306 times

Last updated: Sep 10 '18