Re: Yum is updating /etc/shadow?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Once upon a time, Marko Vojinovic <vvmarko@xxxxxxxxx> said:
> On Thursday 12 January 2012 05:53:42 g wrote:
> > if you compare "/etc/shadow" to "/etc/shadow.rpmnew" when it is there,
> > you will see that yum/rpm has added a program's name to "/etc/shadow"
> > when yum/rpm adds a new program that needs to be assigned an id.
> > 
> > this also happens to "/etc/group", "/etc/gshadow", and "/etc/passwd".
> > 
> > why "/etc/shadow.rpmnew" was removed is hard to answer.
> 
> AFAIK, yum/rpm can use the "usual" method of getting an id for a new program 
> (calling useradd or similar), which doesn't involve creating a shadow.rpmnew 
> file.

This has nothing to do with adding users.

The file /etc/shadow is owned by the "setup" RPM (it has the base
OS-defined users like "root" and "mail").  When that RPM gets an update,
rpm will see that /etc/shadow has changed (because users have been
created) and not overwrite it.  It will instead write it to
/etc/shadow.rpmnew (and print a notification that it did that).  This is
no different than any other file marked as a configuration file in the
RPM.

Since /etc/shadow.rpmnew is meaningless, the "setup" RPM has a
post-install script to remove it.

-- 
Chris Adams <cmadams@xxxxxxxxxx>
Systems and Network Administrator - HiWAAY Internet Services
I don't speak for anybody but myself - that's enough trouble.
-- 
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux