
Hello everyone! I'm having a lot of fun with OTRS. Very useful system to our company. But now I have a little problem. Changing a lot of permissions (Groups, Roles, etc.) I lost the option Admin with all users. Is there any way to recover this option?

Can you still login as the default admin user (userid =1)? Do you have access to the MySQL tables? I believe the admin rights can be reset by changing a value in the group_user table The default admin user_id = 1 The default admin group = group_id = 2 In the group_user table User_id = 1 must have a value with Group_id = 2 and "rw" in the permission_key field Regards, Peter Van: otrs-bounces@otrs.org [mailto:otrs-bounces@otrs.org] Namens BCWINFO Verzonden: vrijdag 8 februari 2008 12:20 Aan: otrs@otrs.org Onderwerp: [otrs] I lost all admin power into OTRS!!! Hello everyone! I'm having a lot of fun with OTRS. Very useful system to our company. But now I have a little problem. Changing a lot of permissions (Groups, Roles, etc.) I lost the option Admin with all users. Is there any way to recover this option?

Peter my dear friend. Let's try to talk the same language, hehehehe.
1.) I was an admin user. But now, I'm just a common user. Trying to
understand the concept of groups and roles I just f*c*ed all. I tried the
user root@localhost and admin but no success too. System tells me that they
aren't a valid user!
2.) I believe that I have access to the tables. But I'm not using MySQL. I'm
using a paid version (the server that received OTRS already had Microsoft
SQL Server installed and running).
3.) Could you please help me to do that? I'm an IT infrastructure guy and
have some trouble operating SQL.
On Feb 8, 2008 9:42 AM, Peter van Beugen
Can you still login as the default admin user (userid =1)?
Do you have access to the MySQL tables?
I believe the admin rights can be reset by changing a value in the group_user table
The default admin user_id = 1
The default admin group = group_id = 2
In the group_user table
User_id = 1 must have a value with
Group_id = 2 and
"rw" in the permission_key field
Regards,
Peter
*Van:* otrs-bounces@otrs.org [mailto:otrs-bounces@otrs.org] *Namens * BCWINFO *Verzonden:* vrijdag 8 februari 2008 12:20 *Aan:* otrs@otrs.org *Onderwerp:* [otrs] I lost all admin power into OTRS!!!
Hello everyone!
I'm having a lot of fun with OTRS. Very useful system to our company. But now I have a little problem. Changing a lot of permissions (Groups, Roles, etc.) I lost the option Admin with all users. Is there any way to recover this option?
_______________________________________________ OTRS mailing list: otrs - Webpage: http://otrs.org/ Archive: http://lists.otrs.org/pipermail/otrs To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/otrs Support or consulting for your OTRS system? => http://www.otrs.com/

1. I understand. root@localhost = the default user = user_id 1 2. Access the SQL table "group_user" direct (use a sql tool) 3. Set for admin = user_id = 1 è the default admin group = group_id = 2 and "rw" in the permission_key field Van: otrs-bounces@otrs.org [mailto:otrs-bounces@otrs.org] Namens BCWINFO Verzonden: vrijdag 8 februari 2008 12:54 Aan: User questions and discussions about OTRS.org Onderwerp: Re: [otrs] I lost all admin power into OTRS!!! Peter my dear friend. Let's try to talk the same language, hehehehe. 1.) I was an admin user. But now, I'm just a common user. Trying to understand the concept of groups and roles I just f*c*ed all. I tried the user root@localhost and admin but no success too. System tells me that they aren't a valid user! 2.) I believe that I have access to the tables. But I'm not using MySQL. I'm using a paid version (the server that received OTRS already had Microsoft SQL Server installed and running). 3.) Could you please help me to do that? I'm an IT infrastructure guy and have some trouble operating SQL.

Dear Peter,
what SQL Tool? Any tip?
On Feb 8, 2008 10:51 AM, Peter van Beugen
1. I understand. root@localhost = the default user = user_id 1
2. Access the SQL table "group_user" direct (use a sql tool)
3. Set for admin = user_id = 1 è the default admin group = group_id = 2 and "rw" in the permission_key field

