J'ai retrouvé quelques manipulations qui permettent de redémarrer un Mac sans mot de passe, mais il ne s'agit pas de OS X Server, donc je préfère être prudent.
Une seule manip. concernant OSX.4 server a semblé sortir un utilisateur qui se trouvait dans la même situation que vous, -hormis que généralement le problème se règle paraît it, en attendant simplement quelques minutes ou en redémarrant le Mac - ce problème semblant provenir d'une "indisponibilité" du serveur..plus que d'un problème de login...
Mais un utilisateur sous OSX.4 affirme avoir réussi en supprimant le fichier suivant :
Disque_dur / Système / Library / StartupItems /Authserver /StartupParameters.plist
Un autre sous OSX.3 en supprimant celui ci
Disque_Dur/ System / Library / StartupItems / LoginWindow /StartupParameters.plist
Pour supprimer ces fichiers, il faudrait démarrer à partir d'un disque de démarrage externe, ou le faire en single user mode en utilisant les lignes de commandes.
Une autre manière de procéder, est de faire croire au Mac qu'aucun compte utilisateur n'existe en utilisant une faille de sécurité dans le système OSX.
En single user mode tapez, en respectant les espaces et en tenant compte que le clavier est en mode Qwerty:
mount -uw /
rm /var/db/.AppleSetupDone
reboot
Le Mac va redémarrer et lancer le processus de création d'un compte administrateur. Créez en différent de celui qui existe. Ensuite dans les préférences système, vous pouvez affecter un nouveau mot de passe au compte "normal".
Cette manip. marche sur un OS standard, je ne l'ai pas testé sur un OS server... à vous de voir si vous voulez prendre le risque..
Je me permet également de Copier-coller une discussion ancienne que j'avais gardé au cas ou... il s'agissait d'un utilisateur qui demandait de l'aide après avoir "perdu" l'utilisateur root...
"
Ricka Gerstmann
Level 1
Joined: May, 2003
Posts: 23
In a chain of events too stupid to repeat, I accidentally deleted my root account in NetInfo Manager. Is there a way to put it back in the terminal? The terminal tells me that /var/root exists. I can't open "Accounts" in System Preferences and NetInfo gives me multiple error messages: "Domain / has no root account. You must log in on the computer named MyComputer-comp.local (where the master is located) to make changes."
Anyway to fix this or do I have to reinstall the system?
Thanks,
Ricka
RE: Deleted Root Account
( msg # 1.: Posted Aug 20, 05 4:48 pm )
Gary Kerbaugh
Level 4
Joined: Jan, 2001
Posts: 5775
Hi Ricka,
That's a pretty serious issue; I've heard it referred to as a disaster. On a different thread today I wrote some instructions for creating a new NetInfo database and that might be the easiest thing to do. Also, I've never done this but I at least have a solution that seems like it should work in theory.
When you boot into Single User Mode, (hold down <Command>-s at the chime) you are root even if no such user exists in NetInfo. That's because it's in /etc/passwd file. The downside is that NetInfo isn't running so most commands for interacting with NetInfo won't work. The one command that will work is nicl, which has an option, "-raw", for modifying the database when NetInfo isn't running. If that works as I would expect, the following commands might do what you want.
nicl -raw /var/db/netinfo/local.nidb -create /users/root
nicl -raw /var/db/netinfo/local.nidb -create /users/root passwd '*'
nicl -raw /var/db/netinfo/local.nidb -create /users/root uid 0
nicl -raw /var/db/netinfo/local.nidb -create /users/root expire 0
nicl -raw /var/db/netinfo/local.nidb -create /users/root home /var/root
nicl -raw /var/db/netinfo/local.nidb -create /users/root gid 0
nicl -raw /var/db/netinfo/local.nidb -create /users/root shell /bin/sh
nicl -raw /var/db/netinfo/local.nidb -create /users/root realname 'System Administrator'
nicl -raw /var/db/netinfo/local.nidb -create /users/root change 0
nicl -raw /var/db/netinfo/local.nidb -create /users/root _writer_passwd root
Let me know if works so that I can save the info and share it with others.
--
Gary
G5; Mac OS X (10.4.2); 2x2.5 GHz
RE: Deleted Root Account
( msg # 1.1: Posted Aug 20, 05 7:55 pm )
Ricka Gerstmann
Level 1
Joined: May, 2003
Posts: 23
Yes!!! It worked, just as you said. What a relief. The only thing I would add is to be sure to follow the instructions to mount the disk before you start typing the commands. That is probably a no brainer for anyone who knows UNIX, but the average person will tend to skip over all the gobbledy gook on the screen and miss that instruction.
Thanks so much for your help!
Ricka
Voilà ... quelques tuyaux..
Bonne chance
Sanspseudo - Francis
iMac G5 2ghz 2Go - OS 10.4.11