I cannot open any files on my Manjaro Linux laptop. I really can't remember why it happened but I restarted my computer and now I dont have read/write access to any folder or file even though I've logged in.
Check the mode at which the partition is mounted i.e whether it is mounted in read-only or read-write mode.
You can use
mount command to check that. If this is the issue, then you can edit the
Somehow you got all your files owned by root... try, as root:
chown -R user:group /home/user
user is the user you log in as,
group is the group you belong to (probably also called
grep user /etc/passwd will give you something like:
the second number is the group number).
Be extremely careful with what you do as root (or using
sudo, it's the same thing), root is all-powerful and can easily destroy your system.