General discussion

Locked

delete .exe files

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 :)

This conversation is currently closed to new comments.

11 total posts (Page 1 of 2)   01 | 02   Next
| Thread display: Collapse - | Expand +

All Comments

Collapse -

by nzservers In reply to delete .exe files

Point value changed by question poster.

Collapse -

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.

Collapse -

by nzservers In reply to

Poster rated this answer.

Collapse -

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

Collapse -

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 <filename>. 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 <filename>. If the file has an "i" flag, remove it using chattr -i <filename>

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

Jeromey

Collapse -

by nzservers In reply to

Poster rated this answer.

Collapse -

by nzservers In reply to delete .exe files

all .exe the same as below

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

Collapse -

by nzservers In reply to delete .exe files

Point value changed by question poster.

Collapse -

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/

Collapse -

by nzservers In reply to

I don't use windows, my desktop is linux :))

Back to Linux Forum
11 total posts (Page 1 of 2)   01 | 02   Next

Related Discussions

Related Forums