On Wed, Sep 25, 2013 at 9:50 PM, Colin Guthrie <gm...@colin.guthr.ie> wrote:

> [root@jimmy ~]# cp --preserve /etc/hostname /boot; echo $?
> 0
> [root@jimmy ~]# cp --preserve /home/colin/.bashrc /boot/test; echo $?
> cp: failed to preserve ownership for ‘/boot/test’: Operation not permitted
> 1
>
> So it only works if the source file is already owned by root.

Ah, I see. Makes sense.

Not sure what's the best behaviour here, maybe we should just make
everything 0600 root:root by default?

People with weird assumptions can probably just plug-in their own
snippet and post-process the stuff as they need.

Kay
_______________________________________________
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/systemd-devel

Reply via email to