I have used command
sudo setfacl -R -m u:ubuntu:rwx ..
Unfortunately, by mistake on root directory, stopped it in a middle, but to late.
I hoped to revere it by using sudo setfacl -bR /
however now I believe I lost sudo access.
ubuntu@oracle-free-vm: ~ $ sudo setfacl -bR /
sudo: /etc/sudo.conf is group writable
sudo: /etc/sudo.conf is group writable
sudo: error in /etc/sudo.conf, line 0 while loading plugin "sudoers_policy"
sudo: /usr/libexec/sudo/sudoers.so must be only be writable by owner
sudo: fatal error, unable to load plugins
This is a free instance on Oracle cloud, so I have no direct access to the system. I'm having trouble with su -
as I can't seem to know the password for root account, it might be disabled.
Is there any way to reverse changes made by setfacl
or get to root to run a fix command?
Or have I just lost all work and need to do reinstall?
Asked by Leszek J.
(11 rep)
Apr 6, 2023, 10:29 AM
Last activity: Apr 6, 2023, 11:34 AM
Last activity: Apr 6, 2023, 11:34 AM