Jump to Navigation

198 - rm: cannot remove

When you try to delete directories & files, If you have the errors, even though you have a write permission.

rm: cannot remove `./data/test.txt': Permission denied
rm: cannot remove directory `./data/files': Permission denied

1. chmod the permission on those.

# chmod -R 777 ./data
# rm -Rf ./data

2. Move the directory

# mv ./data ./public_ftp/   <--- Everyone has a write access
# cd ./public_ftp
# chmod -R 777 ./data
# rm -Rf ./data

 

 

 

Linux:


Main menu 2

Story | by Dr. Radut