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 Reserved Keyword.

Discussion in 'General Discussion' started by raylin, Nov 5, 2001.

  1. raylin

    raylin Active Member

    Joined:
    Sep 9, 2001
    Messages:
    26
    Likes Received:
    0
    Trophy Points:
    1
    Could any cpanel developer give us a list of reserved keywords that we shouldn\'t use as a username.

    I have created an account \'viewer\' for my client and he told me he could not view webalizer stats.

    I traced cpaneld code and found that
    [quote:b17ffc0b53]
    sub dodoc {
    local $SIG{ALRM} = sub { die \"Connection Timeout\\n\" };
    alarm(500);

    if ($document =~ \"\\.\\/viewer\") {
    $document =~ s/^\\.\\/viewer//g;
    $document =~ s/^\\///g;
    $document =~ s/^$ENV{\'HOME\'}//g;
    $document =~ s/^\\///g;
    $document = $ENV{\'HOME\'} . \"/\" . $document;
    }

    if(($document =~ /^\\.\\/admin/ || $document =~ /^\\/admin/) && $user ne
    $adminuser) {
    print NS \"HTTP/1.0 404 Not Found\\r\\n\";
    print NS \"Server: $myname/$version\\r\\n\";
    print NS \"Connection: close\\r\\n\";
    print NS \"Content-type: text/html\\r\\n\\r\\n\";
    print NS \"<h1>Permission Denied!</h1>\\n\";
    exit;
    }
    [/quote:b17ffc0b53]

    (I guess) It seems cpaneld will not work properly if username is \'viwer\'. Am I right?
     
Loading...

Share This Page