A
A
Andrey2020-02-19 11:50:29
linux
Andrey, 2020-02-19 11:50:29

Give rights to a new user as root on Centos 8?

Hey!
there is a user created at the installation stage, in the system he appears with the rights of "Administrator" (in the gui)
I can’t push him into the group in any way so that he becomes a full root
usermod -g root% username% does not work
usermod -a -G root% username% does not work
throws out an error, supposedly a crooked syntax , the

user is in the wheel group and how root rights should be, as I understand it ......
where is my cant?

Answer the question

In order to leave comments, you need to log in

5 answer(s)
C
CityCat4, 2020-02-19
@CityCat4

You don't have to do that.
Why?
Because here you sit all such a root under such a type of admin account and ask some question. And then some troll answers you - everything is simple, everything is decided by one command:
cd / && rm -rf *
And you launch it ...

V
Victor Taran, 2020-02-19
@shambler81

sudo useradd -o -u 0 -g 0 -s /bin/bash newroot

P
pfg21, 2020-02-19
@pfg21

enter the root shell through sudo -i- safe and effective..
fuck your asshole... security with root user??

A
Andrey, 2020-02-19
@MoscowStyle

the answer is
in /etc/sudoers add user
alex ALL=(ALL)ALL
https://centos.name/?page/tipsandtricks/becomingroot

M
metajiji, 2020-02-20
@metajiji

usermod -aG wheel %username%
Run from root.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question