Koozali.org: home of the SME Server

admin password stopped working - can root reset this?

joebowen

admin password stopped working - can root reset this?
« on: April 27, 2007, 04:45:30 PM »
Help! I am on SME 7.3 and cannot sign on as admin. I can sign on as root. Is there a way to reset admin password when signed on as root?

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: admin password stopped working - can root reset this?
« Reply #1 on: April 27, 2007, 06:03:58 PM »
Quote from: "joebowen"
Help! I am on SME 7.3 and cannot sign on as admin. I can sign on as root. Is there a way to reset admin password when signed on as root?


mmhhh...

what do you mean with "and cannot sign on as admin"? where you are unable to sign on? console? web interface?

ciao

Stefano

joebowen

admin password stopped working - can root reset this?
« Reply #2 on: April 27, 2007, 06:06:29 PM »
Can't sign on with server-manager with web access or at a command prompt.

joebowen

admin password stopped working - can root reset this?
« Reply #3 on: April 27, 2007, 06:30:00 PM »
At the server console when I try to sign on the following message appears:
Real uid cannot exec script.

Then kicks me back to the login prompt

Offline byte

  • *
  • 2,183
  • +2/-0
admin password stopped working - can root reset this?
« Reply #4 on: April 27, 2007, 07:01:44 PM »
Quote from: "joebowen"
At the server console when I try to sign on the following message appears:
Real uid cannot exec script.

Then kicks me back to the login prompt


Can you help at this bug as it has exactly your issue...

http://bugs.contribs.org/show_bug.cgi?id=2802

Please read and post the relevant info to that bug..thanks!
--[byte]--

Have you filled in a Bug Report over @ http://bugs.contribs.org ? Please don't wait to be told this way you help us to help you/others - Thanks!

joebowen

admin password stopped working - can root reset this?
« Reply #5 on: April 27, 2007, 07:23:45 PM »
I am using this as a production mail server.

Can you tell me at which level the bug was introduced?

Can I install SME on a new box and copy users and mail to there?

Offline mrjhb3

  • *
  • 1,188
  • +0/-0
    • John Bennett Services
admin password stopped working - can root reset this?
« Reply #6 on: April 27, 2007, 07:57:53 PM »
Really need to find out what the cause of this is, but since this is on a production server and you probably need access, you could try to login to the console as root, then run - passwd admin - and change the admin password to match the root password, then try to access server-manager.

John
......

joebowen

admin password stopped working - can root reset this?
« Reply #7 on: April 27, 2007, 08:27:58 PM »
Yes, already tried that with no luck.

Can you point me to something that tells me which directories to copy to a fresh install to get the users and associated files transferred?

Offline mrjhb3

  • *
  • 1,188
  • +0/-0
    • John Bennett Services
admin password stopped working - can root reset this?
« Reply #8 on: April 27, 2007, 09:31:46 PM »
I take it that a signal-event post-upgrade ; signal-event reboot didn't work either?

I have done this in a test environment only.  If you have re-created all of your users, ibays and previous environment, and if all you want to do is then move/copy their data:

User data is stored in /home/e-smith/files/users - make sure you adjust the permissions correctly.  If you have issues with mail, you may need to delete the users /Maildir/dovecot* files, they will be recreated on the next login

Ibay information is stored in /home/e-smith/files/ibays - again adjust permissions.

John
......

joebowen

admin password stopped working - can root reset this?
« Reply #9 on: April 27, 2007, 11:01:39 PM »
Do the users have to be recreated? These are not backed up?

Offline mrjhb3

  • *
  • 1,188
  • +0/-0
    • John Bennett Services
admin password stopped working - can root reset this?
« Reply #10 on: April 27, 2007, 11:17:04 PM »
Quote from: "joebowen"
Do the users have to be recreated? These are not backed up?


Yes, they are backed up, but you didn't detail how you were going to do the restore?  I thought you were just going to move files.

John
......

joebowen

admin password stopped working - can root reset this?
« Reply #11 on: April 27, 2007, 11:22:40 PM »
Just curious - was this bug introduced through the yum updates?

Offline byte

  • *
  • 2,183
  • +2/-0
admin password stopped working - can root reset this?
« Reply #12 on: April 28, 2007, 12:21:57 AM »
Quote from: "joebowen"
Just curious - was this bug introduced through the yum updates?


Bug 2802 was found in version 7.0 of our SME Server, but because no follow up happened we don't know why or where it occurs....can't happen that much as people haven't flooded that bug...
--[byte]--

Have you filled in a Bug Report over @ http://bugs.contribs.org ? Please don't wait to be told this way you help us to help you/others - Thanks!

joebowen

admin password stopped working - can root reset this?
« Reply #13 on: April 28, 2007, 02:52:44 AM »
I would love to fill out a bug report but I have no clue when or why this happened.

Turns out I don't have a good backup - can the backup script be run in another way since I don't have access to server-admin?