I
I
Ivanko2018-11-26 17:59:35
linux
Ivanko, 2018-11-26 17:59:35

Run a program in Ubuntu with su rights?

How to easily and without witchcraft run a program in Ubuntu Desktop under su rights, from a shortcut, without a terminal?
In particular Doublecmd. Why is everything so difficult?

Answer the question

In order to leave comments, you need to log in

5 answer(s)
A
Adamos, 2018-11-26
@Adamos

You should run with admin rights with caution, this is not Winda, which will break itself, but will not let the admin.
For programs that really require admin rights to perform their immediate tasks (like Synaptic, for example), there is gksu.
And to run from the admin every FM and any editor is a dashing jump on a rake. Then you yourself will cry here "why do I have permission denied around me" and "I didn't want this at all, it's on its own."

B
Boris Syomov, 2018-11-26
@kotomyava

Everything is so complicated because it is simply not necessary in everyday work, and even dangerous, and there is no point in simplifying the process.
Running as root is often a very bad idea, and applications that should be run as root, such as a package manager or a system configuration tool, already know how to do it.
Often, in desktop Linux, you can now do without editing configs, and if you really need it, there is, after all, a console and sudo / su.
But in general, this can be done if instead of the command itself in the shortcut you specify:
gksudo is your command

U
uRoot, 2018-11-26
@uroot

In particular Doublecmd

Oh, I feel it is unnecessary for you ... You
need to edit the shortcut in the Menu and prescribe another command before the main command to request launch from under root. Which Adamos hinted at. But it's bad practice anyway.

P
pfg21, 2018-11-26
@pfg21

if you really want the program to run from under the admin, you can register root as the owner of the program and enable the suid-bit

C
CityCat4, 2018-11-27
@CityCat4

Running a file manager with root rights, having no idea how linux works, is about the same as wandering around the city outskirts on a summer evening - theoretically they shouldn’t be kicked in the face, but you will almost certainly get it ... I
advise you to run only specific commands that do specific actions. The risk is too great that you, as a commander, will erase something the system needs and then have to rearrange it. (Although this also has a plus - you will install faster :))

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question