Force a Delete
Hello im trying to delete a dir in my home folder and its telling my access denied ... isnt there a way to force it ive tried........
rmdir --ignore-fail-on-non-empty flock rmdir --ignore-fail-on-non-empty -p flock can someone please help? |
"rm -rf dirname" will delete a directory if you have the right to do so. if you don't then it's quite rightfully impossible as that user, in which case root or someone would need to come into play.
|
Are you using rmdir or rm -rf?
rmdir only works on empty folders. rm -rf deletes everything, but requires write privileges for the containing folder. (it first has to be able to delete contents before it can delete the folder.) Also, you must have write privileges to the host directory in order to add or remove anything. |
Thank you it worked
|
as root
root # chmod -R 755 /home/"username" |
Quote:
Cheers, Tink |
Quote:
Quote:
|
43,417 posts for that guy!
|
All times are GMT -5. The time now is 01:56 AM. |