Usually, under Debian/Ubuntu, you should run Setpermission.sh as: sudo /opt/otrs/bin/SetPermissions.sh /opt/otrs otrs www-data www-data www-data
or, if you run Apache as otrs user (which is not my case, so I'm guessing!) this should change this to: sudo /opt/otrs/bin/SetPermissions.sh /opt/otrs otrs otrs www-data www-data if you've put otrs user under group www-data. -----Messaggio originale----- Da: [email protected] [mailto:[email protected]] Per conto di maximx86 Inviato: venerdì 8 maggio 2009 9:45 A: User questions and discussions about OTRS. Oggetto: Re: [otrs] error executing PostMasterMailbox.pl Hello Michiel I did like you said and isntalled OTRS from source. The installation went fine, but when I try to log in a get: Error: Can't write /opt/otrs/Kernel/Config/Files/ZZZAAuto.pm: Permission denied! I ran SetPermissions.sh again and heres is the output: supp...@otrs:/opt/otrs/bin$ sudo /opt/otrs/bin/SetPermissions.sh /opt/otrs otrs otrs SetPermissions.sh <$Revision: 1.35 $> - set OTRS file permissions Copyright (C) 2001-2009 OTRS AG, http://otrs.org/ bin/SetPermissions.pl <1.3> - set OTRS file permissions Copyright (C) 2001-2009 OTRS AG, http://otrs.org/ Setting permissions on /opt/otrs Setting permissions on /opt/otrs/var Setting permissions on /opt/otrs/bin Setting permissions on Kernel/Config.pm supp...@otrs:/opt/otrs/bin$ I also ran SetPermissions.pl but still get lot of accessdenied Is there a way of setting permissions manually? Regards, maxim On Wed, Apr 29, 2009 at 3:36 PM, Michiel Beijen <[email protected]> wrote: > So OK, here's the catch.. > > I found out that the otrs2 package on Debian/Ubuntu uses the www-data > user for this. > If you'd like to run PostMasterMailbox.pl by hand you'd use 'sudo su - > www-data' > > The cronjobs for OTRS are NOT installed after using the otrs2 package; > please refer to: > > http://doc.otrs.org/2.3/en/html/x414.html#cronjobs > > Also, there's an issue with the configuration of Apache2::Reload if > you are using the otrs2 package; see bug > http://bugs.otrs.org/show_bug.cgi?id=3811 > -this renders the Package Manager unusable. > > What you could do is to install OTRS from source - as I explained in > the bug. It's not that much work. > > Kind regards, > -- > Michiel Beijen > Software Consultant > +31 6 - 457 42 418 > Bee Free IT + http://beefreeit.nl > > > On Wed, Apr 29, 2009 at 14:33, maximx86 <[email protected]> wrote: >> >> Hi Michiel, >> >> Right, I've done exactly like you said: >> >> maxim...@maxim:~$ sudo su - otrs >> maxim...@maxim:~$ >> maxim...@maxim:~$ cd /usr/share/otrs/bin >> maxim...@maxim:/usr/share/otrs/bin$ >> maxim...@maxim:/usr/share/otrs/bin$ ./PostMasterMailbox.pl Can't >> locate /etc/otrs/database.pm in @INC (@INC contains: >> /usr/share/otrs/Kernel/cpan-lib /usr/share/otrs /etc/perl >> /usr/local/lib/perl/5.10.0 /usr/local/share/perl/5.10.0 >> /usr/lib/perl5 >> /usr/share/perl5 /usr/lib/perl/5.10 /usr/share/perl/5.10 >> /usr/local/lib/site_perl .) at /usr/share/otrs/Kernel/Config.pm line >> 25. >> BEGIN failed--compilation aborted at /usr/share/otrs/Kernel/Config.pm >> line 35. >> Compilation failed in require at ./PostMasterMailbox.pl line 36. >> BEGIN failed--compilation aborted at ./PostMasterMailbox.pl line 36. >> maxim...@maxim:/usr/share/otrs/bin$ >> >> Got the same error msg... :( >> >> I found this info but not sure how to follow >> http://lists.otrs.org/pipermail/otrs/2008-July/023999.html >> >> Thanks again! >> On Wed, Apr 29, 2009 at 12:14 PM, Michiel Beijen >> <[email protected]> >> wrote: >> > Could this just be a permissions issue? >> > When you run it from the web you'll run it as the OTRS user; did >> > you do 'sudo su - otrs' before you tried running PostMasterMailbox.pl? >> > -- >> > Michiel Beijen >> > Software Consultant >> > +31 6 - 457 42 418 >> > Bee Free IT + http://beefreeit.nl >> > >> > >> > On Wed, Apr 29, 2009 at 12:07, maximx86 <[email protected]> wrote: >> >> >> >> on Ubuntu 9.04 from its repositories. It works perfectly, The only >> >> thing I cannot get set up is PostMasterMailbox.pl to schedule >> >> fetching emails from the POP account. >> >> >> >> It works fine when in Mail >> > >> > ------------------------------------------------------------------- >> > -- OTRS mailing list: otrs - Webpage: http://otrs.org/ >> > Archive: http://lists.otrs.org/pipermail/otrs >> > To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/otrs >> > >> > NEW! ENTERPRISE SUBSCRIPTION - Get more information NOW! >> > http://www.otrs.com/en/support/enterprise-subscription/ >> > >> --------------------------------------------------------------------- >> OTRS mailing list: otrs - Webpage: http://otrs.org/ >> Archive: http://lists.otrs.org/pipermail/otrs >> To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/otrs >> >> NEW! ENTERPRISE SUBSCRIPTION - Get more information NOW! >> http://www.otrs.com/en/support/enterprise-subscription/ > > > --------------------------------------------------------------------- > OTRS mailing list: otrs - Webpage: http://otrs.org/ > Archive: http://lists.otrs.org/pipermail/otrs > To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/otrs > > NEW! ENTERPRISE SUBSCRIPTION - Get more information NOW! > http://www.otrs.com/en/support/enterprise-subscription/ > --------------------------------------------------------------------- OTRS mailing list: otrs - Webpage: http://otrs.org/ Archive: http://lists.otrs.org/pipermail/otrs To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/otrs NEW! ENTERPRISE SUBSCRIPTION - Get more information NOW! http://www.otrs.com/en/support/enterprise-subscription/ --------------------------------------------------------------------- OTRS mailing list: otrs - Webpage: http://otrs.org/ Archive: http://lists.otrs.org/pipermail/otrs To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/otrs NEW! ENTERPRISE SUBSCRIPTION - Get more information NOW! http://www.otrs.com/en/support/enterprise-subscription/
