[rt-users] cannot attach files to tickets via web interface

Matthew Seaman matthew.seaman at thebunker.net
Tue Oct 14 14:18:38 EDT 2008


andys wrote:
> Hi, 
> 
> 
>   Im using the FreeBSD port RT version 3.6.7 and I cannot get it to attach 
> files to replies etc to tickets. I also had the problem with versoin 3.6.6. 
> Apparently this was working previously, the only thing that I can think that 
> has changed is that we now use SSL (but Im not aware this has broken 
> anything else). 
> 
> What Im seeing is: 
> 
> If Im viewing a ticket and click reply
> Then I click "browse" for attaching a file
> Select a file on my local PC
> now click "update" for the ticket, it breaks, it shows as the URL: 
> https://www.myserver.com/Ticket/Update.html and a blank page. 
> 
> Any ideas?? 
> 
> thanks for any help, Andy.

Yes.  this is because the home directory of www, the UID the web server
runs under has /nonexistent as a home directory (for security reasons).  Simply modify the www account so it has a real home directory.  I can't
remember off hand if the www user needs any special privileges over the
home dir -- I don't think it does, in which case, /var/empty is a good
choice and still preserves at least of modicum of security:

   # pw user mod -n www -d /var/empty

If that doesn't work then try creating /home/www and see what the minimum 
privileges are.  Leave the shell as /usr/sbin/nologin.

	Cheers,

	Matthew


-- 
Dr Matthew Seaman                     The Bunker, Ash Radar Station
PGP: 0x60AE908C on servers            Marshborough Rd
Tel: +44 1304 814890                  Sandwich
Fax: +44 1304 814899                  Kent, CT13 0PL, UK

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 258 bytes
Desc: OpenPGP digital signature
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20081014/a953c642/attachment.sig>


More information about the rt-users mailing list