A
A
advancess2020-12-08 21:02:56
linux
advancess, 2020-12-08 21:02:56

How to change the owner of the /etc folder?

Changed ownership of the /etc folder. How can I change the owner back to root on this folder? There is only access to the terminal.
Any help would be appreciated

Ubuntu 20.04.1 LTS (GNU/Linux 5.4.0-1032-azure x86_64)

Answer the question

In order to leave comments, you need to log in

3 answer(s)
D
Dmitry, 2020-12-08
@q2digger

sudo chown root.root -R /etc

S
Sand, 2020-12-08
@sand3001

If there is a root password - write in the terminal
su -
enter the password and set the owner of the /etc directory to the root user.
If there is no root password, log in in single user mode and set the necessary rights. Google how to enter single user mode for your version of the system

V
Victor Taran, 2020-12-09
@shambler81

chown root:root /etc

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question