[olug] directory impossible to delete

Ryan O'Rourke ryano at ch-gifts.com
Wed Nov 26 15:42:11 UTC 2003


On Wed, 2003-11-26 at 09:38, Jay Swackhamer wrote:
> If you cannot delete the files, then they could have the immutable bit
> set, and you wouldnt be able to delete
> 
> you can check this with
> #lsattr
> 
> if it is set, you can change it with
> #chattr -i <file>
> 
> then you can delete it.........


Wow. Thanks, everyone. It's only 9:40am and I've already learned my new
thing for the day!

[root at kearney modest_mouse]# lsattr
----i--A----- ./building_nothing_out_of_something
------------- ./interstate_8
------------- ./the_fruit_that_ate_itself
------------- ./the_moon_and_antarctica
[root at kearney modest_mouse]# chattr -i
building_nothing_out_of_something/
[root at kearney modest_mouse]# lsattr
-------A----- ./building_nothing_out_of_something
------------- ./interstate_8
------------- ./the_fruit_that_ate_itself
------------- ./the_moon_and_antarctica
[root at kearney modest_mouse]# rm -rf building_nothing_out_of_something/
[root at kearney modest_mouse]# l
total 12K
drwxrwxrwx    2 ryan     ryan         4.0K Nov 26 09:03 interstate_8
drwxrwxrwx    2 ryan     ryan         4.0K Nov 26 09:03
the_fruit_that_ate_itself
drwxrwxrwx    2 ryan     ryan         4.0K Nov 26 09:03
the_moon_and_antarctica
[root at kearney modest_mouse]#




More information about the OLUG mailing list