delete .exe files
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 :)
Linux
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 :)
by nzservers
by cpfeiffe
by nzservers
Poster rated this answer.
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 nzservers
Poster rated this answer.
by nzservers
all .exe the same as below
> lsattr yahtzee.exe
------------- yahtzee.exe
by nzservers
by jaboy78
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
by nzservers
I don't use windows, my desktop is linux :))
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.
Sort by Trending