LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 12-13-2010, 11:33 PM   #1
dhiman.manish23
LQ Newbie
 
Registered: Dec 2010
Posts: 24

Rep: Reputation: 0
Postfix mailscanner problem


i have a postfix mail server in my office and mailscanner. recently i changed the password of mailscanner's admin login 'mailwatch' and now i m unable to get login in postfixmail scanner. even i changed the password of mailwatch user from mysql database, bt it does not work. please help to get login into mailscanner to chk the mails of all users.
 
Old 12-14-2010, 04:28 AM   #2
Noway2
Senior Member
 
Registered: Jul 2007
Distribution: Gentoo
Posts: 2,125

Rep: Reputation: 781Reputation: 781Reputation: 781Reputation: 781Reputation: 781Reputation: 781Reputation: 781
I suspect that the password in SQL has been hashed somehow and you will have trouble re-recreating it. BTW, This is the whole point of securing passwords; to prevent someone from doing what you are trying.

In most Linux applications, the 'magic' is in the configuration files, typically stored in /etc, rather than in the application itself. Maybe you can back up your configuration, remove and purge the package, remove the user of SQL. Then re-install the package which will prompt a re-configure. Afterwards, restore your configuration.

Alternatively, you may be able to just run a package reconfigure and recreate the initial setup and then restore your configuration instead of removing the package. In either case, back up your existing configuration first.

Edit: normally it is against the policies of LQ to help with password cracking. The process that I suggested will require root privilege, which if you have I assume you are the authorized user of the machine. Hence there is no need to 'crack' the password.

Last edited by Noway2; 12-14-2010 at 04:30 AM. Reason: Comment on password cracking
 
Old 12-14-2010, 05:47 AM   #3
dhiman.manish23
LQ Newbie
 
Registered: Dec 2010
Posts: 24

Original Poster
Rep: Reputation: 0
thank u sir... bt still i want to knw...

thank u sir... bt still i want to knw that if i add a new user in sql then will it work or nt? and i have root privilege of the system and plz tell me if there is any way to crack the passwd. actualy i hav newly joined this company and i was resetting the passwds for security purposes. and i dnt want dat my management will say anything wrong to me. plz help me if passwd cracking is possible. plz. m in trouble.

Thanks and Regards
Manish
 
Old 12-14-2010, 12:17 PM   #4
Noway2
Senior Member
 
Registered: Jul 2007
Distribution: Gentoo
Posts: 2,125

Rep: Reputation: 781Reputation: 781Reputation: 781Reputation: 781Reputation: 781Reputation: 781Reputation: 781
I doubt that you will be able to 'crack' the password, but you may be able to reset it. To do so, you would need to change it both in the user for MySQL and in the configuration for the application, which is likely in a folder in your /etc directory. See this link. About half way down, it shows the creation of a SQL user and grants privileges on the user account. This information will also be stored in a configuration file, or possibly in a generated PHP (or include) file for Mailwatch and will need to match in both places. Note, if you change the password in SQL and then look at the password again, it will probably be hashed and won't look like what you entered. This is because the application will take the password, hash it, and then SQL will compare the hashes. This way the actual password doesn't need to be stored in SQL.

Also, it looks like you made an honest mistake on a new job. These things happen and I am sure your new boss knows this. Undoubtedly, you will look far worse if in trying to cover this up, you make more mistakes. Be careful and make back ups.
 
Old 12-14-2010, 12:31 PM   #5
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 27,679

Rep: Reputation: 8153Reputation: 8153Reputation: 8153Reputation: 8153Reputation: 8153Reputation: 8153Reputation: 8153Reputation: 8153Reputation: 8153Reputation: 8153Reputation: 8153
Quote:
Originally Posted by dhiman.manish23 View Post
thank u sir... bt still i want to knw that if i add a new user in sql then will it work or nt? and i have root privilege of the system and plz tell me if there is any way to crack the passwd. actualy i hav newly joined this company and i was resetting the passwds for security purposes. and i dnt want dat my management will say anything wrong to me. plz help me if passwd cracking is possible. plz. m in trouble.

Thanks and Regards
Manish
I agree with Noway2 totally. Own up to a mistake, and get it solved by working with your team.

And you need to spell your words out....that text-speak garbage is against LQ rules.
 
Old 12-14-2010, 10:25 PM   #6
dhiman.manish23
LQ Newbie
 
Registered: Dec 2010
Posts: 24

Original Poster
Rep: Reputation: 0
I am sorry and thank you so much

I am sorry for my words used, actually I am new to this community that's why i made a mistake. Next time it will not happen. And thanks a lot to Mr. Noway2 who gave me such a good response just like a big brother. I really appreciate this. And you are right that I made mistake and I agree to this but I think, if I have to learn something I have to do it by myself. Next time I will be aware of it.

Thanks and Regards
Manish Dhiman
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Mailscanner using postfix alphatest Linux - Software 6 08-31-2010 11:47 PM
MailScanner/postfix chroot waelaltaqi Linux - Software 0 02-27-2007 09:15 AM
Mailscanner - Postfix leandrob Linux - Software 0 06-09-2006 08:15 AM
Postfix with MailScanner wmartino Linux - Security 3 03-14-2004 11:30 AM
mailscanner + postfix rafalek Linux - Software 0 02-10-2004 11:52 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 07:49 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration