How Do I Reset Permissions in Ubuntu?
Contents How Do I Restore Default Permissions in Ubuntu? but If Reinstalling Is Not an Option, Here’s an Idea: Install a Default Ubuntu Install on Another...
Contents
How do I restore default permissions in Ubuntu?
But if reinstalling is not an option, here’s an idea:
- Install a default Ubuntu install on another machine.
- Run this command to get the permissions of every file/directory on the system: find / | xargs stat -c ‘chmod %a “‘%n'”‘ > /tmp/chmod.sh.
- Execute that file chmod +x /tmp/chmod.sh && /bin/bash /tmp/chmod.sh.
Must Read
How do I reset default permissions in Linux?
Restoring File Permissions
- Open up a terminal window.
- Change into the directory containing the folder with the wonky permissions (I’ll assume the permissions backup file is in the same location)
- Type the command setfacl –restore=test_permissions. …
- Hit Enter.
3 мар. 2016 г.