• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

chown at / :(

marekM

New Pleskian
anyone can help me?
i just setup chown on root dir, so i have to restore default permission but i cant find
any list
anyone can send me or show me where i can find file list with default permission?
i need list for dirs
/dev
/lib
/proc
/etc
/boot
/bin
/var
/boot
 
chown

i found similar problem:
http://forum.parallels.com/showthread.php?t=107462&highlight=chown

http://www.cyberciti.biz/tips/reset-rhel-centos-fedora-package-file-permission.html
RPM syntax to fix file ownership
To set user/group ownership of files in a package, enter:
rpm --setugids {packagename}
List installed package
You can list all installed package with rpm -qa command:
rpm -qa

http://wiki.centos.org/TipsAndTricks/YumAndRPM

Reset File Permissions
Have you managed to completely mess up file permissions for a given package? Not a problem, because RPM has you covered.
rpm --setperms <packagename>

but anyone can help me and send file list with permission or
send some nfo where can i find some virtual iso or check file list
 
Reset the permissions of the all installed RPM packages

You need to use combination of rpm and a shell for loop command as follows:
for p in $(rpm -qa); do rpm --setperms $p; done
for p in $(rpm -qa); do rpm --setugids $p; done

Above command combination will reset all the permissions to the default permissions under CentOS / RHEL / Fedora Linux.
 
Back
Top