1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice
  2. Dear Pleskians, please read this carefully! New attachments and other rules Thank you!
    Dismiss Notice
  3. Dear Pleskians, I really hope that you will share your opinion in this Special topic for chatter about Plesk in the Clouds. Thank you!
    Dismiss Notice

chown at / :(

Discussion in 'Plesk 9.x for Linux Issues, Fixes, How-To' started by marekM, Feb 28, 2011.

  1. marekM

    marekM New Pleskian

    19
     
    Joined:
    Aug 12, 2009
    Messages:
    3
    Likes Received:
    0
    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
     
  2. marekM

    marekM New Pleskian

    19
     
    Joined:
    Aug 12, 2009
    Messages:
    3
    Likes Received:
    0
    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
     
  3. IgorG

    IgorG Forums Analyst Staff Member

    49
    24%
    Joined:
    Oct 27, 2009
    Messages:
    24,543
    Likes Received:
    1,240
    Location:
    Novosibirsk, Russia
    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.
     
Loading...