Accessing NetInfo in single user mode
Does anyone know how to change the password for a user in the NetInfo DB whilst in single user mode?
It appears, from what I understand, the for some bizzarre reason OS X uses NetInfo for user accts when booted normally, but not in single user mode, it uses the /etc/passwd file then! :S
Thanks
It appears, from what I understand, the for some bizzarre reason OS X uses NetInfo for user accts when booted normally, but not in single user mode, it uses the /etc/passwd file then! :S
Thanks
Comments
why not just boot off the install disk and use the password changer? [/B]
I intend to, but I want a backup in case I can't get it to work. I'm doing on a machine which wont boot off my retail CD (firmware too new) so I'd have to use the restore CD that came with the machine and not having done it before I dont know if it will work.
I'd like to be able to do it from the command line as well.
does anyone know the syntax for doing it with the niutil command? The man page isnt much help.
Thanks.
Don't look at this as a good way of doing things. Use the CD/DVD.
$ su - (change to root)
$ nicl / (the / being the root dir for netinfo)
/ > ? to list commands
Dobby.
PS. tar up /var/db/netinfo/local.nidb for safe keeping.
again tar up your local.nidb
then
nidump passwd / > x
edit the info in x
niload passwd / < x
albeit you can only delete the password here.
BTW. I take no responsibility if you trash your system following my instructions as I am doing them of the top of my head.
Dobby.
dscl
man it it you're not sure...
-j
ACHDS 10.3, ACTC 10.3