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 do i disbale CPANEL for specific users?

Discussion in 'General Discussion' started by johnnylu, Apr 6, 2004.

  1. johnnylu

    johnnylu Member

    Joined:
    Mar 17, 2004
    Messages:
    13
    Likes Received:
    0
    Trophy Points:
    1
    Could some one tell me how to disable cpanel access from some user? Which file i have to modify via SSH?

    Thank you in advance!
     
  2. icanectc

    icanectc Well-Known Member

    Joined:
    Mar 10, 2003
    Messages:
    344
    Likes Received:
    0
    Trophy Points:
    16
    why not just change there password?
     
  3. SJJM

    SJJM Member

    Joined:
    Dec 17, 2002
    Messages:
    18
    Likes Received:
    0
    Trophy Points:
    1
    ...or, if you wish to keep their password the same because they want to use it for mail, FTP, MySQL, or something similar, you could just change their theme to a blank page or a redirect to somewhere else.
     
  4. johnnylu

    johnnylu Member

    Joined:
    Mar 17, 2004
    Messages:
    13
    Likes Received:
    0
    Trophy Points:
    1
    If i change their password they will receive a new password via the forget password page. However, i found the way to restrict their cpanel access and ftp access by SSH. :D

    One more question is that how do i disable some specific features in cpanel without using features manager (in whm).

    Thanks.
     
  5. Website Rob

    Website Rob Well-Known Member

    Joined:
    Mar 23, 2002
    Messages:
    1,506
    Likes Received:
    0
    Trophy Points:
    36
    Location:
    Alberta, Canada
    cPanel Access Level:
    Root Administrator
    When you ask a question, you are asking people to share their knowledge by posting possible solutions.

    If you post a question and find a solution on your own, it would be a common courtesy to share your answer/knowledge as well -- would it not?
     
  6. johnnylu

    johnnylu Member

    Joined:
    Mar 17, 2004
    Messages:
    13
    Likes Received:
    0
    Trophy Points:
    1
    It is very simple but it took me alot of time to find out.
    You just need to go to /etc then type

    passwd -l username

    Note: remember to synchronize FTP password in whm

    then the ftp and cpanel access will be restricted but the web site still show up fine.

    Thanks.
     
  7. dgbaker

    dgbaker Well-Known Member
    PartnerNOC

    Joined:
    Sep 20, 2002
    Messages:
    2,578
    Likes Received:
    3
    Trophy Points:
    38
    Location:
    Toronto, Ontario Canada
    cPanel Access Level:
    DataCenter Provider
    Just so everyone understands that command...

    -l This option is used to lock the specified account and it is available to root only. The locking is performed by rendering the encrypted password into an invalid string (by prefixing the encrypted string with an !).


    If you need to reverse it......


    -u This is the reverse of the -l option - it will unlock the account password by removing the ! prefix. This option is available to root only. By default passwd will refuse to create a passwordless account (it will not unlock an account that has only "!" as a password). The force option -f will override this protection.

    This is from the manpages of passwd.


    Or doing a normal passwd reset re-enables the account as well. I have not tested but cpanel reset password via lost passwd would probably re-enable the account.
     
    #7 dgbaker, Apr 9, 2004
    Last edited: Apr 9, 2004
  8. johnnylu

    johnnylu Member

    Joined:
    Mar 17, 2004
    Messages:
    13
    Likes Received:
    0
    Trophy Points:
    1
    Thank you for the modify!

    Could someone please help me with my question 'how to disable some specific features in cpanel'

    Thank you for your time!:)
     
  9. PWSowner

    PWSowner Well-Known Member

    Joined:
    Nov 10, 2001
    Messages:
    2,948
    Likes Received:
    3
    Trophy Points:
    38
    Location:
    ON, Canada
    The only option besides feature manager is custom skins. That would give you full control over the whole thing, but also requires you to keep up with changes in backend stuff.
     
Loading...

Share This Page