B
B
Blackmure2020-09-15 21:37:34
linux
Blackmure, 2020-09-15 21:37:34

How to turn on the root normally and permanently?

I am using linux kubuntu 20.04.
Already superficially figured out the terminal commands, administration and other garbage.
Initially, I was confused by the fact that I could not create and edit outside the home folder, but then I read about sudo, about the root user password and learned how to open full access in the terminal, but I'm wondering how to enable root rights outside the terminal. So that, for example, I could edit system folders and create new ones right in the explorer. It's just boring every time to climb into the terminal, enter su root or just sudo, write mkdir or nano, and if something new, then go to Google.
Help the young, inexperienced.

Answer the question

In order to leave comments, you need to log in

6 answer(s)
D
Dmitry, 2020-09-15
@Blackmure

don't work as root. never.
that's all you need to know, both young and old, if he suddenly, by misunderstanding, put himself Linux.

A
Adamos, 2020-09-15
@Adamos

You don't have to write mkdir and nano in the terminal if you don't want to.
sudo apt install mc - eg.
It is necessary to administer, launched sudo mc - and everything is quite clear.
And constantly sitting under the root is a bad thing, it was the default admin in XP that was one of the main reasons for the wild revelry of viruses in the early 2000s. Moreover, in Linux, unlike Windows, there is no fool protection and root can really kill the system in one motion.

C
CityCat4, 2020-09-16
@CityCat4

No need to work as root. This, as they say in mathematics, is an axiom, a thing that does not need proof. By default , there is no protection against root actions (there are some means, but they still need to be activated, but without understanding in any way). Ruth can easily, with one movement, bring the system into the "easier to rearrange" state, when nothing works and you don't understand why.

V
ValdikSS, 2020-09-17
@ValdikSS

Run graphics programs as root user. There is a GUI-independent program pkexec for this . KDE also has its own program: kdesu .
Graphical programs can also be run via sudo, but first you need to set up access to X.
Read more here: https://wiki.archlinux.org/index.php/Running_GUI_a...

P
pfg21, 2020-09-15
@pfg21

direct answer sudo -ilaunching a terminal session as root. the desire to root will disappear after the first unsuccessful action under the root.

V
Viktor T2, 2020-09-15
@Viktor_T2

Set up sudoers to run root "explorer" without a password:
user linux-machine = (root) NOPASSWD:/usr/bin/explorer
Then create a "shortcut" to run sudo "explorer"
And you will be happy.
You can do the same with any program.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question