Unable to remove files
I've copied several files from a cd to my harddrive. Now I want to remove them by using rm. Unfortunately I always get the message 'permission denied' while the permissions are set correctly. Does anybody know how I can remove cd copied files
|
The permission on the files may be correct. But, are the permission on the folder in which you stored them set to allow write permission?
Did you use root permissions to copy the files? If so, normal user can't rm them. Have you tried su to root, then try to rm the files? |
The files were copied under my user name. Also the dir and the files have my username as owner. I do not have root permission on the system, but that probably shouldn't matter, because I'm the owner of the files. I think it has something to do with attribute settings (such as immutability) of the files....
|
Quote:
Quote:
Quote:
|
If you do a ls -al and look at the permissions on the file does it provide any clues ?
without knowing the permissions it will be hard to tell you why you can't delete them.. |
Quote:
In any case, here is the file listing in dir uml/: dr-xr-xr-x 3 poude ii 512 Aug 18 14:13 . drwxr-xr-x 10 poude st-ai 512 Aug 18 14:14 .. -rwxrwxrwx 1 poude ii 137314307 Aug 18 14:13 UML_sp1_win.exe drwxrwxrwx 2 poude ii 512 Aug 18 17:39 tmp when I do rm -rf uml/ I get: rm: Unable to remove directory uml//tmp: Permission denied rm: Unable to remove directory uml/: File exists |
Problem solved... the uml dir was not writable
|
All times are GMT -5. The time now is 05:54 PM. |