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.

How to prevent the uploading or renaming of a specific script via FTP

Discussion in 'General Discussion' started by i3903, Jul 31, 2003.

  1. i3903

    i3903 Well-Known Member

    Joined:
    Apr 27, 2003
    Messages:
    62
    Likes Received:
    0
    Trophy Points:
    6
    I need to block "scriptname.php" from being uploaded or renamed on the server via FTP for security. Does anyone know how to do this in proftp?

    Cheers

    cPanel.net Support Ticket Number: NA
     
  2. ciphervendor

    ciphervendor Well-Known Member

    Joined:
    Aug 26, 2002
    Messages:
    1,052
    Likes Received:
    0
    Trophy Points:
    36
    Is this just for one account or for all accounts?

    cPanel.net Support Ticket Number:
     
  3. i3903

    i3903 Well-Known Member

    Joined:
    Apr 27, 2003
    Messages:
    62
    Likes Received:
    0
    Trophy Points:
    6
    Server wide for a temp period of time

    cPanel.net Support Ticket Number:
     
  4. ciphervendor

    ciphervendor Well-Known Member

    Joined:
    Aug 26, 2002
    Messages:
    1,052
    Likes Received:
    0
    Trophy Points:
    36
    I don't think that you can do that with pro or pure. However you can create a cron to run every 5 minutes to remove files with x name.
    Code:
    find /home -type f -name filename.php -exec rm -f {} \;
    cPanel.net Support Ticket Number:
     
  5. i3903

    i3903 Well-Known Member

    Joined:
    Apr 27, 2003
    Messages:
    62
    Likes Received:
    0
    Trophy Points:
    6
    I've done that at the moment, but every 24hrs, to search the whole HD, it was using a load of about 3+ so its set to run at the nightly cron job.

    Cheers though

    cPanel.net Support Ticket Number:
     
Loading...

Share This Page