I'd like to add the text below, or something like it, to either the
README file or preferably to Makefile.PL. The makefile currently says
you should be root to install, but I've discovered that's not required.
In fact, it may not be desirable!
Please read the note below, and let me know how to word it better
PLUS where to put it. I've already added one line of stroking to
the install script so it shows you the user name and group name
(plus uid and gid) under which you're running the installation.
Thanks in advance!
======================================================================
NOTE ON BEING ROOT: You never NEED TO BE "root" to install Majordomo2.
You can EITHER become root, OR you can become the user under which the
server processes are intended to run, before you install. All of the
permission setting and setuid wrapper generation will work the same way
if you are either uid, but if you are not root there are several steps
which may need to be done before and after install. Replace "/var/mj" with
the temporary directory you specify to install, and /usr/local/majordomo
with the destination directory you specify to install:
su majordomo_user_id
mkdir /var/mj
chmod 770 /var/mj
mkdir /usr/local/majordomo
chmod 755 /usr/local/majordomo
perl Makefile.PL
make
# optional: make test
make install
chmod +x /usr/local/majordomo
exit
# test: /usr/local/majordomo/bin/mj_shell
Whether you install as root or the majordomo user, the wrapper scripts
will be 'setuid majordomo', not 'setuid root', so there are no security
concerns once the software is installed. Not being root allows more
safe delegation of install tasks, and the majordomo user password can
be changed (by root) once installation is complete to keep the non-root
user from tweaking the system later.
======================================================================
|
|