Ask Your Question
2

How do I make it so Sudo uses root instead of my user? (I'm not in sudoers)

asked 2015-01-05 17:54:35 -0600

Nolan gravatar image

updated 2015-01-05 18:24:05 -0600

This has been bugging me lately because must the commands I want to run require sudo.

EDIT: Solved. I also realized my account was not an administrator.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
2

answered 2015-01-05 18:16:30 -0600

sideburns gravatar image

Welcome to ask.fedora! If this is your computer and you installed Fedora, you should know the root password. Using sudo is (mostly) to give people limited access to root-only commands without giving them the root password. (It's also used in large-scale IT to get a log of who did what with root.) Run this command:

man su

and see how to get real root without having to append each and every command with sudo. Note that if you only need to run one command you can use either

su -c command

or,

su -c 'command with arguments'

and in either case, you'll be back in your regular account when you get a prompt back. One of the nice things about using su instead of sudo is that you don't need to be in the wheel group to use it.

edit flag offensive delete link more

Comments

Thank you!

Nolan gravatar imageNolan ( 2015-01-05 18:28:04 -0600 )edit

Your Answer

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

Add Answer

Question Tools

Stats

Asked: 2015-01-05 17:54:35 -0600

Seen: 304 times

Last updated: Jan 05 '15