Un Nulling a file

Discussion in 'Security' started by addaminsane, Oct 8, 2007.

  1. #1
    Hi, i hope this is the right thread for this, but anyways i downloaded a website template and uploaded it to my server. For some reason I can't edit any of the files in it or change permissions or delete files within the templates root directory. Does anyone know how I can go about changing this problem? Thanks.
     
    addaminsane, Oct 8, 2007 IP
  2. chickens

    chickens Peon

    Messages:
    242
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Did you happen to upload the template as the root user? In the past I've uploaded files as one user and then have been unable to edit them or do anything as I do not have permissions under the other. If you have ssh access do the following command in the root directory:
    ls -lh
    Code (markup):
    This will show all of the files with permissions and owner. If everything looks good for the template directory (same as the other directories) then go into the directory and do the same command.

    If you do have root access to the server you can always run
    rm -drf folder_name
    Code (markup):
    This command will forcibly get rid of any files and folders in that direcotry. Be careful as you can remove all files on the system with the rm command and root permissions. I've done it before, its not a pretty sight.
     
    chickens, Oct 8, 2007 IP
  3. Ladadadada

    Ladadadada Peon

    Messages:
    382
    Likes Received:
    36
    Best Answers:
    0
    Trophy Points:
    0
    #3
    A safer way might be running

    chown -R username *
    Code (markup):
    in the directory that's having the problem. You will need to change "username" to your username.
     
    Ladadadada, Oct 8, 2007 IP
  4. chickens

    chickens Peon

    Messages:
    242
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Bah, thats just too logical for me to think of :D
     
    chickens, Oct 8, 2007 IP
  5. inworx

    inworx Peon

    Messages:
    4,860
    Likes Received:
    201
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Thats ssh. I hope its heard of where you're living /dev/null

    lol
     
    inworx, Oct 20, 2007 IP