Hi All
Accidentally I changed the ownership of all the directories under / to my own instead of root:root.
Now I am unable to use sudo and many bad things are happening.
Is there a way to revert the changes or change the permissions again to root:root or make sudo work ?
On 08/10/2011 01:36 PM, paladin007 wrote:
>
> Hi All
> Accidentally I changed the ownership of all the directories under / to
> my own instead of root:root.
> Now I am unable to use sudo and many bad things are happening.
> Is there a way to revert the changes or change the permissions again to
> root:root or make sudo work ?
Tsk. Boot a rescue disk, mount the appropriate partition/file system, and fix
the ownership.
in a terminal (maybe best in the console itself in this case). It asks of course for the root password (you will not see any echo of this).
When it is only the directories direct under / then you can make root the owner again, but when you use the -R option and thus changed all inside, you have a big problem.
EDIT: it is not clear what you exactly changed. In the title you say /etc/sudoers, but in the text all inside /, that is also /etc, but not /etc/sudoers. ???