OTRS Console password

Moderator: crythias

Post Reply
mzydelis
Znuny newbie
Posts: 12
Joined: 11 May 2018, 15:12
Znuny Version: OTRS-6.06

OTRS Console password

Post by mzydelis »

Hello,
I have running OTRS 6.06 and want to update it to OTRS 6.07 but I have ran into a problem. My otrs system is running on VM on ubuntu server and I cannot manage to remember OTRS console password. Is there a way to reset it or to find it? I need it to move files:

root > sudo su otrs
otrs > sudo su
Please write passowrd:


Thank you for any help.
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: OTRS Console password

Post by reneeb »

You were already logged in as root. So, why do you want sudo permissions for "otrs"? Everything that needs root permissions, should be done as root, not otrs.

But changing the password for "otrs" is simple:

Code: Select all

root> passwd otrs
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
mzydelis
Znuny newbie
Posts: 12
Joined: 11 May 2018, 15:12
Znuny Version: OTRS-6.06

Re: OTRS Console password

Post by mzydelis »

Thank you!
mzydelis
Znuny newbie
Posts: 12
Joined: 11 May 2018, 15:12
Znuny Version: OTRS-6.06

Re: OTRS Console password

Post by mzydelis »

One more thing, I will write this in the same topic.

Again I am trying to update OTRS. I am following steps from https://doc.otrs.com/doc/manual/admin/6 ... ating.html and did backup by http://doc.otrs.com/doc/manual/admin/4. ... store.html.

I thought this will automatically backup my Kernel/Config.pm but it did not. When I tried to restore backup I run into error, your Kernel is missing you will need to install it something like it. I cannot find any legit tutorials how to backup and restore Kernel config. Could you please help me with that.

Best regards,
Marius
mzydelis
Znuny newbie
Posts: 12
Joined: 11 May 2018, 15:12
Znuny Version: OTRS-6.06

Re: OTRS Console password

Post by mzydelis »

I will attach image in order for you to understand better.

Image
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: OTRS Console password

Post by reneeb »

Code: Select all

cd /opt/otrs
perl scripts/restore.pl -b /backup/2018-05-10_10-52 -d /opt/otrs
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
mzydelis
Znuny newbie
Posts: 12
Joined: 11 May 2018, 15:12
Znuny Version: OTRS-6.06

Re: OTRS Console password

Post by mzydelis »

The same thing happens.
root
Administrator
Posts: 3934
Joined: 18 Dec 2007, 12:23
Znuny Version: Znuny and Znuny LTS
Real Name: Roy Kaldung
Company: Znuny
Contact:

Re: OTRS Console password

Post by root »

Ho,

I guess . is not included in @INC

Did you checked this?

- Roy
Znuny and Znuny LTS running on CentOS / RHEL / Debian / SLES / MySQL / PostgreSQL / Oracle / OpenLDAP / Active Directory / SSO

Use a test system - always.

Do you need professional services? Check out https://www.znuny.com/

Do you want to contribute or want to know where it goes ?
mzydelis
Znuny newbie
Posts: 12
Joined: 11 May 2018, 15:12
Znuny Version: OTRS-6.06

Re: OTRS Console password

Post by mzydelis »

I am beginner at linux server and not sure how to do that. Could please explain it more or just give me a link to explanation.

Thank you for quick responses,
Marius
mzydelis
Znuny newbie
Posts: 12
Joined: 11 May 2018, 15:12
Znuny Version: OTRS-6.06

Re: OTRS Console password

Post by mzydelis »

I manage to detect Config.pm in old configuration. When I tried to copy it to updated otrs and then restore I run into error: ERROR: Already existing tables in this database. A empty database is required for restore! and when I delete it again the same error that there is no Config.pm file. Is it possible that this backup tool is not working properly and misses few files?

After backup I get these messeges:

root@fsc-ubuntu-vm:/opt/otrs/scripts# ./backup.pl -d /backup/
Backup /backup//2018-05-14_14-32/Config.tar.gz ... done
Backup /backup//2018-05-14_14-32/Application.tar.gz ... done
Dump MySQL data to /backup//2018-05-14_14-32/DatabaseBackup.sql.gz ... mysqldump: [Warning] Using a password on the command line interface can be insecure.
done

Cant it be because I do not dump mysql data? If yes, how do I do it?

Thank you for any help!
mzydelis
Znuny newbie
Posts: 12
Joined: 11 May 2018, 15:12
Znuny Version: OTRS-6.06

Re: OTRS Console password

Post by mzydelis »

UPDATE: I downloaded a file manager tool on ubuntu server and now I manage to locate these files that I backed up. I do manage to find a configuration files in my backup. For some reason restore command do not use them. Picture attached.

Image
mzydelis
Znuny newbie
Posts: 12
Joined: 11 May 2018, 15:12
Znuny Version: OTRS-6.06

Re: OTRS Console password

Post by mzydelis »

One question, if I manualy copy and replace configuration files and var folder will my system update and keep the same? Or there are more files / folders to copy.

Best regards,
Marius
wurzel
Znuny guru
Posts: 3224
Joined: 08 Jul 2010, 22:25
Znuny Version: x.x.x
Real Name: Florian

Re: OTRS Console password

Post by wurzel »

Hi,

it is all in the docs admin manual (doc.otrs.org)
what files to backup and to restore.

You should consider to get a training for OTRS + Linux, and/or get professional help.

regards
Flo
OTRS 8 SILVER (Prod)
OTRS 8 auf Debian 11 (Test)
Znuny 7.x latest version testing auf Debian 11

-- Ich beantworte keine Forums-Fragen PN - No PN please

I won't answer to unfriendly users any more. A greeting and regards are just polite.
Post Reply