So I was following a guide (incorrectly) and mindlessly ended up giving owner permissions to my home directory (/home/username
) to a different group (or user, not sure which is which). I figured out how to get myself owner back, but now it seems like I have a bunch of messed up permissions with directories inside my home directory. For example Flatpak apps which are installed in ~/. local/share/flatpak
no longer open. How can I revert back to how everything was before?
Here are the commands I used:
sudo chown -R plex: /home/username
Then using this as a reference I did the following:
sudo chown -R username:username /home/username
find /home/username -type f -print0 | xargs -0 chmod 664
find /home/username -type d -print0 | xargs -0 chmod 775
sudo chown -R userid:groupid /home/username
. In this command,userid
should be presumably the same withusername
. Please, first check theuserid
and thegroupid
using the commandid
(run theid
command with your current user; not usingsudo
).userid
should be the value given inuid=
userid andgroupid
should be the value given ingid=
groupid.