Menu

#36 Mac Installer overwrites system owner:group permissions

open-fixed
5
2005-04-09
2005-04-07
No

The Mac Installer (1.08) needlessly and eroneously set many
system directories owner and group settings to owner=501 and
group=501, its also possible that the permissions are changed.

This happened on the following directories:

/Applications
/CVS
/Library
/Library/StartupItems
/private
/private/etc
/usr
/usr/bin
/usr/local

Which breaks the OS for every user on a multi-user machine except
for the user who was logged in at the time of install, as well as
breaking the CVS if /CVS is a CVS repository.

This is a common problem with Mac Installers and is partially
documented here

http://www.stepwise.com/Articles/Technical/Packages/
InstallerOnX.html
http://www.stepwise.com/Articles/Technical/Packages/
InstallerWoes.html

And this apple page warns to look out for this problem:
http://developer.apple.com/documentation/DeveloperTools/
Conceptual/SoftwareDistribution/Concepts/
sd_permissions_author.html#//apple_ref/doc/uid/20001769/
CFAJJJEH

Discussion

  • Anonymous

    Anonymous - 2005-04-07
    • status: open --> pending-fixed
     
  • Anonymous

    Anonymous - 2005-04-07

    Logged In: YES
    user_id=2857

    This should be fixed, please try it again and report any
    problems.

     
  • Stuart Espey

    Stuart Espey - 2005-04-09
    • status: pending-fixed --> open-fixed
     
  • Stuart Espey

    Stuart Espey - 2005-04-09

    Logged In: YES
    user_id=206022

    I've just installed the new installer, its no longer setting the ownership to
    501:501, but its still overwriting the owners and permissions.

    After installing the new version of Dijjer I ran the Repair Permissions part
    of Disk Utility, it doesn't check all directories but it did find these problems.

    Determining correct file permissions.
    Group differs on ./Applications, should be 80, group is 0
    Owner and group corrected on ./Applications
    Permissions corrected on ./Applications
    Group differs on ./Library, should be 80, group is 0
    Owner and group corrected on ./Library
    Permissions corrected on ./Library

    The Fix Permissions tool doesn't fix /Library/StartupItems

    /Applications - group is 80, package specifies 0, mode is 775, package
    specifies 555
    /Library - group is 80, package specifies 0, mode is 775, package
    specifies 555
    /Library/StartupItems - group is 80, package specifies 0, mode is 755,
    package specifies 555

    Unfortunately, I don't know the correct permissions etc for the unix
    directories (/usr,/private, /usr/bin etc)

     

Log in to post a comment.