How to run as Root in Ubuntu

preview_player
Показать описание
Learn how to perform administrative tasks in ubuntu and run things with root access by following this step by step tutorial

In ubuntu, root access allows the user to perform administrative tasks. With root access permission mask, the user can perform whatever tasks he desires for; he/she gets the rights of an administrator.

In this tutorial, we will teach you how to run as root in Ubuntu.

Step 1 -- Create Desktop Shortcut
For that, you will need to open up terminal. With that done, we will create a desktop shortcut first. For that, type
"gnome-desktop-item-edit ~/Desktop/ --create-new" and hit the enter key to proceed further.

Step 2 -- Create Launcher
Once done, the create launcher window will open up. Over there, name the shortcut first. For the purpose of this tutorial, we will name it "Run as root".
Now move over to the command section and type in
"/usr/bin/gksu". Once you are done, simply click on the "Ok" button.

Step 3 -- Run with Root permissions
Now let's close the terminal application and over here in the desktop, you can see the "Run as root" icon. Let's double click on it and in the "Run" option, let us type "Firefox" in order to open up the browser.

Step 4 -- Enter password for admin tasks
Now you will be asked for the root password to open up the application. Once you have entered the password, simply click on the OK button and the application will be opened as root.
However, very rarely in ubuntu you'd need root access. Anything that requires you to do as an admin can be easily done via gksudo or sudo. Hope you found our "How to run as root in ubuntu" guide helpful.
Рекомендации по теме
Комментарии
Автор

That was really helpful, fast and straight to the point!
Thanks man!

That really helped!

nafissadik
Автор

I tried to install gksu, but it ends up with this error: Package 'gksu' has no installation candidate
Any idea?
Thanks

RalphNgOfficial
Автор

This doesn't work on Ubuntu 18.04 and up because gksu has been removed.

hungowapower
Автор

How would you run "Files" as root? What would you type in "Run?"

iceeyy
Автор

you have to change Desktop by Bureau, i think that you use a french version

ilyasamzil
Автор

stuck at creating root folder on desktop when we type /usr/bin/gksu it doesnt create a folder

kingofyoutube
Автор

there was an error launching the application. please help :C

hellsbell
Автор

followed all the steps. things happened like you said - except when i clicked on root folder - i couldnot access it. I'm trying to install fonts. please help & thanks in advance

RajivJadhav
Автор

Not working with multiple displays. Every program crashes with "signal 5 in wl_display_connect() or assertion 'GDK_IS_SCREEN (screen)' failed

seektruth
Автор

Doesn't work. Launching the program causes an error.

Ponape
Автор

I'll get There was an error launching the application. please help :C

nkr
Автор

why i need root:
i have a multiboot. windows10 locked in bootloop. restart all to 0 without loosing fiels i need.

Yukki_
Автор

Sadly, the most GUI-only way I found so far :/ :)

vlachy
Автор

gnome-desktop-item-edit ~/Desktop/ --create-new
gnome-desktop-item-edit: command not found

yashrawat
Автор

$ gnome-desktop-item-edit ~/Desktop/ --create-new

gnome-desktop-item-edit: command not found

Raul