Persistent desktop file

delsoljb32

Dark Archon
I have a file that I cannot seem to get rid of. It came from an SD card and is "Locked". When I try to delete it, it says I (the admin) do not have sufficient privileges to move it to the trash.
I have tried to change the permissions, even used disk utility to repair permissions on the whole hard drive. I have even tried to use the terminal to get in there and do an old "rm" command, no avail.

What next...??
 
Did you try the "rm" command as root? Try:

Code:
cd ~/.Trash/
sudo rm -rf [filename]

Be VERY careful with that rm command, though -- using it as above will delete just about ANY file on your computer without hesitation.
 
thanks, got it. though when i tried it the first time before changing to the desktop directory, it gave me this weird error/warning:

"We trust you have received the usual lectures from the local System Administrator. It usually boils down to these two things:
#1) Respect the privacy of others.
#2) Think before you type

Password:
"

strange...
 
Maybe you can do a right click (Command-I, or Get Info) on the file then check to make sure there is no check by Locked. Then see if you can trash it.
 
Satcomer said:
Maybe you can do a right click (Command-I, or Get Info) on the file then check to make sure there is no check by Locked. Then see if you can trash it.

Yeah, I looked there, and the "Locked" was checked, and 'greyed' out so I could not uncheck it. Weird
 
The sudo command allows you to run programs at a more priviledged user level which is more destructive and can delete anything you tell it to.

rm stands for remove which is the program that deletes the file from disk. The part -rf is called a command line parameter which tells the program how to behave. The r in it means the program will recursively delete files, meaning it will delete any directories that are in the current folder/location and the files contained in those directories.

The f parameter tells the program to force deletion on locked files.

The reason you got that message is because sudo can be dangerous if you don't know what you are doing, so it's warning you.
 
Back
Top