Well, the good news is that command only touched the contents of 1 directory.
The bad news is that was the root directory.
The good news is that you learned something. Don't run commands, especially with sudo, that you don't completely understand.
The chmod command removed all permissions for "other". Most userids in the root directory are "other", since those files and directories are typically setup with root:root owner and group.
I'd guess you could boot into a try ubuntu flash drive, mount the root directory storage to /mnt/root and run
sudo chmod o+rx /mnt/root/
In theory, that should fix it enough, if not exactly.
On my systems, looks like only the
Code:
drwx------ 2 root root 16384 May 2 2020 lost+found/
needs different permissions.
I think you got lucky. Why?
- You could have included the -R option - chmod -R . That would have been infinitely worse. Restore from backups or fresh install would have been the only options.
- You've learned that versioned backups are critical.
- You've learned that owner, group, permissions, ACLs, and xattrs are 50% of what a backup needs. The data is only half of what you need in the backups.
Just be glad you didn't do this before a deadline.
Bookmarks