I change owner of some root files and folders like /etc/sudoers to www-data by mistake! And now I can't use "sudo" at all! How can I change them back to my user? It a ubuntu 18.04 server and I can olny access it via ssh.
Asked
Active
Viewed 66 times
0
-
In most cases it's impossible practically. – Pilot6 Jun 11 '20 at 13:05
-
Thanks I can change chmod somehow but my problem is ownership! – mahdiar Jun 11 '20 at 13:48
-
This is almost same. And it depends on what commands you exactly ran. – Pilot6 Jun 11 '20 at 13:50
-
sorry I can't boot to recovery – mahdiar Jun 11 '20 at 14:50
-
I add the line but nothing changed. I think becuase the file ownership is wrong – mahdiar Jun 11 '20 at 15:53