English
Ask Your Question
2

How do you log in as root in Fedora?

asked 2015-08-10 17:18:45 +0000

mywolfshepherd gravatar image

updated 2017-01-13 20:54:49 +0000

mattdm gravatar image

I need to do something which requires administrative privileges. How do I log in as the root user in Fedora?

edit retag flag offensive close merge delete

3 answers

Sort by ยป oldest newest most voted
2

answered 2015-08-10 18:13:58 +0000

sideburns gravatar image

updated 2015-08-10 18:15:40 +0000

Welcome to ask.fedora. That's a good question you ask. Generally, logging into a GUI as root is not recommended because it's far too easy to mess things up. In Fedora, it's disabled by default for safety reasons. I know that this can be changed, but not how, because I've never had a reason to do it. If you're using a terminal, and know the root password (If you installed Fedora yourself, you should because setting it is part of the install process.) you can use one or another form of the su command to become root, either until you exit that login or, if you've used su -c until that one command is complete. Or, if your account is in the wheel group, making it an Administrator, you can use sudo and your own password in place of su -c. If you need more help, either edit your question or make a comment below this because you only get to make one answer per question.

edit flag offensive delete link more

Comments

To open an entire shell via sudo, there exists sudo -s as well, albeit with the same caveats.

BRPocock ( 2015-08-10 19:17:01 +0000 )edit

what if i will using sudo, and the terminal tell me about my user account not in sudoers. first, i have added my account user to wheel group with usermod command, please giveme the example of the visudo in fedora 22, with working sudo. thanks

yonkyunior ( 2015-08-10 21:58:15 +0000 )edit

I think that you need to log out and back in for a change like that to be recognized. If not, somebody who uses sudo can probably give you more assistance.

sideburns ( 2015-08-10 22:13:56 +0000 )edit

i have tried that..log out and login again. shutdown and turn it on again. i think fedora doesn want to know me.. haha so for now, i just using $ su to install any package.

yonkyunior ( 2015-08-10 22:22:45 +0000 )edit

Try running the command groups in a terminal to find out exactly what groups your user is in.

sideburns ( 2015-08-10 23:28:38 +0000 )edit
0

answered 2015-08-14 09:40:17 +0000

ADITYA BAYANA gravatar image

You can login as root directly from the login screen by clicking on the "Not listed?" option and enter username as root and password will be the root password.

edit flag offensive delete link more

Comments

This doesn't work on kde: no 'Not Listed' pull-down. On KDE, go to System Settings -> Startup-Shutdown -> Login Screen -> Advanced and change the minimum UID to '0' from '1000'. Save (requires your user password). Now reboot you will see root listed as a login user along with every other user w a uid < 1000.... I can't see how to remove them from the KDE login screen... but you only see before you log in, anyway!

Dyspeptic Curmudgeon ( 2016-02-08 01:19:27 +0000 )edit
0

answered 2015-08-10 18:06:29 +0000

You can do ctl+alt+F3 then login as root or you can login to your user open a terminal and then

su -

to login as root

If you need to issue a command and has access as administrator you can do

sudo command

Hope this help

edit flag offensive delete link more

Comments

Interesting timing; I think we were both typing at the same time.

sideburns ( 2015-08-10 18:16:12 +0000 )edit

yes it looks like

aeperezt ( 2015-08-10 19:15:37 +0000 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

[hide preview]

Use your votes!

  • Use the 30 daily voting points that you get!
  • Up-vote well framed questions that provide enough information to enable people provide answers.
  • Thank your helpers by up-voting their comments and answers. If a question you asked has been answered, accept the best answer by clicking on the checkbox on the left side of the answer.
  • Down-voting might cost you karma, but you should consider doing so for incorrect or clearly detrimental questions and answers.

Stats

Asked: 2015-08-10 17:18:45 +0000

Seen: 54,241 times

Last updated: Jan 13