otrs.SetPermissions.pl /CentOS

Hilfe zu Znuny Problemen aller Art
Locked
boris
Znuny wizard
Posts: 554
Joined: 22 Feb 2010, 18:27
Znuny Version: 3.0.4

otrs.SetPermissions.pl /CentOS

Post by boris »

HI,

wir sind gerade iom Begriff von Windows auf Linux umzuziehen.

CentOS 6 und OTRS 3.0.6.
Ich habe das rpm Paket installiert aber noch Probleme mit den Rechten.
otrs.SetPermissions.pl will ja Benutzer und Grupen von mir haben.

Wo finde ich raus wie die Gruppen unter CentOS heissen?

Wo bekomme ich diese Werte her?

Usage: otrs.SetPermissions.pl
[--otrs-user=<OTRS_USER>]
[--web-user=<WEBSERVER_USER>]
[--otrs-group=<OTRS_GROUP>]
[--web-group=<WEB_GROUP>]
[--admin-user=<ADMIN_USER>]
[--admin-group=<ADMIN_GROUP>]
[--admin-group-writable]
[--secure]
[--not-root]
<OTRS_HOME>

OTRS_User ist otrs swoeit komm ich klar:-)
Wie finde ich den WEBSERVER_USER oder WEB_GROUp?
Produktiv:
OTRS 3.1.7
CentOS 6.3
Apache2/MySQL

Test:
OTRS 3.1.7
CentOS 6.3
Apache2/MySQL
pab
Znuny advanced
Posts: 138
Joined: 20 Jan 2011, 11:21
Znuny Version: [...],6.x, Znuny 7
Real Name: Peter
Company: maxence business consulting GmbH
Location: Dormagen

Re: otrs.SetPermissions.pl /CentOS

Post by pab »

Hallo Boris,

mit

Code: Select all

id otrs
bekommst Du uid und gid des OTRS-Users angezeigt. Der Web-User ist unter CentOS apache, die Gruppe heißt auch so. Mit diesen Usern und Gruppen solltest Du hinkommen, ich zumindest habe bisher keine weiteren Parameter mitgegeben.

Gruß
Peter
boris
Znuny wizard
Posts: 554
Joined: 22 Feb 2010, 18:27
Znuny Version: 3.0.4

Re: otrs.SetPermissions.pl /CentOS

Post by boris »

Danke!
Produktiv:
OTRS 3.1.7
CentOS 6.3
Apache2/MySQL

Test:
OTRS 3.1.7
CentOS 6.3
Apache2/MySQL
boris
Znuny wizard
Posts: 554
Joined: 22 Feb 2010, 18:27
Znuny Version: 3.0.4

Re: otrs.SetPermissions.pl /CentOS

Post by boris »

Hi,

ich hab die SetPermissins.pl ausgeführt:
So soehts aus:

Code: Select all

[root@otrs002 bin]# ./otrs.SetPermissions.pl --otrs-user=otrs --web-user=apache --otrs-group=apache --web-group=apache /opt/otrs/
bin/otrs.SetPermissions.pl <1.4> - set OTRS file permissions
Copyright (C) 2001-2010 xxx, http://otrs.org/
Setting permissions on /opt/otrs/
Setting permissions on /opt/otrs//var
Setting permissions on /opt/otrs//bin/*
Setting permissions on /opt/otrs//scripts/*.pl
Setting permissions on /opt/otrs//scripts/tools/*.pl
Setting permissions on Kernel/Config.pm
Setting owner rw and group ro permissions on /opt/otrs//
Setting owner rw and group ro permissions on /opt/otrs//.procmailrc
Setting owner rw and group ro permissions on /opt/otrs//.fetchmailrc
Wenn ich in den Admin Bereich will bekomme ich :

Hoppla. Es ist ein Fehler aufgetreten.
Fehlermeldung: Can't write '/opt/otrs/var/tmp/CacheFileStorable//CacheInternalState/4885f54276c[..]

Backend ERROR: OTRS-CGI-99 Perl: 5.10.1 OS: linux Time: Tue Mar 20 09:08:24 2012

Message: Can't write '/opt/otrs/var/tmp/CacheFileStorable//CacheInternalState/4885f54276c3790b677fe26733aa3f63': Permission denied

Traceback (3485):
Module: Kernel::System::Main::FileWrite (v1.58) Line: 444
Module: Kernel::System::Cache::FileStorable::Set (v1.8) Line: 91
Module: Kernel::System::Cache::Set (v1.20) Line: 126
Module: Kernel::System::CacheInternal::Set (v1.9) Line: 132
Module: Kernel::System::State::StateGetStatesByType (v1.48) Line: 437
Module: Kernel::System::Ticket::TicketSearch (v1.488.2.1) Line: 4959
Module: Kernel::Output::HTML::ToolBarTicketLocked::Run (v1.7) Line: 65
Module: Kernel::Output::HTML::Layout::Header (v1.351.2.2) Line: 1416
Module: Kernel::Output::HTML::Layout::ErrorScreen (v1.351.2.2) Line: 1102
Module: Kernel::Modules::AdminSysConfig::Run (v1.112) Line: 50
Module: Kernel::System::Web::InterfaceAgent::Run (v1.58.2.1) Line: 853
Module: ModPerl::ROOT::ModPerl::Registry::opt_otrs_bin_cgi_2dbin_index_2epl::handler (unknown version) Line: 45



Könnt ihr mir mal auf die Sprünge helfen was ich hier falsch mache?
Produktiv:
OTRS 3.1.7
CentOS 6.3
Apache2/MySQL

Test:
OTRS 3.1.7
CentOS 6.3
Apache2/MySQL
Locked