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.

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:
    1
    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:
    36
    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:
    1
    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:
    16
    Location:
    moscow
    you can use awbs,com, modernbill.com software. awbs is more easy for installation and setup...
     
  5. NgocChinh

    NgocChinh Registered

    Joined:
    Oct 28, 2007
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    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:
    36
    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