Bienvenue invité ( Connexion | Inscription )
1 Nov 2007, 18:56
Message
#1
|
|
![]() Macbidouilleur d'Or ! ![]() ![]() ![]() ![]() ![]() Groupe : Membres Messages : 2 345 Inscrit : 10 Feb 2003 Lieu : Paris Membre no 6 101 |
Bonjour,
J'ai reçu hier un MacBook Pro avec un DVD de mise à jour pour Leopard. Je me suis empressé de l'installer (avec toutes les langues etc... pas le choix ) J'ai ensuite transféré les données de mon "vieux" mac powerbook G4 mais impatient, je crois avoir fait une bêtise : en effet, j'ai défini un autre nom d'utilisateur pour distinguer l'ancien et le nouveau mais du coup ça a dupliqué les dossiers utilisateurs et même créé un utilisateur en plus sur le MBP qu'on pourrait appeler PWB. C'est peut-être pas plus mal pour faire le tri mais du coup, une fois que j'ai transféré tous les dossiers et fichiers utiles, j'ai effacé "l'utilisateur récupéré (PWB)". Le problème c'est que je me retrouve avec des autorisations complètement chamboulées, il y a pas mal de fichiers avec les autorisations de PWB qui, comme il a été effacé, se transforment en "unknown" ce que je voudrais faire, c'est transférer toutes les autorisations "unknowm" vers "MOI (MBP)" car en écriture, c'est super complexe, je rentre 15 fois par heure mon mot de passe admin... Si vous avez un moyen de m'aider... Je me demande s'il faudrait passer en "FCK user" ou un truc comme ça, root.... (autorisations réparées...) C'est quand même bizarre, parfois les autorisations existent en double (cf capture ci-jointe...) ![]() Parfois un message apparaît mais je ne sais pas ce que ça veut dire... Personne ne connaît un site qui répertorierait toutes les "erreurs" système de mac os X ? Savoir ce que ça veut dire au moins... Merci de votre aide Croyez-vous qu'une réparation des autorisations à partir du DVD va régler le problème ??? Là c'est assez agaçant. Ce message a été modifié par Macoupc - 8 Nov 2007, 16:24. -------------------- MacBook Pro 2023 CPU M3 8 cœurs 16 go RAM écran 14" - macOS 14 iPhone 12 mini 5,4'' iOS 17 iMac 4K 2017 intel i7 pour le boulot iMac M1 2021 pour le boulot |
|
|
|
![]() |
13 Nov 2007, 17:07
Message
#2
|
|
|
Macbidouilleur de vermeil ! ![]() ![]() ![]() ![]() Groupe : Membres Messages : 1 014 Inscrit : 7 Oct 2004 Membre no 24 856 |
Bonjour,
sur MacFixit, il y ça: http://www.macfixit.com/index.php?date=2007-11-12 PS1: Je m'excuse mais je n'ai pas le temps matériel de traduire (ni les compétences). PS2: C'est long mais ça va vite disparaître si l'on n'est pas abonné à MacFixit. PS3: Je ne sais pas faire les Tab en BB Code, j'ai fait au mieux. CITATION How to change the group id of files and folders
The problem Since upgrading to Leopard, many users have been experiencing permissions problems. Some of these are connected with Group access to their files. A typical symptom is this: you select a file in the Finder and choose File > Get Info to examine its permissions. Permissions are listed at the bottom of the Get Info window, under "Sharing and Permissions". The Group here is listed as "Unknown". And then, possibly, when you click the lock (to authorize) and then try to change the Group setting, the Finder crashes. Files and folder with the "Unknown" group are causing other problems as well. There is some evidence that Spotlight might not index them correctly, and perhaps Time Machine may not even back them up properly. And these incorrect groups might be at least partly to blame for the slowness of Repair Permissions on some people's machines. It isn't entirely clear what all the ramifications are. Nor is it obvious why having an "Unknown" group should make much difference. Groups is Unix are not usually a big deal. The usual way in which groups come into place is when you're the admin user; this fact is expressed by your being a member of the admin group, and it is that that gives you write access to the top-level Applications folder, whose owner is root (which is not you) but whose group is admin (of which you're a member, and so the read-write group permissions on the Applications folder apply to you). Funny things happen with groups all the time, and you never even notice. For example, in Tiger, when I save a new TextEdit file to my Desktop, it has gid 501, which is correct, but when I create a file with Preview (by copying a selection from an existing Preview window and choosing File > New From Clipboard) and save it to my Desktop, it has gid 0, which is wrong. So Mac OS X itself assigns things the wrong group quite frequently. This has no ill effects, though. But it seems that an incorrect group such as this "Unknown" group which people are seeing does make a difference in Leopard. Why would this be? Quite honestly, that isn't clear. Perhaps it has something to do with the new implementation of the file sharing system, which depends very heavily on groups. For example, on my Leopard machine, my user is a member of the com.apple.access_screensharing group, because I've got screen sharing turned on for that user, and of the com.apple.access_ssh group, because I've got remote login turned on for that user. That's a completely new mechanism for marking who gets what kind of shared access to the computer, so perhaps that's why Leopard is so touchy about groups, in a way that Mac OS X never was before. The cause Where are these "Unknown" group settings coming from? In a sense, the answer is very clear: it's that between Tiger and Leopard, Apple has changed its group policy for users. *In Tiger, a user was associated primarily with a group with the same name and number as the user. To see this, in Tiger, give the id command in the Terminal. What you'll see will start something like this: uid=501(cooluser) gid=501(cooluser) groups=501(cooluser) *In Leopard, a user is associated primarily with the "staff" group. To see this, in Leopard, give the id command in the Terminal. What you'll see will start something like this: uid=501(cooluser) gid=20(staff) groups=20(staff) ("uid" means user id; "gid" means group id. The id has both a number and a name.) And there is one other point, which is equally important: * In Leopard, for some people at least, there is no 501 group (or whatever your old group number might be). It's the combination of these two things - the 501 user used to be a member of the 501 group, but in Leopard there is no 501 group - that is causing a file or folder with group id 501 to have its group described as "Unknown". Another part of the cause is that, for some people at least, the Leopard installation process is not compensating for this change. It should be. Changing group values is not all that uncommon; it happens all the time. It happens, for instance, when a file or folder is copied from one user to another. For example, when I use File Sharing to connect my Tiger machine to my Leopard machine and copy a file from the one to the other, the file has uid 501 and gid 501 on Tiger, but when it is copied to Leopard it takes on uid 501 and gid 20. In other words, the system compensates for the fact that group 501 doesn't exist on the Leopard machine; the target user on the Leopard machine has group 20, so the copied file is assigned group 20. The trouble is that this is not happening for some users during the upgrade process, and so there are a lot of files and folders hanging around whose group id is 501. Since there is no Leopard group whose gid is 501, Leopard calls this group "unknown". Fixing the group id, the Finder way Some readers have found that they can correct permissions on a migrated folder merely by copying it (not moving it) to the Deskop, and then moving it back into place, replacing the troublesome copy of the folder. Perhaps that technique would have come in handy during the upgrade to Leopard. For example, let's say you did an Archive and Install where your old stuff has ended up the Previous Systems folder. When you move a folder of your old stuff back into place, it might make a difference whether you move it or copy it (by holding down the Option key). Using the latter technique might cause group ids to be changed properly. That point is tentative, though, and probably needs further investigation. Fixing the group id, the Unix way. Using a simple Unix command in the Terminal, you can correct the group id of all the files and folders within your Home directory, changing only those group ids that are specifically incorrect. (We're going to stay inside the Home directory because messing with permissions outside it is a completely different kettle of fish, and is not recommended unless you really know what you're doing.) If you want to try this, you should be aware that things could backfire very seriously, so make sure you've got a backup before doing anything else, and make sure you mentally sign the MacFixIt Total Indemnification Form in advance. (Having said that, I did run this on my machine before telling you about it, and it did work.) 1.Use the Spotlight preference pane to exclude your entire hard disk from Spotlight. The reason is that you are about to make a lot of changes, and while you are making them, you don't want Spotlight to be running along behind you, trying to note them all down. This will slow down the whole process considerably. So effectively you want to turn Spotlight off temporarily. 2.For the same reason, turn off Time Machine temporarily. Oh, by the way, every file whose gid gets changed by this process is going to count as a changed file, so it is going to get copied the next time you perform a Time Machine backup. That could be a long, large backup. 3.Next, make sure that your group id is 20. The id command in the Terminal, as shown above, should demonstrate this. If your group id is not 20 you're going to need to change it. To do so, use the Accounts system preference pane. Click the lock (to authorize yourself) and then control-click on your user account in the list of accounts and choose Advanced Options. In the resulting dialog, if your Group ID isn't 20, make it so and dismiss with OK. 4.Now, in Terminal, you need to know the number of the gid that is wrong. So first, find yourself a file or folder whose group is showing up as "unknown" in the Finder's Get Info window, and navigate to its containing folder. In the Terminal, type ls -aln followed by a space, and then drag the folder containing the problematic file or folder right from the Finder into the Terminal window, and hit Return in the Terminal. You'll see something like this: drwx------ [number] 501 501 [number] [date] myFolder The key thing is that pair of numbers in the middle, which I've shown as 501 501. The first is the uid of this item; the second is the gid of this item. It is the second number, here 501, that should be changed to 20. 5.Okay, I'm going to pretend that the troublesome group number is in fact 501. Then, in the Terminal, do this. First, type cd followed by Return. That's to bring you into your Home folder. Now, very very carefully, triple-checking everything before you dare to hit Return, type sudo find . -group 501 -exec chgrp 20 {} \; Because of the pesky CMS used here at MacFixIt, I can't be sure how that is going to come out on your machine, so I'm going to recite it in words: "sudo", space, "find", space, dot, space, hyphen-"group", space, "501", space, hyphen-"exec", space, "chgrp", space, "20", open-curly-brace-close-curly-brace, space, backslash-semicolon. I'm particularly worried about that backslash. To explain all of that: * "sudo" means "Let me do this even if permissions would normally stop me." * "find" means "Locate the files matching the following description and perform the following operation on them." * dot means "Start in the folder where we are now," which is your Home folder because of the previous cd command. * "-group 501" means "Look for files and folders whose group id is 501." If your troublesome group id is different (e.g. 502), the number here will need to be different. * "-exec" means "And here's what I want you to do when you find one." * "chgrp 20" means "Change its group id to 20". * {} means "When I say 'it', I mean the file or folder you just found." * backslash-semicolon means "That's the end of what I want you to do." If you're happy with all that, press Return. This command is going to take quite a long time to execute, so don't be discouraged. Don't do anything with the computer, either. Just let it run. There isn't going to be any feedback until it's all over, at which time your prompt will appear in the Terminal (and, if you computer is like mine, your fans will spin back down!). 6.You can now use ls -al in the Terminal, or use the Finder's Get Info window, to check that things went as expected. When you're satisfied, restart the computer (just for luck), and remove the hard disk from the Spotlight excluded items. Spotlight will reindex the hard drive. When that's all over, you can turn Time Machine back on and resign yourself to a large backup next time it runs. Conclusions The change between Tiger and Leopard where a user's group number is now 20 instead of a number matching the original user number is a big change, and it seems that Apple didn't prepare for it as well as it might have. And pulling the rug out from under users by invalidating the previously existing 501 group is really not very nice. However, what's most distressing about the current situation is, as usual, the lack of information and the lack of tools. * Apple gave no warning that this change was coming. * Apple has never, since the dawn of Mac OS X, supplied a decent GUI utility for fully dealing with Unix ownership and permissions. * Apple has never provided clear information on what the correct ownership and permissions for various files and folders should be. There is thus a tendency on Apple's part to obscurity verging on silence when it comes to technical matters, even when those technical matters are quite important. This might be to some extent denial ("Mac OS, it just works") and partly a desire not to burden users with technical concerns. But when you're knee-deep in the frustration of the situation that the Leopard installation has left you with, Apple's attitude may feel more like plain arrogance. In any case, the irony is this: thanks to the lack of decent official GUI tools and information, users are burdened with those technical concerns anyway, and have no recourse but to grapple with the underlying Unix data in the Terminal, and are left to a combination of deduction and guesswork to figure out what the goal is and how to achieve it. Ce message a été modifié par girafe - 13 Nov 2007, 17:52. |
|
|
|
Macoupc Problèmes d'autorisations 1 Nov 2007, 18:56
Macoupc CITATION(Macoupc @ 1 Nov 2007, 18:56) 241... 4 Nov 2007, 21:48
jujuhtst La réparation des autorisations n'y est pour ... 6 Nov 2007, 11:14
_Panta CODEsudo chown -R ton_nom_unix:ton_nom_unix ~/... 6 Nov 2007, 13:44
jujuhtst CITATION(_Panta @ 6 Nov 2007, 13:44) 2422... 6 Nov 2007, 14:04
radioman CITATION(Macoupc @ 1 Nov 2007, 18:56) 241... 6 Nov 2007, 15:02
Macoupc CITATION(radioman @ 6 Nov 2007, 15:02) 24... 7 Nov 2007, 02:32
jujuhtst CITATION(Macoupc @ 7 Nov 2007, 02:32) 242... 7 Nov 2007, 09:49
Macoupc J'ai donc mis 2 fois mon nom unix et entrée..... 7 Nov 2007, 20:54
jujuhtst CITATION(Macoupc @ 7 Nov 2007, 20:54) 242... 7 Nov 2007, 21:11
Macoupc CITATION(jujuhtst @ 7 Nov 2007, 21:11) 24... 8 Nov 2007, 02:18
jujuhtst CITATION(Macoupc @ 8 Nov 2007, 02:18) 242... 8 Nov 2007, 10:13
Macoupc Merci de ta réponse. Ce n'est pas spécial... 8 Nov 2007, 14:44
jujuhtst CITATION(Macoupc @ 8 Nov 2007, 14:44) 242... 8 Nov 2007, 18:29
Macoupc CITATION(jujuhtst @ 8 Nov 2007, 18:29) 24... 12 Nov 2007, 00:27
jujuhtst CITATION(Macoupc @ 12 Nov 2007, 00:27) 24... 12 Nov 2007, 01:05
Macoupc CITATION(jujuhtst @ 12 Nov 2007, 01:05) 2... 12 Nov 2007, 02:02
jujuhtst CITATION(Macoupc @ 12 Nov 2007, 02:02) 24... 12 Nov 2007, 09:42
Macoupc Merci pour l'organisation du forum, c'est ... 12 Nov 2007, 19:16
footix82 Bonjour,
Après des années de lutte acharnée su... 12 Nov 2007, 22:22
Macoupc Je retrouve tout à fait dans le comportement du s... 12 Nov 2007, 23:50
darenzana Bonjour,
j'ai mené ma petite enquête, parce ... 13 Nov 2007, 00:34
darenzana Merci pour ces explications de MacFixit.
Sauf que ... 13 Nov 2007, 20:04
footix82 Bonsoir,
j'ai essayer la méthode darenzana m... 13 Nov 2007, 22:05
darenzana Effectivement, j'ai oublié de préciser que p... 13 Nov 2007, 22:16
footix82 Oui là ça fonctionne par contre je ne vois pas d... 13 Nov 2007, 22:47
darenzana CITATION(footix82 @ 13 Nov 2007, 22:47) 2... 13 Nov 2007, 22:51
footix82 Ca marche à moitié. Certes cela ne plante pas lo... 13 Nov 2007, 23:57
darenzana Tu pourrais mettre une capture d'écran de la ... 14 Nov 2007, 21:10
Macoupc edit : Bon, je me suis plongé plus longuement dan... 15 Nov 2007, 02:47
footix82 Voila j'ai fait des captures d'écran que ... 19 Nov 2007, 19:58
footix82 ... 20 Nov 2007, 22:15
darenzana @footix82: le '+' indique que des droits �... 21 Nov 2007, 21:09
footix82 Hello,
Après avoir récupéré la propriété de... 23 Nov 2007, 13:02
darenzana Ok, j'ai compris ton problème, et je pense av... 24 Nov 2007, 15:23
footix82 CITATION(darenzana @ 24 Nov 2007, 15:23) ... 26 Nov 2007, 00:37
darenzana CITATION(footix82 @ 26 Nov 2007, 00:37) 2... 27 Nov 2007, 01:20
footix82 CITATION
Pour résoudre le pb de manière radicale... 28 Nov 2007, 23:25
Rigodon Alors oui il y a un problème en cas de mise à jo... 24 Nov 2007, 16:25
Macoupc CITATION(Rigodon @ 24 Nov 2007, 16:25) 24... 25 Nov 2007, 20:59
darenzana Rigodon, non, pas forcément. Relis l'ensemble... 24 Nov 2007, 16:28
Rigodon Oui ta méthode est bonne aussi ou complémentaire... 24 Nov 2007, 16:54
darenzana Oui, d'accord, je n'avais pas lu la partie... 24 Nov 2007, 17:31
Rigodon On a parfois un @ à côté des droits d'un fi... 24 Nov 2007, 17:41
jujuhtst Un fil instructif là :
http://discussions.apple.c... 24 Nov 2007, 18:05
darenzana le @ indique que le fichier a des attributs étend... 24 Nov 2007, 19:31
Rigodon Merci ! il affiche com.apple.finderinfo mais j... 24 Nov 2007, 20:23
jujuhtst CITATION(Macoupc @ 25 Nov 2007, 20:59) 24... 25 Nov 2007, 21:27
Macoupc CITATION(jujuhtst @ 25 Nov 2007, 21:27) 2... 26 Nov 2007, 11:07
Rigodon CITATION(jujuhtst @ 25 Nov 2007, 21:27) 2... 25 Nov 2007, 21:30
jujuhtst CITATION(Macoupc @ 26 Nov 2007, 11:07) 24... 26 Nov 2007, 11:33
Macoupc CITATION(jujuhtst @ 26 Nov 2007, 11:33) 2... 26 Nov 2007, 12:51
Rigodon ça vient du "everyone deny delete" donc... 26 Nov 2007, 14:29
Macoupc CITATION(Rigodon @ 26 Nov 2007, 14:29) 24... 26 Nov 2007, 23:34
Rigodon Oui tu peux voir les ACL avec :
CODEls -le
Si tu v... 27 Nov 2007, 00:27
Macoupc CITATION(Rigodon @ 27 Nov 2007, 00:27) 24... 27 Nov 2007, 01:17
Rigodon Mais cette entrée est là pour des raisons de sé... 27 Nov 2007, 10:42
Macoupc J'ai fait le code CODEMBP:~ yoann$ fi... 27 Nov 2007, 13:13
Rigodon Tu as sûrement restauré le groupe yoann donc ce ... 27 Nov 2007, 13:25
darenzana Le sudo ne devrait pas être nécessaire, l'ut... 27 Nov 2007, 13:54
Macoupc CITATION(darenzana @ 27 Nov 2007, 13:54) ... 30 Nov 2007, 12:49
Perklo Bonjour,
Voilà l'ignorant de service...
J... 6 Dec 2007, 19:19
steenux Bonjour,
J'ai ouvert un autre fil sur le mêm... 7 Dec 2007, 09:52
Macoupc CITATION(steenux @ 7 Dec 2007, 09:52) 247... 7 Dec 2007, 17:26
steenux Désolé pour l'avatar, mais quand je me suis ... 7 Dec 2007, 21:21
steenux Bonsoir,
En cherchant des infos sur l'utilisa... 8 Dec 2007, 18:56
Joël Pierre Jai aussi des problème bizarres avec les autori... 2 Jan 2008, 20:12
Rigodon Si le système te demande ton mot de passe c'e... 2 Jan 2008, 21:06
Joël Pierre CITATION(Rigodon @ 2 Jan 2008, 21:06) 249... 2 Jan 2008, 22:55
darenzana Bonjour,
je pense que ton problème est lié aux d... 2 Jan 2008, 23:08
Joël Pierre CITATION(darenzana @ 2 Jan 2008, 23:08) 2... 3 Jan 2008, 09:44
darenzana Il me semble que la réparation des autorisations ... 4 Jan 2008, 03:34
Joël Pierre CITATION(darenzana @ 4 Jan 2008, 03:34) 2... 4 Jan 2008, 18:12
darenzana J'ai les mêmes droits sur /Library... On va d... 4 Jan 2008, 20:14
steenux Moi, je n'ai pas exactement les mêmes droits ... 5 Jan 2008, 18:01
darenzana CITATION(steenux @ 5 Jan 2008, 18:01) 250... 5 Jan 2008, 18:07
darenzana CITATION(steenux @ 5 Jan 2008, 18:01) 250... 6 Jan 2008, 01:07
steenux Exact, j'avais mal lu, je possède bien les m�... 5 Jan 2008, 18:43
Rigodon Le + veut dire qu'une acl existe sur le fichie... 5 Jan 2008, 19:38
steenux OK, merci pour ces explications.
Je pense compren... 6 Jan 2008, 12:31
darenzana CITATION(steenux @ 6 Jan 2008, 12:31) 250... 6 Jan 2008, 14:00
stefhan Bonjour,
Je viens poster ici parce que je n'a... 10 Jan 2008, 01:06
steenux @darenzana:
Merci beaucoup pour cette explication ... 10 Jan 2008, 08:42
el Charlot Bonjour, je post ici mon problème, similaire, des... 10 Jan 2008, 09:01
darenzana CITATION(el Charlot @ 10 Jan 2008, 09:01)... 10 Jan 2008, 20:49
Rigodon J'ai un problème étrange. J'ai effacé l... 10 Feb 2008, 15:31
Rigodon Je viens de remarquer que l'utilisateur n... 10 Feb 2008, 16:09
darenzana CITATION(Rigodon @ 10 Feb 2008, 16:09) 25... 10 Feb 2008, 17:06
Rigodon Je crois que le problème vient de perian effectiv... 10 Feb 2008, 17:20
Rigodon Quel est l'intérêt de rajouter GroupMembers ... 10 Feb 2008, 19:56
Joël Pierre Jai un nouveau problème dautorisations bizarr... 10 Feb 2008, 20:48
Rigodon Dans le terminal :
sudo chmod 775 (glisser-dépose... 10 Feb 2008, 21:44
Joël Pierre CITATION(Rigodon @ 10 Feb 2008, 21:44) 25... 10 Feb 2008, 23:39
Rigodon CITATION(Joël Pierre @ 10 Feb 2008, 23:3... 11 Feb 2008, 00:16
stefhan C'est de pire en pire chez moi : dès que je f... 11 Feb 2008, 00:00
darenzana Pareil que la? 11 Feb 2008, 00:34
stefhan CITATION(darenzana @ 11 Feb 2008, 00:34) ... 11 Feb 2008, 00:56
Rigodon La réponse est dans son post :
"Notament, l... 11 Feb 2008, 01:16
stefhan J'avais pas tout compris...
Merci ! 11 Feb 2008, 01:54![]() ![]() |
| Nous sommes le : 23rd January 2026 - 09:56 |