Monday, November 26, 2007

Tip: Default user name

If you’re working in a multi user environment you might have noticed that when you’re prompted for a user name at login time it’s set to “Admin” as default. Wouldn’t it be nice if the default user name was your user name?


The default behavior of the login screen is controlled by the XRKB.ini file (default location is c:\Program Files\Cincom\). Locate XRKB.ini and open it in a text file editor (e.g. Notepad). It will look something like this:
[Main]
serialno="555-YOUR-SERIAL-NO-555"
username="YOUR-INSTALL-USERNAME"
showtips="1"
currenttip="10"
left="1"
top="1"
width="1389"
bottom="1043"
state="2"
lastcut="C:\projects"
lastsearchstring="Bicycle"
appinfopage="3"
expandedgroups="-204,2,3,4,5,6,7"
user="Admin"

export="C:\projects\"
import="C:\Temp\"

true="Yes"
false="No

Note the entry at the bottom of the Main section; user=Admin. This is where the default username in the login screen are read from. Change it to User=YourUserName

Save the XRKB.ini file and restart Socrates. The login screen will now look like this:

In coming articles will dive a bit deeper into the content of XRKB.ini and how we can benefit from modifing it dynamically (at run time).