When I try to delete a file I am getting acess denied as error .How should I set the mode of a file or is there any way of deleting a file forcefully with out changing the mode.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
This question is OS-dependent.
With UNIX/Linux it is neccessary to have write permission for the directory containing the file. If the sticky bit is set on the directory (like on /tmp) you have to be owner of the file, too.
If you’re using annother OS you may want to refine your question.