You need to create an "ibay" entry in the /home/e-smith/configuration file, and then signal the ibay-create event. There are a couple of ways to populate the configuration file. You can either append the fully formed ibay line to the file, or you can use the db command to populate the file. The former is quick and dirty, the latter would be the preferred method.
Here is an ibay line from configuration:
test=ibay|CgiBin|disabled|Gid|5001|Group|shared|Name|Test i-bay|PasswordSet|No|PublicAccess|local-pw|Uid|5001|UserAccess|wr-admin-rd-group
Note that the above is all one line, and case is _very_ important. The format of the line is basically this: name=entryType|property|value... The property|value pairs can repeat multiple times. To create this entry using the db command:
/sbin/e-smith/db accounts set test ibay CgiBin disabled Gid 5001 Group shared Name "Test i-bay" PasswordSet No PublicAccess local-pw Uid 5001 UserAccess wr-admin-rd-group
Again, all one line. To create the ibay call:
/sbin/e-smith/signal-event ibay-create
This will create the ibay directories, set permissions, adjust network settings, etc, just as if you had created the ibay from the web manager. Do note that at this point there is no password assigned to the ibay. You can set that using:
perl -e "use e-smith::util; esmith::util::setIbayPassword("test", "password");"
I recommend perusing /etc/e-smith/web/functions/ibays (the perl script that backs up the ibay panel in the web manager) to learn the specific options available for the various ibay properties. Also, you should investigate the assignment of Gid and Uid.
Scott