How to give file ownership priveledges to external IP address?

Discussion in 'Security' started by erdubya, Aug 4, 2008.

  1. #1
    I have a software program on my home PC that writes to files on my remote web server every few minutes.

    The only way I can accomplish this is to CHMOD the files to 777 and give the whole world write priveledges.

    Is there a way I can give my external (home) IP address write priveledges to certain files on my VPS without CHMODing them as 777? I've been attacked before and want to tighten up security.

    I run the latest version of cPanel and WHM on my VPS.

    Any help would be GREATLY appreciated.
     
    erdubya, Aug 4, 2008 IP
  2. xous

    xous Active Member

    Messages:
    173
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    60
    #2
    Hi,

    What protocol are you using to access the files?
    i.e. ftp/ssh
     
    xous, Aug 5, 2008 IP
  3. nimhost

    nimhost Active Member

    Messages:
    235
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    58
    #3
    you can change the file owner as long as i know the file still can be accessed from outside but also the process still can write to the file without being risk like if you chmod the file into 777 because it's only need to chmod the files into 644
     
    nimhost, Aug 15, 2008 IP