1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70
|
Perlmoo administrator's guide.
Test drive:
----------
You can try the moo out by running:
perlmoo-testmoo
This will log you in and let you play around in the moo. Hit ctrl-c to exit.
Any changes you make to the moo will not be saved.
Security:
--------
The moo should be secure for use by normal users and builders. But if you
set up programmer users, they can execute perl code in it, and I can't
guarantee some smart hacker won't find their way out of the security I set
up and crack into your system. For an additional layer of security, the moo
would like to run chrooted and as an unprivliged user, so if people do break
out of it, they can do little harm. If it's started as root, it will
automatically run chrooted. It will also check to see who owns its database
file, and will change its user and group to match, if it can. So to run
perlmoo securely, do a chmod nobody.nogroup on db.pl, and on the directory
it is in, and start perlmoo as root. Then watch for any SECURITY messages.
A final note about security - you should be aware that the perlmoo database
is like a /etc/passwd or /etc/shadow file - it has encrypted passwords (and
maybe other private info) in it. Therefore, it's a very good idea to not
allow all users on your system to read it.
Oh yeah, the version command gives out info the excessivly paranoid may not
want others to see - your version of perl and your OS. Edit Person.pm to
change that.
Starting the server:
-------------------
As the moo is shipped, there is an all powerful wizard user in the moo's
database, but you need to set the wizard's password before you can log in as
them. To do that, use the perlmoo-wizpasswd utility, which will prompt you
for the password to use.
./perlmoo-wizpasswd
Now you can start up the moo in multi-user mode.
./perlmoo
The default port is port 7777; you can specify some other port on the
command line with --port=portnum if you prefer. See perlmoo --help for other
command line options - I typically use --port=8888 --daemon .
Once the moo starts up, it should say it is accepting connections. Just
telnet to localhost on the port you started it on to log in as user wizard,
with the password you set above. You can also try logging in as guest.
The moo database:
----------------
You should know that the moo saves it's database in the file db.pl. You can
make the moo dump its database by sending it signal SIGUSR1. Of course
it'll also dump its database before exiting, and you can make it do periodic
database dumps.
More help:
---------
For help on adding users, customiaing the login room, and a list of wizardly
commands, type "help wizindex" in the moo.
|