Discussion Locked

delete .exe files

0 helpful
11 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

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

11 replies

by cpfeiffe

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.

by nzservers

> 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

by jeromey

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

by aaube

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.

This discussion is closed to new replies.