Community Forums
Connect with us on LinkedIn
Community Notice
+ Reply to Thread
Results 1 to 9 of 9
  1. #1
    Member
    Join Date
    Mar 2004
    Posts
    13

    Default How do i disbale CPANEL for specific users?

    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. #2
    Member
    Join Date
    Mar 2003
    Posts
    345

    Default

    why not just change there password?

  3. #3
    Member
    Join Date
    Dec 2002
    Posts
    18

    Default

    ...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. #4
    Member
    Join Date
    Mar 2004
    Posts
    13

    Default

    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.

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

    Thanks.

  5. #5
    Member
    Join Date
    Mar 2002
    Location
    Alberta, Canada
    Posts
    1,509

    Default

    Originally posted by johnnylu
    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.
    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?
    Helping people Host, Create, and Maintain their Web Site
    Also providing Server Admin Services - setup / troubleshooting

    http://potentproducts.com/

  6. #6
    Member
    Join Date
    Mar 2004
    Posts
    13

    Default

    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. #7
    Moderator cPanel Partner NOC Badge dgbaker's Avatar
    Join Date
    Sep 2002
    Location
    Toronto, Ontario Canada
    Posts
    2,773

    Default

    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.
    Last edited by dgbaker; 04-09-2004 at 08:35 AM.
    Regards,
    David
    Forum Moderator

  8. #8
    Member
    Join Date
    Mar 2004
    Posts
    13

    Default

    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. #9
    Member PWSowner's Avatar
    Join Date
    Nov 2001
    Location
    ON, Canada
    Posts
    2,994

    Default

    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.
    Mike
    WHM and cPanel Scripts (join our "Scripts Club")
    D/A Photography

Similar Threads & Tags
Similar threads

  1. BACKUP FEATURE BROKEN: Select Specific Users
    By bmcpanel in forum cPanel and WHM Discussions
    Replies: 9
    Last Post: 11-25-2010, 12:56 PM
  2. Blocking specific users from sending email
    By remik in forum E-mail Discussions
    Replies: 0
    Last Post: 08-08-2008, 09:29 AM
  3. Directing users to a specific protected folder
    By Kenny Fix in forum Security
    Replies: 6
    Last Post: 03-14-2006, 06:32 AM
  4. Disabling Awstats for specific users
    By Apoc in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 09-13-2004, 05:28 AM
  5. blocking cppop access to specific users
    By gordita in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 03-18-2004, 04:04 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube