SetPermissions.pl

Hilfe zu Znuny Problemen aller Art
Locked
andreasotrs
Znuny newbie
Posts: 80
Joined: 20 Dec 2012, 16:13
Znuny Version: 3.3.9

SetPermissions.pl

Post by andreasotrs »

Hallo,

seit kurzem lasse ich nachts den Aufruf

Code: Select all

/opt/otrs/bin/otrs.SetPermissions.pl --otrs-user=otrs --web-user=apache --otrs-group=apache --web-group=apache /opt/otrs
über die OTRS Installation laufen.
Aus irgendeinem Grund hat aber die Datei bin/otrs.PostMaster.pl folgende Berechtigung

Code: Select all

-rw-r--r-- 1 otrs apache  4170  6. Dez 08:51 otrs.PostMaster.pl
D.h. die Datei ist nicht ausführbar und damit können keine E-Mails empfangen werden.
Alle anderen Dateien sind in Ordnung.
Jetzt muss ich jeden Morgen die Ausführungsberechtigung noch per Hand setzen.

Kennt jemand das Problem und weiß eine Lösung?
Mit freundlichem Gruß
Andreas

OTRS Prod 4.0.6
OTRS Test 4.0.6
Red Hat Linux 6.1
DB MySQL
catweazle
Znuny advanced
Posts: 121
Joined: 15 Feb 2012, 12:22
Znuny Version: 3.1

Re: SetPermissions.pl

Post by catweazle »

von Hand anpassen?

-rwxr-xr-x

Rechte nach Installation rpm
1: OTRS 3.1.21 + Support + MasterSlave @ CentOS 6.5 , MySQL
2: Test: OTRS 3.1.21 + Support + MasterSlave @ CentOS 6.5 , MySQL
3: Test-2: OTRS 3.3.x + Support + MasterSlave @ CentOS 6.5 , MySQL (iphone, idoit-trash)
andreasotrs
Znuny newbie
Posts: 80
Joined: 20 Dec 2012, 16:13
Znuny Version: 3.3.9

Re: SetPermissions.pl

Post by andreasotrs »

Hallo,

können Sie bitte in ganzen und verständlichen Sätzen antworten. Ich verstehe leider nicht was Sie mir mitteilen wollen.
Mit freundlichem Gruß
Andreas

OTRS Prod 4.0.6
OTRS Test 4.0.6
Red Hat Linux 6.1
DB MySQL
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: SetPermissions.pl

Post by jojo »

es gibt eigentlich keinen Grund die Rechte nachts anzupassen. Warum läuft das Script?
"Production": OTRS™ 8, OTRS™ 7, STORM powered by OTRS
"Testing": ((OTRS Community Edition)) and git Master

Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
andreasotrs
Znuny newbie
Posts: 80
Joined: 20 Dec 2012, 16:13
Znuny Version: 3.3.9

Re: SetPermissions.pl

Post by andreasotrs »

Hallo,

nachts werden Dateien für Dashlets auf den Server kopiert.
Wir nutzen ein Konfigurationsverwaltungssystem.
Deshalb müssen die Berechtigungen korrigiert werden.
Mit freundlichem Gruß
Andreas

OTRS Prod 4.0.6
OTRS Test 4.0.6
Red Hat Linux 6.1
DB MySQL
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: SetPermissions.pl

Post by jojo »

Läuft danach noch irgendetwas anderes? Die scripte unter bin werden von dem SetPermission Script auf ausführbar gesetzt. Welche OTRS Version hast Du?
"Production": OTRS™ 8, OTRS™ 7, STORM powered by OTRS
"Testing": ((OTRS Community Edition)) and git Master

Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
andreasotrs
Znuny newbie
Posts: 80
Joined: 20 Dec 2012, 16:13
Znuny Version: 3.3.9

Re: SetPermissions.pl

Post by andreasotrs »

Hallo,

leider ist aber die Berechtigung von der Datei otrs.PostMaster.pl falsch gesetzt, wenn ich das Skript otrs.SetPermissions.pl laufen lasse.
Nein, sonst läuft nichts.
Wir nutzen die Version 3.1.12.
Mit freundlichem Gruß
Andreas

OTRS Prod 4.0.6
OTRS Test 4.0.6
Red Hat Linux 6.1
DB MySQL
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: SetPermissions.pl

Post by jojo »

kann ich definitiv nicht nachvollziehen

Du kannst alternativ das Script als workaround mit

Code: Select all

perl  bin/otrs.SetPermissions....
laufen lassen
"Production": OTRS™ 8, OTRS™ 7, STORM powered by OTRS
"Testing": ((OTRS Community Edition)) and git Master

Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
Locked