Cron Problem mit Benutzer otrs

Allgemein Fragen, deutsche News, Ankündigungen & Events zu Znuny
Locked
Cosco
Znuny newbie
Posts: 5
Joined: 16 Jan 2013, 12:47
Znuny Version: 3.1.12

Cron Problem mit Benutzer otrs

Post by Cosco »

Hallo,

ich habe ein Problem durch Benutze "otrs" den Cron Dienst zu starten.

Gemacht habe ich folgendes:

Code: Select all

cd /opt/otrs/var/cron/

Code: Select all

for foo in *.dist; do cp $foo `basename $foo .dist`; done
dann

Code: Select all

useradd -r -d /opt/otrs/ -c 'OTRS user' otrs
Ergebnis:
useradd: user 'otrs' already exists
(ist klar, hatte ich ja auch schon mal gemacht)

weiter mit

Code: Select all

usermod -G nogroup otrs
(nur noch einmal zur Sicherheit)

und jetzt kommt es
nach

Code: Select all

sudo -u otrs /opt/otrs/bin/Cron.sh start
kommt
Cron.sh - start/stop OTRS cronjobs - <$Revision: 1.19 $>
Copyright (C) 2001-2009 xxx, http://otrs.org/
/opt/otrs/bin/Cron.sh: line 76: /opt/otrs/var/tmp/otrs-cron-tmp.18053: Permission denied
failed
und es geht nicht weiter, da dieser Cron niemals starten wird.

Im Moment sehe ich den Wald vor lauter Bäumen nicht.

Grüße
Cosco
OTRS: 3.1.12
OS: Debian 6
Apache2/MySQL 5
reneeb
Znuny guru
Posts: 5018
Joined: 13 Mar 2011, 09:54
Znuny Version: 6.0.x
Real Name: Renée Bäcker
Company: Perl-Services.de
Contact:

Re: Cron Problem mit Benutzer otrs

Post by reneeb »

Welche Rechte hat Deine OTRS-Installation? (mit welchen Daten hast Du das SetPermission-Skript aufgerufen)?
Perl / Znuny development: http://perl-services.de
Free Znuny add ons from the community: http://opar.perl-services.de
Commercial add ons: http://feature-addons.de
Cosco
Znuny newbie
Posts: 5
Joined: 16 Jan 2013, 12:47
Znuny Version: 3.1.12

Re: Cron Problem mit Benutzer otrs

Post by Cosco »

Hallo,

du meinst

Code: Select all

bin/otrs.SetPermissions.pl --otrs-user=otrs --otrs-group=otrs --web-user=www-data --web-group=www-data /opt/otrs
oder

Code: Select all

root@vps0815:/opt/otrs/var/cron# ls -l
total 88
-rw-rw-r-- 1 otrs www-data 426 Jan 16 12:25 aaa_base
-rw-rw-r-- 1 otrs www-data 426 Feb 16  2009 aaa_base.dist
-rw-rw-r-- 1 otrs www-data 546 Jan 16 12:25 cache
-rw-rw-r-- 1 otrs www-data 546 Nov 22  2010 cache.dist
-rw-rw-r-- 1 otrs www-data 562 Jan 16 12:25 fetchmail
-rw-rw-r-- 1 otrs www-data 562 Feb 16  2009 fetchmail.dist
-rw-rw-r-- 1 otrs www-data 696 Jan 16 12:25 generic_agent
-rw-rw-r-- 1 otrs www-data 515 Jan 16 12:25 generic_agent-database
-rw-rw-r-- 1 otrs www-data 515 Nov  4  2009 generic_agent-database.dist
-rw-rw-r-- 1 otrs www-data 696 Feb  7  2012 generic_agent.dist
-rw-rw-r-- 1 otrs www-data 490 Jan 16 12:25 pending_jobs
-rw-rw-r-- 1 otrs www-data 490 Nov  4  2009 pending_jobs.dist
-rw-rw-r-- 1 otrs www-data 630 Jan 16 12:25 postmaster
-rw-rw-r-- 1 otrs www-data 630 Feb 16  2009 postmaster.dist
-rw-rw-r-- 1 otrs www-data 506 Jan 16 12:25 postmaster_mailbox
-rw-rw-r-- 1 otrs www-data 506 Nov  9  2009 postmaster_mailbox.dist
-rw-rw-r-- 1 otrs www-data 487 Jan 16 12:25 rebuild_ticket_index
-rw-rw-r-- 1 otrs www-data 487 Nov  9  2009 rebuild_ticket_index.dist
-rw-rw-r-- 1 otrs www-data 509 Jan 16 12:25 session
-rw-rw-r-- 1 otrs www-data 509 Nov  4  2009 session.dist
-rw-rw-r-- 1 otrs www-data 493 Jan 16 12:25 unlock
-rw-rw-r-- 1 otrs www-data 493 Nov  4  2009 unlock.dist
root@vps0815:/opt/otrs/var/cron#
?

Grüße
Cosco
OTRS: 3.1.12
OS: Debian 6
Apache2/MySQL 5
Wolfgangf
Znuny ninja
Posts: 1029
Joined: 13 Apr 2009, 12:26
Znuny Version: 6.0.13
Real Name: Wolfgang Fürtbauer
Company: PBS Logitek GmbH
Location: Pinsdorf

