0
lrwxrwxrwx. 1 tomcat tomcat    27 Oct 17 00:23 work

This is my file(link) I want to go inside a directory within it to rm a file and then copy the new one. But it says permission denied and does not show any link. How can I do what I want.

  • What are the permissions of the directory you're linking the file? – tachomi Oct 19 '15 at 5:39
  • 1. how did you created the link? 2. what are the permissions of destination directory (the one you are pointing with your link) 3. what user are you using while performing your commands? – lese Oct 19 '15 at 9:48
  • do you want to remove a link that points to a directory ? try rm work without the trailing / – PinkFloyd Oct 19 '15 at 12:01
  • thanks for comments. I used setenforce 1 and then i'm able to get into the folder – Alberto Oct 21 '15 at 5:34
-1

Use setenforce 1 for such condition when unable to browse through the folder

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.