#!/bin/bash # Restores file permissions for all files on a debian solve because I had a dual boot system (ubuntu and my old fedora install), but. How to reset folder permissions to their default in Ubuntu/Debian then, copy the /tmp/houdini-connections.co.uk file to the machine with broken. Ubuntu, like other Linux distributions, restricts access to files and system settings by default. You can give file or folder permissions to all users using. If by accident you execute a command that changes the permission or ownership of a bunch of folders or file in Debian, you are in a lot of. Fixing Permission Error. How to restore root directory permission to default? Rule #1: If you are not comfortable with command lines, do not run. dh_fixperms - fix permissions of files in package build directories field has the ( effective) value of binary-targets, dh_fixperms will also reset the ownership of. I will demonstrate on an Ubuntu daily build. You restore the permissions with the help of acl and the backup file you just created. To do. I changed permissions and the programs ran but with problems. Still had to change permissions again for a couple of files and programs are. If you are on recovery root prompt, please do chmod /. The system needed the execute bit for all users to boot correctly. mount /dev/ubuntu/root $MPOINT mount /dev/ubuntu/home DO SAVE complete file permission information along with owner information. Rk.