[fsck.com #1548] [rt-users] Installation: No RT user found. Please consult yo ur RT administrator.

Phil Homewood pdh at snapgear.com
Wed Jul 17 21:04:15 EDT 2002


Blackstone, J. David wrote:
>   Okay, as a workaround I seem to be able to
> $ whoami
> rt
> $ mysql -urt_user -p rt2
> mysql> update Users set Gecos = 'rt' where Name = 'root';
> mysql> quit
> $ rtadmin
> ... works

Cool. Suggested patch attached, for next time. :-)

(Note, I haven't tried this. If you're in a position to do so, would
you mind applying it and reattempting your installation?

>   Basically, when rt installs, it shouldn't assume that the Gecos of the RT
> root user is going to be "root," that is, it shouldn't assume I'm going to
> install this as root and run the admin tools as root.  Is there a place to
> configure this in the Makefile or something before I hit make install?

With this patch, hopefully. ;-)

>   Am I the only person who doesn't want to run rt as root?

It doesn't "run" as root per se; it'll run as

a) the userid of your MTA (for mailed transactions)
b) the userid of your webserver (for the web UI)
c) Joe Random User's userid (for commandline UI)

Anyway, see how the patch goes. The description of ROOT_USER
could use some improvement....
-------------- next part --------------
Index: Makefile
===================================================================
RCS file: /raid/cvsroot/rt/Makefile,v
retrieving revision 1.164
diff -u -r1.164 Makefile
--- Makefile	2002/07/13 04:22:39	1.164
+++ Makefile	2002/07/18 01:01:27
@@ -27,6 +27,9 @@
 # Group that should own all of RT's libraries, generally root.
 LIBS_GROUP		=	bin
 
+# RT Superuser's Unix login; change this if you install everything
+# under a non-root Unix account.
+ROOT_USER		=	root
 
 
 # {{{ Files and directories 
@@ -350,7 +353,8 @@
 	cp -rp ./tools/insertdata \
 		 $(DESTDIR)/$(RT_ETC_PATH)
 	$(PERL) -p -i -e " s'!!RT_ETC_PATH!!'$(RT_ETC_PATH)'g;\
-		           s'!!RT_LIB_PATH!!'$(RT_LIB_PATH)'g;"\
+		           s'!!RT_LIB_PATH!!'$(RT_LIB_PATH)'g;\
+		           s'!!ROOT_USER!!'$(ROOT_USER)'g;"\
 		$(DESTDIR)/$(RT_ETC_PATH)/insertdata
 
 bin-install:
Index: tools/insertdata
===================================================================
RCS file: /raid/cvsroot/rt/tools/insertdata,v
retrieving revision 1.6
diff -u -r1.6 insertdata
--- tools/insertdata	2002/02/18 21:31:16	1.6
+++ tools/insertdata	2002/07/18 01:01:28
@@ -116,7 +116,7 @@
 
         {
             Name         => 'root',
-            Gecos        => 'root',
+            Gecos        => '!!ROOT_USER!!',
             RealName     => 'Enoch Root',
             Password     => 'password',
             EmailAddress => "root\@localhost",


More information about the rt-users mailing list