The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Track email users password changes

Discussion in 'E-mail Discussions' started by anand, Feb 25, 2014.

  1. anand

    anand Well-Known Member

    Joined:
    Nov 11, 2002
    Messages:
    1,435
    Likes Received:
    1
    Trophy Points:
    38
    Location:
    India
    cPanel Access Level:
    DataCenter Provider
    Hi,

    For a client we have 400 users who check their emails regularly, but do not follow the policy of password changes i.e. every 30 days they need to change their password. Now they do not login to webmail, so I cannot use cpanel built in functionality to force them to change passwords.

    Is there a way we can track when a users last password was changed ? We can then send them a reminder to change passwords.

    Thanks
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    648
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello :)

    The date of the last password change is recorded in the shadow file (for email it's stored in /home/$username/etc/$domain/). The following link explains how to find it:

    Understanding /etc/shadow file

    Thank you.
     
  3. anand

    anand Well-Known Member

    Joined:
    Nov 11, 2002
    Messages:
    1,435
    Likes Received:
    1
    Trophy Points:
    38
    Location:
    India
    cPanel Access Level:
    DataCenter Provider
    Ok cool, thanks. That's what I was looking for.

    A few lines from the article on shadow files
    Is this the same way cpanel forces password change for email users ?

    Thanks
     
    #3 anand, Feb 25, 2014
    Last edited: Feb 25, 2014
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    648
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
  5. anand

    anand Well-Known Member

    Joined:
    Nov 11, 2002
    Messages:
    1,435
    Likes Received:
    1
    Trophy Points:
    38
    Location:
    India
    cPanel Access Level:
    DataCenter Provider
    Is it possible to get more insight on this :)

    Perhaps I can simulate my own notifications to users the same way.

    Thanks
     
  6. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    648
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    The previous link provided should provide you with enough information about the shadow file so you can develop your own application:

    Understanding /etc/shadow file

    The module/script that cPanel uses to implement the checking is not open source as far as I know, but you are welcome to make a new post on our Developers forum to get input on how to setup such an application from other users.

    Thank you.
     
  7. anand

    anand Well-Known Member

    Joined:
    Nov 11, 2002
    Messages:
    1,435
    Likes Received:
    1
    Trophy Points:
    38
    Location:
    India
    cPanel Access Level:
    DataCenter Provider
    ok thanks for the help. Will post in developer section.
     
Loading...

Share This Page