Re: [Mailman-Users] Custom username (fwd)
[Forwarding a copy to from -users]
You're not following me:
if test -z "$MAILMAN_UID"
then
cat > conftest.py <<EOF
import pwd, string
uid = ''
for user in string.split("mailman"):
^^^^^^^
try:
try:
uid = pwd.getpwuid(int(user))[0]
break
except ValueError:
uid = pwd.getpwnam(user)[0]
break
except KeyError:
uid = ''
fp = open("conftest.out", "w")
fp.write("%s\n" % uid)
fp.close()
EOF
$PYTHON conftest.py
MAILMAN_UID=cat conftest.out
fi
echo "$ac_t""$MAILMAN_UID" 1>&6 rm -f conftest.out conftest.py if test -z "$MAILMAN_UID" then { echo "configure: error: ***** No \"mailman\" user found! ^^^^^^^ ***** Your system must have a \"mailman\" user defined (usually ***** in your /etc/passwd file). Please see the INSTALL file ***** file details." 1>&2; exit 1; } fi
It's not the UID that's the problem, its that the username is expected to be the literal string 'mailman'.
The configure script fails, never generating the Makefile you keep telling me to edit.
So a --with-username=NAME is in order.
-Jeremy
On Fri, 14 Jan 2000, Saille Warner Norton wrote:
Run configure. Then edit the makefile to change the mailman_uid variable. Then compile. It will compile mailman under whatever UID you gave it.
Worked when I did it.
Saille
At 09:28 PM 01/14/2000 -0600, you wrote:
Except that 'mailman' is hardcoded into lots of places, including the configure[.in] script. It doesn't get far enough to generate a Makefile.
-Jeremy
On Fri, 14 Jan 2000, Saille Warner Norton wrote:
Try editing your "MAILMAN_UID" option in your Makefile.
At 04:47 PM 01/14/2000 -0600, Jeremy Shaffner wrote:
Why isn't there a configure option to install Mailman as a user other than 'mailman'? A --with-username=NAME would be excellent.
I ask because 'mailman' has already in use by one of our users. Probably a postal worker. :)
-Jeremy
-=========================================================================-
Jeremy Shaffner JORSM Internet, Regional Internet Services
System Administrator 7 Area Codes in Chicagoland and NW Indiana
jer@jorsm.com 100Mbps+ Connectivity, 56K-DS3, V.90, ISDN
support@jorsm.com Quality Service, Affordable Prices
http://www.jorsm.com Serving Gov't, Business, Individuals Since 1995
Mailman-Users maillist - Mailman-Users@python.org http://www.python.org/mailman/listinfo/mailman-users
participants (1)
-
Jeremy Shaffner