set VNC access password from command line

I've got a headless Mac server running 10.4.something. I had a monitor attached to it for long enough to enable ssh and vnc access, and I was administering it through vnc from one of my other computers. That computer recently suffered a hard disk crash and I realized I don't remember the vnc access password.

However, I do know the password to log in as an admin user via ssh. That should be enough to do almost anything, right? Is there a way to change the vnc access password from the command line?

G4 tower, Mac OS X (10.4.9)

Posted on Apr 8, 2010 5:21 AM

Reply
4 replies

May 26, 2010 6:57 PM in response to BDAqua

OK, I've run kickstart with every combination of options I can think of, starting with
kickstart -activate -configure -access -on -privs -all -restart -agent

Chicken of the VNC says "Please configure Apple Remote Desktop to allow VNC Viewers to control the screen. Unknown authType 30"

So I set up VNC access with a known password on another computer, and confirmed that it worked. (What happens when you VNC into the computer you're already on? Do you remember that scene in "Being John Malkevitch" in which John Malkevitch himself goes through the tunnel?) I then copied the /Library/Preferences/com.apple.VNCSettings.txt file from this known computer to the target computer, tried Chicken again, and got the exact same message.

So I deleted the aforementioned file on the target machine, figuring that would take me back to some sort of factory default settings. Chicken -> same message.

kickstart -configure -vncpw <contents of VNCSettings.txt file here> -restart -agent
Chicken -> same message.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

set VNC access password from command line

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.