Re: Cron Problem mit Benutzer otrs

Post by Wolfgangf »

... und die Rechte in
/opt/otrs/var/
/opt/otrs/var/tmp
?
Produktiv:
OTRS 6.0.13/ ITSM 6.0.13
OS: SUSE Linux (SLES 12, Leap), MySql 5.5.x, 5.6.x
Windows 2012 AD Integration (agents and customers), Nagios integration (incidents, CMDB), Survey, TimeAccounting
Cosco
Znuny newbie
Posts: 5
Joined: 16 Jan 2013, 12:47
Znuny Version: 3.1.12

Re: Cron Problem mit Benutzer otrs

Post by Cosco »

Hallo,

die Rechte sind:

Code: Select all

root@vps0815:/opt/otrs/var# ls -l
total 72
-rw-rw-r-- 1 www-data www-data    38 Jan 17 06:56 RELEASE.iPhoneHandle
drwxrwsr-x 2 otrs     www-data  4096 Dec  6 08:48 article
drwxrwxr-x 2 otrs     www-data  4096 Jan 17 08:17 cron
drwxrwxr-x 2 otrs     www-data  4096 Dec  6 08:48 fonts
drwxrwxr-x 3 otrs     www-data  4096 Dec  6 08:48 httpd
drwxrwsr-x 2 otrs     www-data  4096 Jan 16 08:48 log
-rw-rw-r-- 1 otrs     www-data 23707 Oct 26  2010 logo-otrs.png
drwxrwxr-x 2 otrs     www-data  4096 Dec  6 08:49 packages
drwxrwxr-x 2 www-data www-data  4096 Jan 17 08:17 packagesetup
drwxrwsr-x 2 otrs     www-data  4096 Dec  6 08:48 sessions
drwxrwsr-x 2 otrs     www-data  4096 Dec  6 08:48 spool
drwxrwsr-x 2 otrs     www-data  4096 Jan 17 06:55 stats
drwxrwsr-x 4 otrs     www-data  4096 Jan 17 08:18 tmp
und

Code: Select all

root@vps0815:/opt/otrs/var/tmp# ls -l
total 2736
drwxrwsr-x  2 otrs     www-data    4096 Dec  6 08:48 Cache
drwxrwsr-x 25 otrs     www-data    4096 Jan 17 11:20 CacheFileStorable
-rw-rw-r--  1 www-data www-data  304220 Jan 17 08:18 SysConfig-Cache_Kernel_Config_Files_Deprecated.xml-cd187859ecb8c2f9a05099cd64527778.pm
-rw-rw-r--  1 www-data www-data  212873 Jan 17 08:18 SysConfig-Cache_Kernel_Config_Files_FAQ.xml-67a80fab883063a8431b77959d5d3500.pm
-rw-rw-r--  1 www-data www-data  769395 Jan 17 08:18 SysConfig-Cache_Kernel_Config_Files_Framework.xml-f4411f408b632cc441852908bd558c84.pm
-rw-rw-r--  1 www-data www-data   61247 Jan 17 08:18 SysConfig-Cache_Kernel_Config_Files_GenericInterface.xml-ed2054239e49faf5e1c9ecbb397e93d6.pm
-rw-rw-r--  1 www-data www-data   44227 Jan 17 08:18 SysConfig-Cache_Kernel_Config_Files_OTRSMasterSlave.xml-8d198f6556079a5fa7d30aa519779ebb.pm
-rw-rw-r--  1 www-data www-data   10574 Jan 17 08:18 SysConfig-Cache_Kernel_Config_Files_Scheduler.xml-c1a89a6c4114f67cef8fb9f8f2f6f0d6.pm
-rw-rw-r--  1 www-data www-data   22621 Jan 17 08:18 SysConfig-Cache_Kernel_Config_Files_Support.xml-0c30f1d91dbba84b09a4fc62ab27996a.pm
-rw-rw-r--  1 www-data www-data   38107 Jan 17 07:06 SysConfig-Cache_Kernel_Config_Files_Survey.xml-3dd0f8c9cd7f9bd9950c887d0b0239e4.pm
-rw-rw-r--  1 www-data www-data 1086711 Jan 17 08:18 SysConfig-Cache_Kernel_Config_Files_Ticket.xml-75b60c6f538975c5bf39567f146e68cf.pm
-rw-rw-r--  1 www-data www-data   44544 Jan 17 08:18 SysConfig-Cache_Kernel_Config_Files_TimeAccounting.xml-a4f0a0829f809ee7648f32dfa70b1e39.pm
-rw-rw-r--  1 www-data www-data  119886 Jan 17 08:18 SysConfig-Cache_Kernel_Config_Files_iPhone.xml-36457c33ab7a3c6f007dc9c7759afedc.pm
-rw-rw-r--  1 www-data www-data   33790 Jan 17 08:18 SysConfig-Cache_Kernel_Config_Files_iPhone_Deprecated.xml-4c82d4085eb491b296d2fd5b08c37a7e.pm
Grüße
Cosco
OTRS: 3.1.12
OS: Debian 6
Apache2/MySQL 5
Locked