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.

Suspending account with access to cpanel.

Discussion in 'General Discussion' started by orlandoadm, Feb 15, 2016.

  1. orlandoadm

    orlandoadm Registered

    Joined:
    Feb 15, 2016
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Ro
    cPanel Access Level:
    Root Administrator
    Hello,

    Im interested in modifying the suspendacct script, to be able to suspend an account completely, but to grant access in the same time to cPanel, so the client can resolve the issues with his Site/account.

    I commented out the line #system( 'passwd', '-l', $user ); so it doesnt puts !! in /etc/shadow next to the account pass but still wasn't able to log in and the account doesn't shows as suspended in WHM(it appears after i insert manually the !! before pass)
     
  2. cPanelKenneth

    cPanelKenneth cPanel Development
    Staff Member

    Joined:
    Apr 7, 2006
    Messages:
    4,458
    Likes Received:
    22
    Trophy Points:
    38
    cPanel Access Level:
    Root Administrator
    That's not the intent of account suspension. If you want to restrict public access to the customer's website then you should reduce its bandwidth quota. That allows your customer to login to cPanel, and other services to adjust whatever you need him to adjust. Afterward you can restore the bandwidth quota to the proper amount.
     
  3. orlandoadm

    orlandoadm Registered

    Joined:
    Feb 15, 2016
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Ro
    cPanel Access Level:
    Root Administrator
    If i reduce the bandwith quota just the site will be unaccesible?for example if it was inserted a malicious script on the account wich sends spam mails its not gonna stop that.
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,736
    Likes Received:
    661
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
  5. cPanelKenneth

    cPanelKenneth cPanel Development
    Staff Member

    Joined:
    Apr 7, 2006
    Messages:
    4,458
    Likes Received:
    22
    Trophy Points:
    38
    cPanel Access Level:
    Root Administrator
    Correct. Reducing the bandwidth quota will prevent Apache from serving more data. If the problem is email related in version 54 we provide the means to disable email accounts: 54 Release Notes - Documentation - cPanel Documentation

    That may or may not meet your needs.
     
Loading...

Share This Page