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.

Visibility of user's home folders

Discussion in 'General Discussion' started by palav0s, Nov 1, 2012.

  1. palav0s

    palav0s Well-Known Member

    Joined:
    Jul 15, 2011
    Messages:
    55
    Likes Received:
    0
    Trophy Points:
    6
    Hello,

    I'm trying to eliminate the items that are being displayed in user's home folder.
    I would like the users to be able to "see" only the folders 'public_html' and 'public_ftp'.

    Additionally can I rename these folders ('public_html' and 'public_ftp') ?
     
  2. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,478
    Likes Received:
    203
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    Can you give a few examples of what you'd like to hide from your users?

    I don't think you should do this, things will break.
     
  3. palav0s

    palav0s Well-Known Member

    Joined:
    Jul 15, 2011
    Messages:
    55
    Likes Received:
    0
    Trophy Points:
    6
    Folders: access_logs, etc, mail, private, tmp, www
     
  4. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,478
    Likes Received:
    203
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    These are system directories owned by the user and are not able to be hidden in any way that I'm aware of.
     
  5. palav0s

    palav0s Well-Known Member

    Joined:
    Jul 15, 2011
    Messages:
    55
    Likes Received:
    0
    Trophy Points:
    6
    Every user's home folder contains a bunch of folders that are hidden by default. Why not making the aforementioned folders hidden (for instance .etc) ?
     
  6. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,478
    Likes Received:
    203
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    Via your FTP client, without any special filters applied, these directories and other system files are hidden. I'm not aware of any way to do this same sort of thing via File Manager. Other than hiding or unhiding dot files. (.htaccess )
     
  7. palav0s

    palav0s Well-Known Member

    Joined:
    Jul 15, 2011
    Messages:
    55
    Likes Received:
    0
    Trophy Points:
    6
    What about the skeleton directory structure?
     
  8. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,478
    Likes Received:
    203
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    That's only in Reseller accounts.
     
  9. palav0s

    palav0s Well-Known Member

    Joined:
    Jul 15, 2011
    Messages:
    55
    Likes Received:
    0
    Trophy Points:
    6
    Could you elaborate more on this?

    You mean resellers and the accounts that the reseller creates?
     
  10. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,478
    Likes Received:
    203
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    For example, on a new server there is only the root users Skeleton directory. In your WHM, using the search tool top left corner, type in skel to find this area. There you'll see this message:
    When you create and configure a new Reseller account, a /cpanel3-skel/ is created automagically in the Resellers account.

    In this /cpanel3-skel/ whether root, or Reseller, you can place error pages, a default favicon (those items prevent needless errors in your error logs and are suggested) you can add a text file with instructions for the end user as well, add a default webpage even!

    When that Reseller creates his own, new accounts, the files located in that Resellers /cpanel3-skel/ are copied over to that new account. Not the /cpanel3-skel/ itself, it's contents.

    The docs for this are located here:
    Skeleton Directory - cPanel Documentation
     
Loading...

Share This Page