<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; color: rgb(0, 0, 0); font-size: 12px; font-family: Arial, sans-serif;">
<div>
<div>Apologies, I forget this is LXD and LXC mailing list!</div>
<div><br>
</div>
<div>I am using LXD;</div>
<div><br>
</div>
<div><b># lxc stop test</b></div>
<div><b># lxc move local:test remote:test</b></div>
<div><b><br>
</b></div>
<div>Thanks,</div>
<div><br>
</div>
<div>Jamie</div>
<div>
<div><br>
</div>
<span id="OLK_SRC_BODY_SECTION">
<div style="font-family: Calibri; font-size: 12pt; border-width: 1pt medium medium; border-style: solid none none; padding: 3pt 0in 0in; border-top-color: rgb(181, 196, 223);">
<span style="font-weight: bold;">From: </span>lxc-users <<a href="mailto:lxc-users-bounces@lists.linuxcontainers.org">lxc-users-bounces@lists.linuxcontainers.org</a>> on behalf of Bostjan Skufca <<a href="mailto:bostjan@a2o.si">bostjan@a2o.si</a>><br>
<span style="font-weight: bold;">Reply-To: </span>LXC users mailing-list <<a href="mailto:lxc-users@lists.linuxcontainers.org">lxc-users@lists.linuxcontainers.org</a>><br>
<span style="font-weight: bold;">Date: </span>Tuesday, 10 November 2015 at 11:14<br>
<span style="font-weight: bold;">To: </span>LXC users mailing-list <<a href="mailto:lxc-users@lists.linuxcontainers.org">lxc-users@lists.linuxcontainers.org</a>><br>
<span style="font-weight: bold;">Subject: </span>Re: [lxc-users] Ownership changes after container move<br>
</div>
<div><br>
</div>
<div>
<div dir="ltr">LXC/LXD? How did you move the containers? Did you use rsync without --numeric-ids maybe?
<div><br>
</div>
<div>b.</div>
</div>
</div>
</span></div>
<div>
<div id="MAC_OUTLOOK_SIGNATURE"></div>
</div>
</div>
<div><br>
</div>
<span id="OLK_SRC_BODY_SECTION">
<div style="font-family:Calibri; font-size:12pt; text-align:left; color:black; BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; PADDING-BOTTOM: 0in; PADDING-LEFT: 0in; PADDING-RIGHT: 0in; BORDER-TOP: #b5c4df 1pt solid; BORDER-RIGHT: medium none; PADDING-TOP: 3pt">
<span style="font-weight:bold">From: </span>lxc-users <<a href="mailto:lxc-users-bounces@lists.linuxcontainers.org">lxc-users-bounces@lists.linuxcontainers.org</a>> on behalf of Norberto Bensa <<a href="mailto:nbensa+lxcusers@gmail.com">nbensa+lxcusers@gmail.com</a>><br>
<span style="font-weight:bold">Reply-To: </span>LXC users mailing-list <<a href="mailto:lxc-users@lists.linuxcontainers.org">lxc-users@lists.linuxcontainers.org</a>><br>
<span style="font-weight:bold">Date: </span>Tuesday, 10 November 2015 at 11:16<br>
<span style="font-weight:bold">To: </span>LXC users mailing-list <<a href="mailto:lxc-users@lists.linuxcontainers.org">lxc-users@lists.linuxcontainers.org</a>><br>
<span style="font-weight:bold">Subject: </span>Re: [lxc-users] Ownership changes after container move<br>
</div>
<div><br>
</div>
<div>
<div>
<div dir="ltr">Hi,
<div><br>
</div>
<div>what prodecure did you use to move the container?</div>
<div><br>
</div>
<div>I usually use tar: cd /var/lib/lxc/ ; tar --numeric-owner -zcpf containter.tar container/, then, tar -zxpf container.tar in the target host.</div>
<div><br>
</div>
<div>HTH,</div>
<div>Norberto</div>
<div><br>
</div>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">2015-11-10 6:10 GMT-03:00 Jamie Brown <span dir="ltr"><<a href="mailto:Jamie.Brown@mpec.co.uk" target="_blank">Jamie.Brown@mpec.co.uk</a>></span>:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div style="word-wrap:break-word;color:rgb(0,0,0);font-size:12px;font-family:Arial,sans-serif">
<div>
<div>
<div>Hi,</div>
<div><br>
</div>
<div>I’ve discovered that some file ownership changes have occurred after moving stopped containers between hosts.</div>
</div>
</div>
<div><br>
</div>
<div>Prior to the move there were various user directories (e.g. “/home/jamie”) with ownership set to jamie:jamie. After moving, the ownership was changed to ubuntu:ubuntu. </div>
<div><br>
</div>
<div>I discovered the issue when attempting to SSH to the moved host and was prompted to enter my password as I no longer owned my authorized_keys file.</div>
<div><br>
</div>
<div>I will try to repeat this, but I can confirm it has happened on multiple containers.</div>
<span class="HOEnZb"><font color="#888888">
<div><br>
</div>
<div>— Jamie</div>
</font></span></div>
<br>
_______________________________________________<br>
lxc-users mailing list<br>
<a href="mailto:lxc-users@lists.linuxcontainers.org">lxc-users@lists.linuxcontainers.org</a><br>
<a href="http://lists.linuxcontainers.org/listinfo/lxc-users" rel="noreferrer" target="_blank">http://lists.linuxcontainers.org/listinfo/lxc-users</a><br>
</blockquote>
</div>
<br>
</div>
</div>
</div>
</span>
</body>
</html>