top button
Flag Notify
    Connect to us
      Facebook Login
      Site Registration Why to Join

Facebook Login
Site Registration

A file which is not deleted by normal user and also root (using rm), for that type of file how we delete it?

+2 votes
49 views
A file which is not deleted by normal user and also root (using rm), for that type of file how we delete it?
posted Feb 8, 2016 by Mohammed Hussain

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

0 votes

Using chattr command we need to change the attributes.
and then normally remove using rm command.

ex: chattr -iIu example
then rm -rf example

answer Feb 8, 2016 by Manikandan J
Similar Questions
0 votes

I am a python script which tries to create a file under directory /etc/ but I am getting the error as

IOError: [Errno 13] Permission denied: '/etc/file'

Any Idea how to create a file in /etc as non-root user?

+2 votes

Lets say I have a file 1.c.

#include<stdio.h>
main()
{
    while(1);
}

If I compile this using, cc 1.c i will get an executable i.e. a.out
If I run this it will be in infinite loop, while this process is running I am able to delete a.out

Where in same case if I start some movie/video and then if I try to delete it then i will not be allowed to.

Why ?

Contact Us
+91 9880187415
sales@queryhome.net
support@queryhome.net
#280, 3rd floor, 5th Main
6th Sector, HSR Layout
Bangalore-560102
Karnataka INDIA.
QUERY HOME
...