PDA

View Full Version : Use wincfg to change a computer SID; if instead you have used newsid directly...


stephen
03-17-2009, 01:12 PM
The proper method for changing the computer SID of a Windows appliance is to use the wincfg utility. If, instead, you use newsid directly, the resulting appliance will not boot properly because the Cygwin environment has not been updated with the new SID information. At this point, the problem can be corrected by logging into the appliance through the graphic console as the local machine Administrator, opening a Cygwin bash shell and performing:

chmod 777 /etc/passwd
mkpasswd -l -c > /etc/passwd
sed -i -e 's/^Administrator:/root:/' /etc/passwd
chmod 777 /var/log/sshd.log
chown -R sshd_server.None /var/empty
chown sshd_server.None /etc/ssh*
chmod 600 /etc/ssh*
chmod 770 /home/Administrator
cygrunsrv --start sshd

sshd should start without error. From a 3t shell restart the appliance. The vme triggered shutdown event will not fire within the appliance, so, next, shutdown manually within the graphic console. The appliance should restart without error.

tmart
04-18-2010, 11:10 AM
nevermind...