[augeas-devel] ownership/mode change
David Lutterkort
lutter at redhat.com
Fri Oct 17 17:08:30 UTC 2008
On Fri, 2008-10-17 at 13:14 +0200, Marc Fournier wrote:
> Hello,
>
> I noticed augeas changes permissions and ownership of files it edits.
>
> [root at kissrv20 ~]# ls -al /etc/my.cnf
> -rw-rw-r-- 1 root dbadmin 894 Oct 17 13:03 /etc/my.cnf
> [root at kissrv20 ~]# augtool
> augtool> set /files/etc/my.cnf/mysqld/master-user foobar
> augtool> save
> augtool>
> [root at kissrv20 ~]# ls -al /etc/my.cnf
> -rw-r--r-- 1 root root 894 Oct 17 13:07 /etc/my.cnf
>
> Is this intended behaviour ?
It's expected behavior, but not intended ;) The 'save' code is missing
the bits where it tries to set mode/ownership/SELinux labels according
to what the old file had. Can you file a bug for that ?
David
More information about the augeas-devel
mailing list