Is this a bug? ZZZ*Auto.pm's user changes otrs -> www-data

English! place to talk about development, programming and coding
Post Reply
mkarg
Znuny advanced
Posts: 136
Joined: 03 Jul 2014, 15:17
Znuny Version: 5s (Free)
Real Name: Markus KARG
Company: ProSeS BDE GmbH

Is this a bug? ZZZ*Auto.pm's user changes otrs -> www-data

Post by mkarg »

I think I have found a bug in OTRS 3.3.8 and like to ask the developers whether they can confirm.

I installed OTRS 3.3.8 on Debian Wheezy using this installation guide.
otrs.SetPermsission.pl sets the owner of ZZZ*Auto.pm to 'otrs'.
But once I am uploading a SysConfig file, the owner of ZZZ*Auto.pm is chaged to 'www-data'.
As a result, otrs.PostMasterMailbox.pl says it has no permissions to access ZZZ*Auto.pm and won't fetch any emails.
So I do SetPermissions again, which certainly fixes that -- until I upload SysConfig.pm again...


Also, it seems as sporadically the ZZZAAuto.pm file is newly written, hence also has user changed from www-data -- as a result, the mail fetcher is unable to proceed (without ANY log note, due to >> NUL in the cron scipt!)

If that is wanted behaviour then I want to kindly ask to write in the manual that after SysConfig.pom is uploaded, one has to login to the console and perform SetPermissions again...!

Thanks
-Markus
OTRS 5s (Free) (Debian Squeeze 64 Bit; PostgreSQL) + Agents-Auth_LDAP (ActiveDirectory) + CustomerUser_DB (FreeTDS; MSSQL; MSCRM)
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: Is this a bug? ZZZ*Auto.pm's user changes otrs -> www-da

Post by crythias »

files written by a web server are written as the context/user of the web server.
OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: Is this a bug? ZZZ*Auto.pm's user changes otrs -> www-da

Post by jojo »

your otrs user seems to be created not in the webserver group
"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
mkarg
Znuny advanced
Posts: 136
Joined: 03 Jul 2014, 15:17
Znuny Version: 5s (Free)
Real Name: Markus KARG
Company: ProSeS BDE GmbH

Re: Is this a bug? ZZZ*Auto.pm's user changes otrs -> www-da

Post by mkarg »

You are right that the OTRS user is not in the web server group. This is because the manual for "installing from source" of OTRS 3.3.8 says so:
If your web server is not running with the same user rights as the new 'otrs' user, which is the case on most systems, you will need to add the new 'otrs' user to the group of the web server user (see Script below).

Code: Select all

linux:/opt# useradd -r -d /opt/otrs/ -c 'OTRS user' otrs
linux:/opt# usermod -G nogroup otrs
The "script below" printed apparently does NOT add otrs to the www-data group, hence it is simply wrong! Can you please fix that in the docs? I expect that doc bug as the cause for much trouble lots of people mention on the web regarding mail fetch not working properly... :-)

Thanks
-Markus
OTRS 5s (Free) (Debian Squeeze 64 Bit; PostgreSQL) + Agents-Auth_LDAP (ActiveDirectory) + CustomerUser_DB (FreeTDS; MSSQL; MSCRM)
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: Is this a bug? ZZZ*Auto.pm's user changes otrs -> www-da

Post by jojo »

in Install.md it is clearly stated:
Add user to webserver group (if the webserver is not running as the OTRS user):

shell> usermod -G www otrs
(SUSE=www, Red Hat/CentOS/Fedora=apache, Debian/Ubuntu=www-data)
"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
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: Is this a bug? ZZZ*Auto.pm's user changes otrs -> www-da

Post by crythias »

also,
mkarg wrote:linux:/opt# usermod -G nogroup otrs
that's the line (it's not *your* group, but .. )
OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
mkarg
Znuny advanced
Posts: 136
Joined: 03 Jul 2014, 15:17
Znuny Version: 5s (Free)
Real Name: Markus KARG
Company: ProSeS BDE GmbH

Re: Is this a bug? ZZZ*Auto.pm's user changes otrs -> www-da

Post by mkarg »

jojo wrote:in Install.md it is clearly stated:
Add user to webserver group (if the webserver is not running as the OTRS user):

shell> usermod -G www otrs
(SUSE=www, Red Hat/CentOS/Fedora=apache, Debian/Ubuntu=www-data)
Sorry but this is not true for the public documentation linked on the OTRS web site: http://otrs.github.io/doc/manual/admin/ ... -otrs.html

There it says "nogroup" but not "www"!

