wtf, FTP problem, won't let me delete a file.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • galleryseek
    Confirmed User
    • Mar 2002
    • 8234

    #1

    wtf, FTP problem, won't let me delete a file.

    i have a script that i'm in the process of making that creates PHP files on the server.. i'm testing it out, but now when I go to delete it from the FTP, it says:

    "550 16-intro-losefat1.php: No such file or directory "

    n' that's bullshit, because it's there.

    help?
  • NoCarrier
    We need more free porn
    • Mar 2002
    • 16356

    #2
    It might be your FTP client. Use another one and I'm sure it won't be there.

    Comment

    • Crypt
      Confirmed User
      • Apr 2004
      • 2225

      #3
      files are in root mode

      delete them in SSH
      Last edited by Crypt; 09-11-2004, 12:17 PM.

      Comment

      • galleryseek
        Confirmed User
        • Mar 2002
        • 8234

        #4
        Originally posted by NoCarrier
        It might be your FTP client. Use another one and I'm sure it won't be there.
        I tried 2 of them. same error.

        Comment

        • galleryseek
          Confirmed User
          • Mar 2002
          • 8234

          #5
          Originally posted by Crypt
          files are in root mode

          delete them in SSH
          ok i made my way to the directory the files are in in SSH, what's the command to delete?? doesn't appear to say shit in the help.

          Comment

          • Lycanthrope
            Confirmed User
            • Jan 2004
            • 4517

            #6
            Sounds like a permissions / User / Group issue. Scripts create files as "nobody" and if they were created without write permissions you won't be able to delete them unless you have root access. If you do, ssh in as root and do it, (rm filename) if not, you'll have to have your host do it.

            Comment

            • Crypt
              Confirmed User
              • Apr 2004
              • 2225

              #7
              Originally posted by galleryseek
              ok i made my way to the directory the files are in in SSH, what's the command to delete?? doesn't appear to say shit in the help.
              rm filename

              you can use wildcard to

              Comment

              • galleryseek
                Confirmed User
                • Mar 2002
                • 8234

                #8
                the file permissions are:

                -rw-r--r--

                for each file. it won't let me chmod them or delete them

                Comment

                • Lycanthrope
                  Confirmed User
                  • Jan 2004
                  • 4517

                  #9
                  Originally posted by galleryseek
                  the file permissions are:

                  -rw-r--r--

                  for each file. it won't let me chmod them or delete them
                  See my post above... if you don't have root access, you'll have to have your host do it. If you do, you'll have to do it as root

                  Comment

                  • EscortDate_Enoj
                    Registered User
                    • Mar 2002
                    • 87

                    #10
                    Originally posted by galleryseek
                    the file permissions are:

                    -rw-r--r--

                    for each file. it won't let me chmod them or delete them
                    Try ls -l to see which user/group owns the respective files.

                    If it's created by a script it's probably owned by apache:apache, or nobody:nogroup or something like that.

                    1:287 all November with UnrealBank

                    Comment

                    • cayne
                      My time is coming...
                      • Jan 2004
                      • 7475

                      #11
                      I got currently a similar problem. I want to delete the file and it tells me:

                      "No such file or directory" ?!??!
                      If lesbian anal is wrong, I don't want to be right.

                      Comment

                      • kaktusan
                        Confirmed User
                        • Mar 2003
                        • 334

                        #12
                        Your current file permissions are read/write by root and read only for everyone else. You must login as root on ssh and delete them
                        use "rm -f filename"

                        I think this will help


                        Superior Blogging Scripts | Porn Blog Space - not just another free blog hosting!

                        Comment

                        • newjersey
                          Registered User
                          • Mar 2003
                          • 15

                          #13
                          Try ls -l to see which user/group owns the respective files.
                          this is correct.. assuming it's nobody:nobody or similar you can write a simple php script to delete it

                          <?php
                          exec('chmod 666 /full/path/to/file.xxx');
                          ?>


                          then visit your php page in your browser

                          then go back into your ftp and you'll be able to remove it
                          xxxwebhosting.com

                          Comment

                          Working...