fakeroot
Run a command in an environment faking root privileges for file manipulation. tldr-pages
On Linux
Linux
Start the default shell as fakeroot
fakerootIdentifyRun a command as fakeroot
fakeroot -- command command_argumentsIdentifyRun a command as fakeroot and save the environment to a file on exit
fakeroot -s path/to/file -- command command_argumentsIdentifyLoad a fakeroot environment and run a command as fakeroot
fakeroot -i path/to/file -- command command_argumentsIdentifyRun a command keeping the real ownership of files instead of pretending they are owned by root
fakeroot --unknown-is-real -- command command_argumentsIdentifyDisplay help
fakeroot --helpIdentify