HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Installation/Configuration (http://www.howtoforge.com/forums/forumdisplay.php?f=16)
-   -   user login problem after creation (http://www.howtoforge.com/forums/showthread.php?t=35119)

marcob 18th May 2009 17:23

user login problem after creation
 
Hi
I noticed that often some users cannot login after first creation.
Sometimes I have seen user is not created in passwd, still it's listed in ispconfig.
Other times it's created in passwd but I have to reinsert password in ispconfig.
Any hints?
Thanks

till 18th May 2009 18:06

Take a look into the ispconfig logfile if there are any errors: /home/admispconfig/ispconfig/ispconfig.log

Be aware that changes are not written to disk immeadeatley, it may take up to a minute or two.

marcob 18th May 2009 18:06

Analyzing the logs I have noticed this behaviour:

when for example I set again password for a user that cannot authenticate I see
Signalfile Set: update

Then after 30-40 seconds the following scripts are triggered:
/root/ispconfig/scripts/lib/config.lib.php
/root/ispconfig/scripts/lib/classes/ispconfig_procmail.lib.php
/root/ispconfig/scripts/lib/classes/ispconfig_postfix.lib.php

If I try to update password for another user or create a new user during this phase, I noticed password mismatch.

is this something known?

till 18th May 2009 18:12

There are no known issues, especially as ispconfig is not starting two update processes at the same time.

marcob 18th May 2009 18:16

what do you suggest to do?

marcob 18th May 2009 18:23

Just tried now to create 4 users all on same domain.
It looks it created first three correctly.
The fourth one is not on passwd and I don't see any entries about it on ispconfig.log. Still it's listed in ispconfig.....
What can I do...?

marcob 18th May 2009 19:01

Another test:

I changed password on 4 accounts all on same domain:
first two works, other two doesn't
Still I see entries in ispconfig.log but it seems it doesn't change password on last two accounts.
This is really strange.... any workaround please?

edit:
Before try to change password on these 4 accounts I made a copy of /etc/shadow.
After that changed sequentially password for these accounts
looked at logs and after updates finished I made a diff between /etc/shadow and the copy I made before changing password.
It showed only first two account modified while other two doesn't.

marcob 18th May 2009 20:55

Adding:

If I modify password of account, wait update entries in log, wait to finish, the modify password of other account, wait update entries in log, wait to finish, etc. it works.
So it seems something related to sequentially change password. Any help will be really appreciated since this is causing a weird situation.
Thanks again

till 18th May 2009 21:33

Which exact version do you use? I'am not able to reproduce that here.

marcob 18th May 2009 21:36

2.2.29

It seems it happens with account of same domain.


All times are GMT +2. The time now is 16:59.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.