mattewRE
29-10-2010, 18:12
Ho appena reinstallato il sistema operativo, e per un errore da me commesso ho cambiato il path della HOME dell'utente principale admin e non mi permette il login.
Da single mode user a quanto pare si può fare qualcosa:
1) Creare un nuovo utente per effettuare il login
HO PROBLEMI CON IL COMANDO dscl
dice che nella modalità single user devo lanciare il daemons com.apple.DirectoryServicesLocal.plist
lo faccio ma esce il messaggio:
launch_msg(): Socket is not connected
Use the dscl command. This example would create the user "luser", like so:
dscl . -create /Users/luser
dscl . -create /Users/luser UserShell /bin/bash
dscl . -create /Users/luser RealName "Lucius Q. User"
dscl . -create /Users/luser UniqueID "1010"
dscl . -create /Users/luser PrimaryGroupID 80
dscl . -create /Users/luser NFSHomeDirectory /Users/luser
You can then use passwd to change the user's password, or use:
dscl . -passwd /Users/luser password
You'll have to create /Users/luser for the user's home directory and change ownership so the user can access it, and be sure that the UniqueID is in fact unique.
This line will add the user to the administrator's group:
dscl . -append /Groups/admin GroupMembership luser
2) riuscire a reimpostare di default la posizione della home dell'utente
NON HO ALCUN DATO DA PERDERE (salvati altrove).
Posso anche valutare una nuova installazione se fosse troppo problematico, ma avevo già preparato tutto con programmi e aggiornamenti.
Da single mode user a quanto pare si può fare qualcosa:
1) Creare un nuovo utente per effettuare il login
HO PROBLEMI CON IL COMANDO dscl
dice che nella modalità single user devo lanciare il daemons com.apple.DirectoryServicesLocal.plist
lo faccio ma esce il messaggio:
launch_msg(): Socket is not connected
Use the dscl command. This example would create the user "luser", like so:
dscl . -create /Users/luser
dscl . -create /Users/luser UserShell /bin/bash
dscl . -create /Users/luser RealName "Lucius Q. User"
dscl . -create /Users/luser UniqueID "1010"
dscl . -create /Users/luser PrimaryGroupID 80
dscl . -create /Users/luser NFSHomeDirectory /Users/luser
You can then use passwd to change the user's password, or use:
dscl . -passwd /Users/luser password
You'll have to create /Users/luser for the user's home directory and change ownership so the user can access it, and be sure that the UniqueID is in fact unique.
This line will add the user to the administrator's group:
dscl . -append /Groups/admin GroupMembership luser
2) riuscire a reimpostare di default la posizione della home dell'utente
NON HO ALCUN DATO DA PERDERE (salvati altrove).
Posso anche valutare una nuova installazione se fosse troppo problematico, ma avevo già preparato tutto con programmi e aggiornamenti.