Überprüfen von Berechtigungen unter OSX

772
sam

Letzte Woche hatte ich Probleme beim Installieren von Homebrew auf einem neuen Mac, der einen Berglöwen betreibt. Ich habe versucht, Befehlszeilentools für Xcode hinzuzufügen und X11 zu installieren sowie eine Reihe anderer Dinge zu finden, die ich online gefunden habe Ich wusste nicht, was ich getan habe. Also entschied ich mich, es war eine neue Maschine, um die HD zu löschen und eine saubere Installation des Berglöwen durchzuführen.

Nun, da ich das getan habe, wenn ich zum Festplatten-Dienstprogramm gehe, um die Festplatten-Prämien zu überprüfen, bekomme ich eine Menge von Xcode- und X11-Fehlern. Ich führe die Berechtigungsreparatur aus, aber es scheint sie nie zu beheben. Ist es am besten, eine weitere saubere Installation durchzuführen? (Wie sauber ist eine saubere Installation, da ich nicht sicher bin, warum es diese X11-Fehler erhält, nachdem ich es nicht erneut installiert habe, nachdem ich das erste Wischen durchgeführt habe ..)

heres das Protokoll vom Datenträger-Hilfsprogramm (unten) Hinweis: Ich kann überprüfen, dann reparieren und dann erneut überprüfen. Dieselben Probleme treten auf?

Verifying permissions for “Macintosh HD” Permissions differ on “usr/X11/bin/freetype-config”; should be lrwxr-xr-x ; they are -rwxr-xr-x . Permissions differ on “usr/bin/agvtool”; should be lrwxr-xr-x ; they are -rwxr-xr-x . Permissions differ on “usr/bin/ibtool”; should be lrwxr-xr-x ; they are -rwxr-xr-x . Permissions differ on “usr/bin/instruments”; should be lrwxr-xr-x ; they are -rwxr-xr-x . Permissions differ on “usr/bin/opendiff”; should be lrwxr-xr-x ; they are -rwxr-xr-x . Permissions differ on “usr/bin/xcode-select”; should be lrwxr-xr-x ; they are -rwxr-xr-x . Permissions differ on “usr/bin/xcodebuild”; should be lrwxr-xr-x ; they are -rwxr-xr-x .  Permissions verification complete  Repairing permissions for “Macintosh HD” Permissions differ on “usr/X11/bin/freetype-config”; should be lrwxr-xr-x ; they are -rwxr-xr-x . Repaired “usr/X11/bin/freetype-config” Permissions differ on “usr/bin/agvtool”; should be lrwxr-xr-x ; they are -rwxr-xr-x . Repaired “usr/bin/agvtool” Permissions differ on “usr/bin/ibtool”; should be lrwxr-xr-x ; they are -rwxr-xr-x . Repaired “usr/bin/ibtool” Permissions differ on “usr/bin/instruments”; should be lrwxr-xr-x ; they are -rwxr-xr-x . Repaired “usr/bin/instruments” Permissions differ on “usr/bin/opendiff”; should be lrwxr-xr-x ; they are -rwxr-xr-x . Repaired “usr/bin/opendiff” Permissions differ on “usr/bin/xcode-select”; should be lrwxr-xr-x ; they are -rwxr-xr-x . Repaired “usr/bin/xcode-select” Permissions differ on “usr/bin/xcodebuild”; should be lrwxr-xr-x ; they are -rwxr-xr-x . Repaired “usr/bin/xcodebuild”  Permissions repair complete  Verifying permissions for “Macintosh HD” Permissions differ on “usr/X11/bin/freetype-config”; should be lrwxr-xr-x ; they are -rwxr-xr-x . Permissions differ on “usr/bin/agvtool”; should be lrwxr-xr-x ; they are -rwxr-xr-x . Permissions differ on “usr/bin/ibtool”; should be lrwxr-xr-x ; they are -rwxr-xr-x . Permissions differ on “usr/bin/instruments”; should be lrwxr-xr-x ; they are -rwxr-xr-x . Permissions differ on “usr/bin/opendiff”; should be lrwxr-xr-x ; they are -rwxr-xr-x . Permissions differ on “usr/bin/xcode-select”; should be lrwxr-xr-x ; they are -rwxr-xr-x . Permissions differ on “usr/bin/xcodebuild”; should be lrwxr-xr-x ; they are -rwxr-xr-x .  Permissions verification complete 
0
Wenn Sie einen besseren Titel für diese Frage kennen, schlagen Sie ihn bitte als Bearbeitung vor. sam vor 11 Jahren 0
Haben Sie versucht, die Festplatte von der [Wiederherstellungspartition] (http://support.apple.com/kb/HT4718) zu reparieren? user495470 vor 11 Jahren 0
@LauriRanta i havnt, als ich das System neu installierte, tat ich es über das Internet-Recovery. Ist es über die Partition anders? sam vor 11 Jahren 0

1 Antwort auf die Frage

0
Gordon Davisson

Dies sind keine tatsächlichen Fehler. Wenn Sie sich die detaillierten Fehler ansehen Permissions differ on “usr/bin/xcodebuild”; should be lrwxr-xr-x ; they are -rwxr-xr-x ., liegt der Unterschied im ersten Symbol ( lvs. -), das ist der Elementtyp und keine Berechtigungsflagge. Der Typ "sollte" ist lein symbolischer Link und -eine einfache Datei. Auf meinem Computer:

$ ls -l /usr/bin/xcodebuild lrwxr-xr-x 1 root wheel 5 Jul 13 16:35 /usr/bin/xcodebuild -> xcrun 

Ich habe Xcode seit einiger Zeit nicht aktualisiert, daher sollte es in der neuesten Version eine einfache Datei sein. oder es kann sein, dass Ihre Installation von Xcode irgendwie verstümmelt ist. In beiden Fällen sind die Berechtigungen selbst in Ordnung. Wenn es ein Problem gibt, ist es etwas ... anders.