Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 5 of 5
  1. #1
    Registered User
    Join Date
    Sep 2010
    Posts
    3

    Default How to create a cpanel user with limited access?

    Hello everyone, I have a vps server with cpanel/WHM.

    I have recently bought a script from a guy. But it has some error. I contacted him. He asking my cpanel/ftp user name and password to correct the error.
    But i'm little bit afraid to give him cpanel username and password. Because i have 6 sites. Also i have some most valuable scripts which i bought from others.
    So is there any way to create a user with temporary password. Also i want to limit his cpanel access to specific folder only in the file manager.
    For example my site name something.com all the files are stored in "something.com" folder. I want him to access that specific folder only. I mean i want to limit that user access to that specific folder also i want him to access that specific site's database only. Hope you guys understand.
    Is there any way to do such things. Please reply me.

  2. #2
    cPanel Product Evangelist Infopro's Avatar
    Join Date
    May 2003
    Location
    Pennsylvania
    Posts
    7,892
    cPanel/Enkompass Access Level

    Root Administrator

    Lightbulb

    If he's asking for user name and password for FTP it would seem he's got an FTP client, so no need to give him File Manager access. There really is no way to limit access for the main cPanel user so he can be shared, nor to create a sub user with limited access.

    What you could do though if you've got an extra domain name available, create an addon domain on top of your main domain and move your files to that directory (which would be located inside your public_html/addon.com/) and then give him access to that addon domain FTP login details. When he logs into that addon domain, he's stuck in there with no way to get to the rest of your file system.

    There's a video clip briefly showing how to do this here:
    Addon Domains - cPanel Video Production

    Or if you like, you could create a new sub.domain of your main domain, but not from your account's cPanel, instead, create the sub.domain.net from your WHM create new account tools.

    Of course you might like to first create a special package and feature list just for this purpose and give this to that sub.domain when you create it.

    Doing this gives him access to the files you place in that directory, same as above (which would be located inside your public_html/addon.com/), and gives him full access to "a" cPanel, but not your, cPanel. This way he has access to File Manager if you want.

    A few options for you. HTH!
    Fav cPlinks this week: Blog - cPanel & WHM 11.32 we love it! | cPanel University study for it! | Attracta is coming! we want this!

  3. #3
    Registered User
    Join Date
    Sep 2010
    Posts
    3

    Default

    Thanks for the reply. It really useful to me.
    Quote Originally Posted by Infopro View Post
    If he's asking for user name and password for FTP it would seem he's got an FTP client, so no need to give him File Manager access. There really is no way to limit access for the main cPanel user so he can be shared, nor to create a sub user with limited access.

    What you could do though if you've got an extra domain name available, create an addon domain on top of your main domain and move your files to that directory (which would be located inside your public_html/addon.com/) and then give him access to that addon domain FTP login details. When he logs into that addon domain, he's stuck in there with no way to get to the rest of your file system.

    There's a video clip briefly showing how to do this here:
    Addon Domains - cPanel Video Production

    Or if you like, you could create a new sub.domain of your main domain, but not from your account's cPanel, instead, create the sub.domain.net from your WHM create new account tools.

    Of course you might like to first create a special package and feature list just for this purpose and give this to that sub.domain when you create it.

    Doing this gives him access to the files you place in that directory, same as above (which would be located inside your public_html/addon.com/), and gives him full access to "a" cPanel, but not your, cPanel. This way he has access to File Manager if you want.

    A few options for you. HTH!

  4. #4
    Registered User
    Join Date
    Sep 2010
    Posts
    3

    Default

    Hi again i have a problem. I created add on domain and ftp accounts.
    But the connect.php files contains my database username and password. If it revealed he can access the entire database. So how can i give it to him. Is there any way in mysql create new user for that specific database?

  5. #5
    cPanel Product Evangelist Infopro's Avatar
    Join Date
    May 2003
    Location
    Pennsylvania
    Posts
    7,892
    cPanel/Enkompass Access Level

    Root Administrator

    Lightbulb

    Quote Originally Posted by Viruthagiri View Post
    Hi again i have a problem. I created add on domain and ftp accounts.
    But the connect.php files contains my database username and password. If it revealed he can access the entire database. So how can i give it to him. Is there any way in mysql create new user for that specific database?
    You might want to remove that addon domain, just as you added it first, and then go with the second option mentioned previously and create an actual account via WHM instead. This way he's got access to an entirely different database and user account. Move your files and that database to this new account and you should be good to go.
    Fav cPlinks this week: Blog - cPanel & WHM 11.32 we love it! | cPanel University study for it! | Attracta is coming! we want this!

Similar Threads & Tags
Similar threads

  1. Create more root accounts with limited access
    By cPanelDavidG in forum Feature Requests for cPanel/WHM
    Replies: 3
    Last Post: 08-02-2010, 04:37 PM
  2. How to create a shortcut other than Access cPanel & Access cPanel Webmail
    By neorder in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 01-28-2009, 10:08 AM
  3. postwwwacct Auto-create DB, DB User, Grant Access
    By CreedFeed in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 08-27-2007, 12:43 PM
  4. Create authorized user to access Web/FTP Stats
    By alex2005 in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 11-04-2005, 09:39 AM
  5. Any way to create another user who has access to an existing user's CPanel?
    By brianteeter in forum cPanel and WHM Discussions
    Replies: 8
    Last Post: 09-17-2004, 12:09 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube