[systemd-devel] [PATCH] sysusers: Preserve ownership and mode on /etc/passwd and friends

Lennart Poettering lennart at poettering.net
Tue Nov 11 09:12:59 PST 2014


On Wed, 29.10.14 14:20, Colin Guthrie (colin at mageia.org) wrote:

> When running sysusers we would clobber file ownership and permissions
> on the files /etc/passwd, /etc/group and /etc/[g]shadow.
> 
> This simply preserves the ownership and mode if existing files are
> found.

I figure turning this into a new function that is just called a couple
of times would be much nicer than repeating the same lines multiple
times...

Done that now.

Lennart

-- 
Lennart Poettering, Red Hat


More information about the systemd-devel mailing list