Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

How can I limit using time for my user ?

Discussion in 'General Discussion' started by NgocChinh, Oct 30, 2007.

  1. NgocChinh

    NgocChinh Registered

    Joined:
    Oct 28, 2007
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    51
    Hello !

    I was ordered your license, everything was ok.
    But 1 thing: How can I limit using time for my user ?
    Ex: I create an user on 01 Nov 2007 then I want this user out of date on 01 May 2007 automatic.
    How can I do that ? :confused:
     
  2. jayh38

    jayh38 Well-Known Member

    Joined:
    Mar 3, 2006
    Messages:
    1,215
    Likes Received:
    0
    Trophy Points:
    166
    This task would be handled in a billing software system or if you want to be so bold as to suspend or terminate the account via a cronjob.
     
  3. NgocChinh

    NgocChinh Registered

    Joined:
    Oct 28, 2007
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    51
    Can u suggest or tell me s.th 'bout billing software system ?
    Or send an instruction 4 me via a cronjob ?
     
  4. rustelekom

    rustelekom Well-Known Member
    PartnerNOC

    Joined:
    Nov 13, 2003
    Messages:
    290
    Likes Received:
    0
    Trophy Points:
    166
    Location:
    moscow
    you can use awbs,com, modernbill.com software. awbs is more easy for installation and setup...
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. NgocChinh

    NgocChinh Registered

    Joined:
    Oct 28, 2007
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    51
    Who can help me know: How to do it via a cronjob ?
     
  6. jayh38

    jayh38 Well-Known Member

    Joined:
    Mar 3, 2006
    Messages:
    1,215
    Likes Received:
    0
    Trophy Points:
    166
    If you are determined to set this up in a cronjob, first set the time you desire and add the command as the example below.

    0 0 1 1 * /scripts/killacct username >/dev/null 2>&1

    The example will kill the account January 1 at midnight.

    Here is a cron help page.
     
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice