[Lxc-users] A lxc guest's file cannot be removed.

Dwight Hubbard dwight.hubbard at efausol.com
Wed Sep 25 16:38:04 UTC 2013


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 <
magicloud.magiclouds at gmail.com> 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
> Lxc-users at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/lxc-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxcontainers.org/pipermail/lxc-users/attachments/20130925/808548a1/attachment.html>


More information about the lxc-users mailing list