Hello guys,
I stumbled over this side when I was searching about restoring Fedora filesystem permissions and how to backup and restore Nextcloud content.
I don't know how I got it done to change the whole filesystem permissions from standard to 777. I lost my root and user access too.
I got some information about to use those commands:
for p in $(rpm -qa); do rpm --setperms $p; done
for p in $(rpm -qa); do rpm --setugids $p; done
I lost my root and user access but I'd fix it with Fedoras rescue mode.
All the rpm packages are fixed as much I can see it but there are a lot of key files and files / directories which aren't fixed.
The Nextcloud data directory is untouched, it is mounted on a separat partition but the whole Nextcloud in /var/www/html/... has 777 now. I could fix this back to the right permissions, but anyway I have a feeling about that my system became unsecure.
My questions are:
- Is there any way to get my system secure again?
- In case I have to reinstall which is the best way to backup and restore Nextcloud? I have access to all files and /data is mounted on a separat partition.
Any help is appreciated.
Beste regards,
Woti