Skip to main content

Subaccount invitation expiration

Comments

4 comments

  • cPanelMichael
    Hello, Invitations to set the subaccount password include an automatic expiration time of 2 days. It's not possible to configure this value, but I encourage you to open a feature request if you'd like to see such a feature offered:
    0
  • mathrock74
    thanks for the information, that's ok for me. thread can be closed
    0
  • BeauS
    Not sure if I should be posting here or in a new thread, but I have a similar situation where some of our customers manage their own mail. When they use this feature of sending an email to an alternate email address to set the password, they are claiming that it expires in 12 hours or less. I tested it on their account and a separate account on the same hosting server and it appears to me that it expires in 24 hours. Can someone confirm this and/or let me know where this timeout can be configured if it can be configured? I cannot find any solid information about this anywhere to confirm the expiration time with the customer.
    0
  • cPanelMichael
    Hello @BeauS, I'm seeing 2 days (48 hours) in my testing. The subaccount SQLite database is located at the following path for each account if you want to confirm this: /home/example/.subaccounts/storage.sqlite
    As an example, you could run the following command via SSH if you wanted to determine the password invite expiry time after creating an email account using the Provide alternate email option under the "example" cPanel account: [CODE=rich]/usr/local/cpanel/3rdparty/bin/sqlite3 /home/example/.subaccounts/storage.sqlite
    This will bring you to the sqlite prompt where you can enter the following command to see all of the data from the users table: [CODE=rich]sqlite> select * from users;
    You are looking for the invite_expiration table data, so you could refine the output further with an additional command on the sqlite prompt: [CODE=rich]sqlite> select invite_expiration from users;
    The invite_expiration data is stored as an epoch timestamp. To convert it to a human-readable format, exit the sqlite command prompt and run a bash command like the one in the example below: [CODE=rich]date -d @1568310668
    In the above example, replace "1568310668" with the epoch timestamp returned in the sqlite command referenced above. Let me know if this helps. Thank you.
    0

Please sign in to leave a comment.