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.

CPanel Demo Accounts

Discussion in 'General Discussion' started by randyc, Jan 2, 2003.

  1. randyc

    randyc Registered

    Joined:
    Mar 10, 2002
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    Is htere a way too setup a really secure cpanel demo account? Ive already disabled shell and of course CGI, but what else can i do to make it secure?

    btw, nice forums. ive been browsin for about a year.
     
  2. dgbaker

    dgbaker Well-Known Member
    PartnerNOC

    Joined:
    Sep 20, 2002
    Messages:
    2,578
    Likes Received:
    3
    Trophy Points:
    38
    Location:
    Toronto, Ontario Canada
    Try this link for a start, http://forums.cpanel.net/read.php?TID=6474
     
  3. ptez

    ptez Active Member

    Joined:
    Jun 5, 2003
    Messages:
    42
    Likes Received:
    0
    Trophy Points:
    6
    Null link above?

    cPanel.net Support Ticket Number:
     
  4. oxygen

    oxygen Member

    Joined:
    Jul 6, 2003
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    1
    that link seems to be dead..

    cPanel.net Support Ticket Number:
     
  5. pkuk

    pkuk Well-Known Member

    Joined:
    Nov 16, 2002
    Messages:
    65
    Likes Received:
    0
    Trophy Points:
    6
    Not sure, even disabling shell acess & CGI + setting a quota of 1MB will still allow things to run. Sure you can't set up an email account, but you can install a cart or a forum, even in demo mode, use with caution...

    cPanel.net Support Ticket Number:
     
  6. ciphervendor

    ciphervendor Well-Known Member

    Joined:
    Aug 26, 2002
    Messages:
    1,052
    Likes Received:
    0
    Trophy Points:
    36
    People really don't need to be able to click links in a demo. Why not just create screenshots or static HTML pages? They work the same and I doubt you will loose customers over this.

    cPanel.net Support Ticket Number:
     
  7. Host4u2

    Host4u2 Well-Known Member

    Joined:
    Mar 24, 2002
    Messages:
    248
    Likes Received:
    0
    Trophy Points:
    16
    Cpanel Demos

    Create unreal-domain name account without CGI, Shell access and Turn on 'demo mode' for that account
    -----

    To disable email

    Remove the domain entry from /etc/userdomains, and /etc/localdomains

    Removing these entries will prevent anyone from sending mail from the demo account. They will still be able to go into Neomal they just won't actually be able to send anything.
    -----

    To disable ftp
    Add username on

    /etc/ftpusers

    Description:
    Deny FTP access. The ftpusers file is used to deny FTP access to specific users. The format is a simple text file listing the restricted users one per line.
    -----

    To disable cgi, SSI, To disable php, not allow calling website from IP address, Disable .htaccess

    In /etc/httpd/conf/httpd.conf
    <IfModule mod_userdir.c>
    # UserDir public_html
    UserDir disabled
    </IfModule>

    This will cause all hosting account on that server couldn't reach by http://IPADDRESS/~username/
    This is quite important if you need to setup demo.

    cPanel.net Support Ticket Number:
     
  8. NiN

    NiN Active Member

    Joined:
    Apr 30, 2003
    Messages:
    29
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Braga, Portugal
    Re: Cpanel Demos

    This should be done with or without demo accounts!
    Only enable it for shared ssl hosts!

    cPanel.net Support Ticket Number:
     
  9. vabtz

    vabtz Member

    Joined:
    Jul 17, 2003
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    1
    My solution for this also includes changing the ownership of the demo accounts home directory and all files included in it. Then changing the permissions so noone can install anything in there.

    cPanel.net Support Ticket Number:

    cPanel.net Support Ticket Number:
     
  10. chadi

    chadi BANNED

    Joined:
    Apr 20, 2004
    Messages:
    415
    Likes Received:
    0
    Trophy Points:
    0

    /etc/ftpusers file does not even exist for me. What should I do here?
     
  11. chadi

    chadi BANNED

    Joined:
    Apr 20, 2004
    Messages:
    415
    Likes Received:
    0
    Trophy Points:
    0
    Also, I did all you said and attempted to send an email using "default" account for this demo enabled account. I used Horde and it sent the email (I did not receive the email but the relayers show as sent and so did Horde itself). Why?
     
  12. Host4u2

    Host4u2 Well-Known Member

    Joined:
    Mar 24, 2002
    Messages:
    248
    Likes Received:
    0
    Trophy Points:
    16
  13. dgbaker

    dgbaker Well-Known Member
    PartnerNOC

    Joined:
    Sep 20, 2002
    Messages:
    2,578
    Likes Received:
    3
    Trophy Points:
    38
    Location:
    Toronto, Ontario Canada
    Selfish plug :D

    Or use http://www.cpaneldemos.com

    Have a live demo without impacting your servers.

    cPanel Demos is proud to be hosting cPanelThemes.com
     
Loading...

Share This Page