RT on a virtual server


#1

I have setup rt on a virtual server and have the web based side of it working but am getting the
following error bounced back when emailing in a request:

Could not create dir /opt/rt/transactions/2001: Permission denied
554 5.3.0 |"/opt/rt/bin/rt-mailgate Epoc correspond"… unknown mailer error 13

The transaction directory looks like this:
drwxr-x— 2 rt admin 4096 Mar 8 17:51 transactions

And the bin directory like this:
drwxr-xr-x 2 admin admin 4096 Mar 4 17:27 cgi
lrwxrwxrwx 1 admin admin 24 Mar 4 17:11 rt -> /opt/rt/bin/suid_wrapper
lrwxrwxrwx 1 admin admin 24 Mar 4 17:11 rt-mailgate -> /opt/rt/bin/suid_wrapper
lrwxrwxrwx 1 admin admin 24 Mar 4 17:11 rtadmin -> /opt/rt/bin/suid_wrapper
-rwxr-xr-x 1 admin admin 2084 Mar 4 17:11 rtmux.pl
-r-xr-xr-x 1 admin admin 2166 May 10 1999 rtmux.pl.orig
lrwxrwxrwx 1 admin admin 24 Mar 4 17:11 rtq -> /opt/rt/bin/suid_wrapper
-rwxr-xr-x 3 admin admin 14562 Mar 4 17:11 suid_wrapper

Note that admin is my replacement for root on the virtual server. I’m sure it’s a problem with the
users/groups but can not work out what to do about it?

Also I added rt to the admin group.

Kevin Golding


#2

Yeah. you someohow lost suid_wrapper’s setuid bit. RT won’t work without it (without some other hacking.

CD into your rt installation directory and then run make fixpermsOn Thu, Mar 08, 2001 at 06:13:00PM +0000, Kevin Golding wrote:

I have setup rt on a virtual server and have the web based side of it working but am getting the
following error bounced back when emailing in a request:

Could not create dir /opt/rt/transactions/2001: Permission denied
554 5.3.0 |"/opt/rt/bin/rt-mailgate Epoc correspond"… unknown mailer error 13

The transaction directory looks like this:
drwxr-x— 2 rt admin 4096 Mar 8 17:51 transactions

And the bin directory like this:
drwxr-xr-x 2 admin admin 4096 Mar 4 17:27 cgi
lrwxrwxrwx 1 admin admin 24 Mar 4 17:11 rt -> /opt/rt/bin/suid_wrapper
lrwxrwxrwx 1 admin admin 24 Mar 4 17:11 rt-mailgate -> /opt/rt/bin/suid_wrapper
lrwxrwxrwx 1 admin admin 24 Mar 4 17:11 rtadmin -> /opt/rt/bin/suid_wrapper
-rwxr-xr-x 1 admin admin 2084 Mar 4 17:11 rtmux.pl
-r-xr-xr-x 1 admin admin 2166 May 10 1999 rtmux.pl.orig
lrwxrwxrwx 1 admin admin 24 Mar 4 17:11 rtq -> /opt/rt/bin/suid_wrapper
-rwxr-xr-x 3 admin admin 14562 Mar 4 17:11 suid_wrapper

Note that admin is my replacement for root on the virtual server. I’m sure it’s a problem with the
users/groups but can not work out what to do about it?

Also I added rt to the admin group.

Kevin Golding


rt-users mailing list
rt-users@lists.fsck.com
http://lists.fsck.com/mailman/listinfo/rt-users

jesse reed vincent – root@eruditorum.orgjesse@fsck.com
70EBAC90: 2A07 FC22 7DB4 42C1 9D71 0108 41A3 3FB3 70EB AC90

After all, it’s not every day you meet up with an evil power
-M. Bulgakov


#3

just haul down another copy of the rt source distribution and read through
the fixperms section of the makefile.

I’ve deleted the install directory - could you tell me how to set the suid from the command
line as required please or do I have to get the fixperms file to do it?

Kevin Golding

I’m still having problems - any chance you could do an “ls -l” of you bin directory from me to
compare against please?

Kevin Golding


#4

I’m still having problems - any chance you could do an “ls -l” of you bin
directory from me to compare against please?

Here you go (with links resolved):

[bert@rt-codeconsult bin]$ ls -lL
total 92
dr-xr-xr-x 2 root root 4096 Oct 12 13:52 cgi
—s–x--x 3 rt root 14414 Oct 12 13:52 rt
—s–x--x 3 rt root 14414 Oct 12 13:52 rt-mailgate
—s–x--x 3 rt root 14414 Oct 12 13:52 rtadmin
-rwxr-xr-x 1 root root 2084 Oct 12 13:52 rtmux.pl
-r-xr-xr-x 1 root root 2166 May 10 1999 rtmux.pl.orig
—s–x--x 3 rt root 14414 Oct 12 13:52 rtq
—s–x--x 3 rt root 14414 Oct 12 13:52 suid_wrapper

Here you can see the links:

[bert@rt-codeconsult bin]$ ls -l
total 28
dr-xr-xr-x 2 root root 4096 Oct 12 13:52 cgi
lrwxrwxrwx 1 root root 24 Oct 12 13:52 rt ->
/opt/rt/bin/suid_wrapper
lrwxrwxrwx 1 root root 24 Oct 12 13:52 rt-mailgate ->
/opt/rt/bin/suid_wrapper
lrwxrwxrwx 1 root root 24 Oct 12 13:52 rtadmin ->
/opt/rt/bin/suid_wrapper
-rwxr-xr-x 1 root root 2084 Oct 12 13:52 rtmux.pl
-r-xr-xr-x 1 root root 2166 May 10 1999 rtmux.pl.orig
lrwxrwxrwx 1 root root 24 Oct 12 13:52 rtq ->
/opt/rt/bin/suid_wrapper
—s–x--x 3 rt root 14414 Oct 12 13:52 suid_wrapper

– Bertrand Delacr�taz, codeconsult
– OO, Java, C++ consultant
http://www.codeconsult.ch


#5

Many thanks - it’s now sorted and working :slight_smile:

Kevin Golding


#6

Yes I did in the end with quite a bit of mucking around…

Kevin Golding