Dear LQ.
I found it!!!
I have a structure like explorer. The left site, a lot of DBs? I could not
find anything like OTRS...
On Feb 8, 2008 2:59 PM, LQ Marshall
what SQL Tool? Any tip?
I think you said you were using M$-SQL which implies that there is an install of the MS SQL Query Analyzer on the server. If it was not installed you can install it from the install CD, but it is loaded by default.
gl
_______________________________________________ OTRS mailing list: otrs - Webpage: http://otrs.org/ Archive: http://lists.otrs.org/pipermail/otrs To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/otrs Support or consulting for your OTRS system? => http://www.otrs.com/

The database could be named nearly anything. If you have access to OTRS files the database is referenced in the Config.pm file (it's in the Kernel dir). Don't know if the win32 version uses the same structure though. Probably will have to look for the DB name and then go back to Query analyzer. You may also have the Enterprise admin tool (which may be described as QA on steroids). LQ _____ From: otrs-bounces@otrs.org [mailto:otrs-bounces@otrs.org] On Behalf Of BCWINFO Sent: Friday, February 08, 2008 12:23 PM To: User questions and discussions about OTRS.org Subject: [Spam] Re: [otrs] I lost all admin power into OTRS!!! Dear LQ. I found it!!! I have a structure like explorer. The left site, a lot of DBs? I could not find anything like OTRS...

Ok LQ.
I have edited Config.pm:
# database settings #
# ---------------------------------------------------- #
# DatabaseHost
# (The database host.)
$Self->{'DatabaseHost'} = 'localhost';
# Database
# (The database name.)
$Self->{'Database'} = 'otrs';
# DatabaseUser
# (The database user.)
$Self->{'DatabaseUser'} = 'otrs';
# DatabasePw
# (The password of database user. You also can use bin/CryptPassword.pl
# for crypted passwords.)
$Self->{'DatabasePw'} = 'hot';
# DatabaseDSN
I think that this tells me that the name of my database is really OTRS as I
thought. Right?
However, unhappily, I still could not find it into SQL Querry Analizer.
What a hell!
On Feb 9, 2008 3:39 AM, LQ Marshall
The database could be named nearly anything. If you have access to OTRS files the database is referenced in the Config.pm http://config.pm/ file (it's in the Kernel dir). Don't know if the win32 version uses the same structure though.
Probably will have to look for the DB name and then go back to Query analyzer. You may also have the Enterprise admin tool (which may be described as QA on steroids).
LQ

OK... (1) I presume you mean that you have looked at not edited Config.pm? (2) this is a windows box?, (3) with OTRS and MS-SQL installed on the same box?, (4) You have looked through the MS-SQL and there are no otrs databases? (show databases;) ... hum Does your AD have an otrs user? Is there an installation of win32 mysql or another instance of MS-SQL running on the system? I am not familiar enough with OTRS to remember where the designation for what db OTRS is connecting. Probably can log in and see what localhost connections are being created.(?) LQ _____ From: otrs-bounces@otrs.org [mailto:otrs-bounces@otrs.org] On Behalf Of BCWINFO Sent: Saturday, February 09, 2008 2:48 PM To: User questions and discussions about OTRS.org Subject: [Spam] Re: [Spam] Re: [otrs] I lost all admin power into OTRS!!! Ok LQ. I have edited Config.pm: # database settings # # ---------------------------------------------------- # # DatabaseHost # (The database host.) $Self->{'DatabaseHost'} = 'localhost'; # Database # (The database name.) $Self->{'Database'} = 'otrs'; # DatabaseUser # (The database user.) $Self->{'DatabaseUser'} = 'otrs'; # DatabasePw # (The password of database user. You also can use bin/CryptPassword.pl # for crypted passwords.) $Self->{'DatabasePw'} = 'hot'; # DatabaseDSN I think that this tells me that the name of my database is really OTRS as I thought. Right? However, unhappily, I still could not find it into SQL Querry Analizer. What a hell!

config.pm: it looks like a default otrs/mysql installation
as you cannot find the otrs db in mssql: is it possible that a mysql server is running on this machine?
regards,
Peter
________________________________
Van: otrs-bounces@otrs.org namens BCWINFO
Verzonden: za 9-2-2008 20:47
Aan: User questions and discussions about OTRS.org
Onderwerp: Re: [Spam] Re: [otrs] I lost all admin power into OTRS!!!
Ok LQ.
I have edited Config.pm:
# database settings #
# ---------------------------------------------------- #
# DatabaseHost
# (The database host.)
$Self->{'DatabaseHost'} = 'localhost';
# Database
# (The database name.)
$Self->{'Database'} = 'otrs';
# DatabaseUser
# (The database user.)
$Self->{'DatabaseUser'} = 'otrs';
# DatabasePw
# (The password of database user. You also can use bin/CryptPassword.pl
# for crypted passwords.)
$Self->{'DatabasePw'} = 'hot';
# DatabaseDSN
I think that this tells me that the name of my database is really OTRS as I thought. Right?
However, unhappily, I still could not find it into SQL Querry Analizer.
What a hell!
On Feb 9, 2008 3:39 AM, LQ Marshall

Peter,
config.pm: it looks like a default otrs/mysql installation
as you cannot find the otrs db in mssql: is it possible that a mysql server
is running on this machine?
I presume you mean "is it possible that it is NOT running on this machine".
Based on this Config.pm file presented the simple answer is no. The
localhost remark indicates that the db is sourced locally.
However as I noted yesterday... you may have multiple instances of MS-SQL
installed and OTRS isn't on the default instance. In addition, the database
could have been loaded on a different engine. Is mySQL installed on the box?
I was also thinking that the Config.pm file isn't the 'Active' file. A
back-up of the defaults or similar but the actual OTRS files are elsewhere
on the machine. Is there another Config.pm on the system?
LQ
ps - you should be careful publishing passwords to public lists. If your DB
is not secured properly or if you have a mischievous user internally...
you've provided the username and password to the database. Once you get
this back together change that password (hopefully to something better than
hot
_____
From: otrs-bounces@otrs.org [mailto:otrs-bounces@otrs.org] On Behalf Of
Peter van Beugen
Sent: Sunday, February 10, 2008 8:53 AM
To: User questions and discussions about OTRS.org
Subject: RE: [Spam] Re: [otrs] I lost all admin power into OTRS!!!
config.pm: it looks like a default otrs/mysql installation
as you cannot find the otrs db in mssql: is it possible that a mysql server
is running on this machine?
regards,
Peter
_____
Van: otrs-bounces@otrs.org namens BCWINFO
Verzonden: za 9-2-2008 20:47
Aan: User questions and discussions about OTRS.org
Onderwerp: Re: [Spam] Re: [otrs] I lost all admin power into OTRS!!!
Ok LQ.
I have edited Config.pm:
# database settings #
# ---------------------------------------------------- #
# DatabaseHost
# (The database host.)
$Self->{'DatabaseHost'} = 'localhost';
# Database
# (The database name.)
$Self->{'Database'} = 'otrs';
# DatabaseUser
# (The database user.)
$Self->{'DatabaseUser'} = 'otrs';
# DatabasePw
# (The password of database user. You also can use bin/CryptPassword.pl
# for crypted passwords.)
$Self->{'DatabasePw'} = 'hot';
# DatabaseDSN
I think that this tells me that the name of my database is really OTRS as I
thought. Right?
However, unhappily, I still could not find it into SQL Querry Analizer.
What a hell!
On Feb 9, 2008 3:39 AM, LQ Marshall

You can set the password for a user with otrs/bin/otrs.setPassword
Van: otrs-bounces@otrs.org [mailto:otrs-bounces@otrs.org] Namens BCWINFO
Verzonden: vrijdag 8 februari 2008 12:54
Aan: User questions and discussions about OTRS.org
Onderwerp: Re: [otrs] I lost all admin power into OTRS!!!
Peter my dear friend. Let's try to talk the same language, hehehehe.
1.) I was an admin user. But now, I'm just a common user. Trying to
understand the concept of groups and roles I just f*c*ed all. I tried
the user root@localhost and admin but no success too. System tells me
that they aren't a valid user!
2.) I believe that I have access to the tables. But I'm not using MySQL.
I'm using a paid version (the server that received OTRS already had
Microsoft SQL Server installed and running).
3.) Could you please help me to do that? I'm an IT infrastructure guy
and have some trouble operating SQL.
On Feb 8, 2008 9:42 AM, Peter van Beugen
participants (3)
-
BCWINFO
-
LQ Marshall
-
Peter van Beugen