Hence, the public web manual is outdated!
OTRS 5s (Free) (Debian Squeeze 64 Bit; PostgreSQL) + Agents-Auth_LDAP (ActiveDirectory) + CustomerUser_DB (FreeTDS; MSSQL; MSCRM)
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: Is this a bug? ZZZ*Auto.pm's user changes otrs -> www-da

Post by crythias »

you will need to add the new 'otrs' user to the group of the web server user (see Script below).
ok. so submit a Pull Request
OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
mkarg
Znuny advanced
Posts: 136
Joined: 03 Jul 2014, 15:17
Znuny Version: 5s (Free)
Real Name: Markus KARG
Company: ProSeS BDE GmbH

Re: Is this a bug? ZZZ*Auto.pm's user changes otrs -> www-da

Post by mkarg »

crythias wrote:
you will need to add the new 'otrs' user to the group of the web server user (see Script below).
ok. so submit a Pull Request
What does this bring? As it was proposed some minutes go, the .md file is already correct. And I do not have access to the web site. So what actually do you want me to provide?
OTRS 5s (Free) (Debian Squeeze 64 Bit; PostgreSQL) + Agents-Auth_LDAP (ActiveDirectory) + CustomerUser_DB (FreeTDS; MSSQL; MSCRM)
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: Is this a bug? ZZZ*Auto.pm's user changes otrs -> www-da

Post by crythias »

Complain about a problem. Fix it yourself. Contribute to the solution.
OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
mkarg
Znuny advanced
Posts: 136
Joined: 03 Jul 2014, 15:17
Znuny Version: 5s (Free)
Real Name: Markus KARG
Company: ProSeS BDE GmbH

Re: Is this a bug? ZZZ*Auto.pm's user changes otrs -> www-da

Post by mkarg »

crythias wrote:Complain about a problem. Fix it yourself. Contribute to the solution.
You do not understand. I *want* to fix it and contribute the solution, but I don't know *how*, as I am not the administrator of the OTRS github.ui web site, so I cannot upload the fixed file. Within the source code the bug does not exist, as I was told on this forum today. So *how* can I fix it?
OTRS 5s (Free) (Debian Squeeze 64 Bit; PostgreSQL) + Agents-Auth_LDAP (ActiveDirectory) + CustomerUser_DB (FreeTDS; MSSQL; MSCRM)
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: Is this a bug? ZZZ*Auto.pm's user changes otrs -> www-da

Post by crythias »

Click the link "Submit a Pull Request"
Click Edit
make changes ...

You may need to create a free github account.
OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
mkarg
Znuny advanced
Posts: 136
Joined: 03 Jul 2014, 15:17
Znuny Version: 5s (Free)
Real Name: Markus KARG
Company: ProSeS BDE GmbH

Re: Is this a bug? ZZZ*Auto.pm's user changes otrs -> www-da

Post by mkarg »

crythias wrote:Click the link "Submit a Pull Request"
Click Edit
make changes ...
You may need to create a free github account.
Maybe I am blind, but where on that page http://otrs.github.io/doc/manual/admin/ ... -otrs.html do you see a "Submit Pull Request" button (again, I am talking about the OTRS Manual on github.io, not the Install.md file on github.com)?
OTRS 5s (Free) (Debian Squeeze 64 Bit; PostgreSQL) + Agents-Auth_LDAP (ActiveDirectory) + CustomerUser_DB (FreeTDS; MSSQL; MSCRM)
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: Is this a bug? ZZZ*Auto.pm's user changes otrs -> www-da

Post by reneeb »

You should send the pull request against the developer repository: https://github.com/OTRS/doc-admin/blob/ ... source.xml
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
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: Is this a bug? ZZZ*Auto.pm's user changes otrs -> www-da

Post by crythias »

mkarg wrote: where ... do you see Submit Pull Request
The source code for the documentation is the .xml document I've previously linked to.
http://screencast.com/t/wqjrXcPbF
OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
mkarg
Znuny advanced
Posts: 136
Joined: 03 Jul 2014, 15:17
Znuny Version: 5s (Free)
Real Name: Markus KARG
Company: ProSeS BDE GmbH

Re: Is this a bug? ZZZ*Auto.pm's user changes otrs -> www-da

Post by mkarg »

reneeb wrote:You should send the pull request against the developer repository: https://github.com/OTRS/doc-admin/blob/ ... source.xml
This was the missing brick! Okay, corrected and sent pull request. :-)

Thanks
-Markus
OTRS 5s (Free) (Debian Squeeze 64 Bit; PostgreSQL) + Agents-Auth_LDAP (ActiveDirectory) + CustomerUser_DB (FreeTDS; MSSQL; MSCRM)
Post Reply