General discussion

  • Creator
    Topic
  • #2297877

    delete .exe files

    Locked

    by nzservers ·

    Hi, I am having problems deleting .exe files uploaded by a user on an RH9 system.
    As root, I have tried rm -f, unlink, rmdir, rename, but can’t get rid of them.
    Any suggestions appreciated 🙂

All Comments

  • Author
    Replies
    • #2671860

      Reply To: delete .exe files

      by nzservers ·

      In reply to delete .exe files

      Point value changed by question poster.

    • #2671633

      Reply To: delete .exe files

      by cpfeiffe ·

      In reply to delete .exe files

      Can you provide `ls -ail` output on one of the files and give the error (if any) you receive when you do rm -f filename (use the full filename, no shortcuts). If I have this information I may be able to help. You can email it to my alias.

    • #2670804

      Reply To: delete .exe files

      by nzservers ·

      In reply to delete .exe files

      > ls -ail yahtzee.exe
      10453043 -rw——- 1 norm norm 2 Dec 13 18:47
      yahtzee.exe

      > rm -f /home/norm/public_ftp/yahtzee.exe
      rm: cannot remove `/home/norm/public_ftp/yahtzee.exe’: Permission denied

      it’s the same for every .exe file on the system
      the owner of this file can upload over it and perms can be changed ok
      also running cpanel

    • #2670545

      Reply To: delete .exe files

      by jeromey ·

      In reply to delete .exe files

      In linux, an attribute can be set called immutable flag. This flag is set using the chattr +i . An immutable flag will set a file to be “untouched”. You will not be able to change or delte it. You can view the status of a file by using lsattr . If the file has an “i” flag, remove it using chattr -i

      example output
      # lsattr test.out
      —i———- ./test.out

      Jeromey

    • #2670540

      Reply To: delete .exe files

      by nzservers ·

      In reply to delete .exe files

      all .exe the same as below

      > lsattr yahtzee.exe
      ————- yahtzee.exe

    • #2670538

      Reply To: delete .exe files

      by nzservers ·

      In reply to delete .exe files

      Point value changed by question poster.

    • #2671171

      Reply To: delete .exe files

      by jaboy78 ·

      In reply to delete .exe files

      download this program..
      its like windows explorer for ur unix. its simple and easy to move,delete,copy files from ur unix(terminal) Click the link below

      http://winscp.sourceforge.net/eng/

    • #2683184

      Reply To: delete .exe files

      by aaube ·

      In reply to delete .exe files

      If the immutable bit is set on the parent directory, you won’t be able to delete the files.

      Try this:

      cd /home/norm
      lsattr

      See if public_ftp has any flags set.

Viewing 7 reply threads