I'd guess you have an attribute on the file preventing deletion.  Run
lsattr on the file and use chattr to remove the attribute.

Most commonly something like chattr -a guest/rootfs/etc/resolv.conf.tmp
will make the file able to be deleted.


On Tue, Sep 24, 2013 at 10:16 PM, Magicloud Magiclouds <
[email protected]> wrote:

> Once I wanted to backup a running guest, so I copied its folder. Then I
> wanted to remove the folder, so I issued `rm -rf`.
>
> Now there is a file I cannot delete. "guest/rootfs/etc/resolv.conf.tmp".
> `rm` or `chown` gave me operation not permitted. `ls -l` gave:
> ---------- 1 root root 0 Apr 28 04:15 resolv.conf.tmp
>
> What should I do?
> --
> 竹密岂妨流水过
> 山高哪阻野云飞
>
> And for G+, please use magiclouds#gmail.com.
>
>
> ------------------------------------------------------------------------------
> October Webinars: Code for Performance
> Free Intel webinars can help you accelerate application performance.
> Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most
> from
> the latest Intel processors and coprocessors. See abstracts and register >
> http://pubads.g.doubleclick.net/gampad/clk?id=60133471&iu=/4140/ostg.clktrk
> _______________________________________________
> Lxc-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/lxc-users
>
>
------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60133471&iu=/4140/ostg.clktrk
_______________________________________________
Lxc-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/lxc-users

Reply via email to