SOLVED Subaccount invitation expiration

mathrock74

Member
Nov 28, 2017
5
0
1
Vienna
cPanel Access Level
Root Administrator
Hi,

i'm letting a "customer" create subaccounts with "User manager" (subaccounts are for email use only). She uses the "The user will set the account password" option and now tells me that the invitations sent out via email expire "too soon". I didn't find documentation on how long these invitations are valid and whether there is a configuration option for this timespan. Can someone enlighten me?

WHM
v68.0.28

thx
matthias
 
Last edited by a moderator:

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,268
463
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:

Submit A Feature Request

Thank you.
 

BeauS

Registered
Sep 5, 2019
1
0
1
Bemidji, MN
cPanel Access Level
Root Administrator
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.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,268
463
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:

Rich (BB code):
/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:

Rich (BB code):
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:

Rich (BB code):
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:

Rich (BB code):
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.