Koozali.org: home of the SME Server

Error do create account / reset password

calvin

Error do create account / reset password
« on: July 25, 2002, 07:45:24 PM »
To correct an error in my mitel 5.5 when create account that has been deleted,
I follow the steps -

delete account form database :

/sbin/e-smith/db accounts delete giselly    

and

vi /home/e-smith/accounts

to remove all entry of this account.

Then when I go to server Manager to create a account named giselly I get
this error :

An error occurred creating the user.

Click here to create a user account.

You can modify, lock or remove any account or reset the account's password by clicking on the corresponding command next to the
anaccount.


The account appear in server manager but  when I try to reset password, I receive an empty screen form manager, and can t reset password.


Thanks a lot.

calvin

Re: Error do create account / reset password
« Reply #1 on: July 26, 2002, 12:47:09 AM »
I found a way to correct the error, and when I have a time put the solution in the forum.


calvin

Luis Contreras

Re: Error do create account / reset password
« Reply #2 on: October 11, 2003, 03:03:24 AM »
Would you put the solution, I got the same exact problem right now.

Regards,

Luis Contreras

Re: Error do create account / reset password
« Reply #3 on: October 12, 2003, 10:53:14 PM »
Have anyone else have the same problem?

  I got the same problem, and would like to know if there is a fix,
  or I have to rebuild everything from scratch?  That means reinstalling
  e-smith,

  Thanks for your help,

Luis Contreras

Re: Error do create account / reset password
« Reply #4 on: October 12, 2003, 11:01:22 PM »
The user that I am trying to create is 'digitalmiraflores',

  the process was to create a new user after running,

  /sbin/e-smith/db accounts delete digitalmiraflores

  and deleting all entries from the file  /home/e-smith/accounts
 
  I tried to create the account from the server-manager but it displays
  the error message   "An error occurred creating the user"

  The user was added but when I tried to set the password a
  blank screen comes out, and nothing else,

  I looked at the file

  var/log/messages  

  and find these


 Oct 12 11:37:59 server e-smith[1742]: In /etc/e-smith/templates//var/qmail/users/assign/60users: Failed to obtain user details for 'digitalmiraflores' while processing user assignments.
Oct 12 11:37:59 server e-smith[1742]: In /etc/e-smith/templates//var/qmail/users/assign/70pseudonyms: Failed to obtain user details for 'digitalmiraflores' while processing pseudonym assignments.
Oct 12 11:37:59 server e-smith[1742]: qmail-newu: fatal: bad format in users/assign
Oct 12 11:37:59 server e-smith[1742]: S50email-assign=action|Event|user-create|Action|S50email-assign|Start|1065980278 763568|End|1065980279 794925|Elapsed|1.031357
Oct 12 11:37:59 server e-smith[1742]: Running event handler: /etc/e-smith/events/user-create/S50user-modify-quota
Oct 12 11:37:59 server e-smith[1742]: Could not get uid for user named "digitalmiraflores"
Oct 12 11:37:59 server e-smith[1742]: S50user-modify-quota=action|Event|user-create|Action|S50user-modify-quota|Start|1065980279 795201|End|1065980279 983798|Elapsed|0.188597|Status|512
Oct 12 11:37:59 server e-smith[1742]: Running event handler: /etc/e-smith/events/user-create/S55mailfront-conf-control
Oct 12 11:38:00 server e-smith[1742]: S55mailfront-conf-control=action|Event|user-create|Action|S55mailfront-conf-control|Start|1065980279 986065|End|1065980280 460978|Elapsed|0.474913
Oct 12 11:38:00 server e-smith[1742]: Running event handler: /etc/e-smith/events/user-create/S75reload-samba
Oct 12 11:38:00 server e-smith[1742]: S75reload-samba=action|Event|user-create|Action|S75reload-samba|Start|1065980280 463009|End|1065980280 746501|Elapsed|0.283492
Oct 12 11:38:00 server e-smith[1742]: Running event handler: /etc/e-smith/events/user-create/S80pptpd-conf
Oct 12 11:38:01 server e-smith[1742]: S80pptpd-conf=action|Event|user-create|Action|S80pptpd-conf|Start|1065980280 749005|End|1065980281 4586|Elapsed|0.255581
Oct 12 11:38:01 server smb: smbd -HUP succeeded
Oct 12 11:38:01 server e-smith-bg: Reloading smb.conf file: [   OK   ]^M
Oct 12 11:42:28 server sshd[1816]: Accepted password for root from 168.234.201.97 port 23704
Oct 12 11:42:29 server sshd(pam_unix)[1816]: session opened for user root by (uid=0)
Oct 12 11:52:17 server PAM_pwdb[1924]: cannot identify user digitalmiraflores (uid=0)


 Does anyone wish to help to solve this problem?   That by the way looks pretty
 common in 5.5, but no solution found in the search of the forum.

Luis Contreras

Re: Error do create account / reset password
« Reply #5 on: October 12, 2003, 11:16:46 PM »
Ok, I found the way to do it,

I am just posting the solution,

If you see the /var/log/httpd    error log file, you would find something
like this, in my case the user was 'digitalmiraflores'


Failed to set Unix password for account digitalmiraflores: User not known to the underlying authentication module
User digitalmiraflores does not exist in system password file (usually /etc/passwd). Cannot add account without a valid local system user.
Failed to modify password entry for user digitalmiraflores
Failed to set Samba password for account digitalmiraflores


So I I did was only to run useradd miraflores from the command line and then
reset the password successfully from the server-manager,

I hope this helps anyone else in the future,

Regards,

Luis R. Contreras