Ask Your Question
0

I have no root acess

asked 2016-11-30 22:35:08 -0500

Alacaster gravatar image

I was experimenting with scripting for my first time on my new fedora distribution and I accidentally disabled root. but I am not a sudoer. What. Do. I. Do? do I need to reinstall. I can't make myself a sudoer because root is disabled, and I cannot enable root because I am not a sudoer.

edit retag flag offensive close merge delete

Comments

How did you disable root? What kind of script experiments were you doing?

wallyk gravatar imagewallyk ( 2016-12-01 00:18:31 -0500 )edit

3 Answers

Sort by ยป oldest newest most voted
1

answered 2016-12-01 00:33:09 -0500

florian gravatar image

updated 2016-12-01 00:34:54 -0500

Not sure what you did to disable root....

Do you still know root's password? If yes, type su - in a terminal to gain root access. Then you can add your user to the wheel group (as sudoer) , usermod -aG ... (check man usermod).

You could also boot a Fedora Live system from DVD or USB, chroot into you existing system (google that, plenty of guides out there), and set a new password for root. Here is also description, it seem to be outdated but may work... chroot commands look good.

edit flag offensive delete link more
0

answered 2016-12-01 14:20:50 -0500

sixpack13 gravatar image

to became a sudoer user maybe you can set it via gnome control panel => Users => Unlock => switch account typ

edit flag offensive delete link more

Comments

1

I don't use Gnome, but don't you have to be in wheel to do that? Otherwise any regular user could give themselves an Admin account.

sideburns gravatar imagesideburns ( 2016-12-01 15:45:33 -0500 )edit

good question !

sixpack13 gravatar imagesixpack13 ( 2016-12-03 16:31:43 -0500 )edit

That works only if you are sudoer

florian gravatar imageflorian ( 2016-12-04 20:38:48 -0500 )edit
0

answered 2016-12-04 15:43:29 -0500

Worst case, you will have to do a root password recovery. This is not as scary as it sounds. There is, however, a bit of terminal work. Let me know if you still need any assistance.

edit flag offensive delete link more

Question Tools

Stats

Asked: 2016-11-30 22:35:08 -0500

Seen: 244 times

Last updated: Dec 01 '16