[Fedora-packaging] packages which add user accounts: is fedora-usermgmt the way?
rc040203 at freenet.de
Wed Sep 7 08:37:06 UTC 2005
On Wed, 2005-09-07 at 08:32 +0200, Christian.Iseli at licr.org wrote:
> rc040203 at freenet.de said:
> > The only reason for not wanting to remove accounts on package removal to me
> > is "accounts leaving stray files somewhere".
> > However, rpms should have always have control over all files it owns.
> Well, there are many cases of packages producing some files while they run,
That's why I said "should".
It is possible in many cases (%postun, %ghost or %triggerun scripts),
but won't be possible or useful in all cases.
E.g. I would not want an mysql update remove my mysql data bases.
> which they will not own. E.g.,
> root: rpm -qf /var/log/mysqld.log.4
> file /var/log/mysqld.log.4 is not owned by any package
> root: ls -l /var/log/mysqld.log.4
> -rw-r----- 1 mysql mysql 0 Aug 7 03:02 /var/log/mysqld.log.4
> So I think the UID should stay... until the sysadm removes it.
IMO, this is an example where removing files is possible:
rm -f /var/log/mysqld.log*
More information about the Fedora-packaging