Red Hat Bugzilla – Bug 689770
rhncfg-manager not able to deploy files with owner/group unknown to system
Last modified: 2012-03-08 04:06:43 EST
Description of problem:
Trying to "download-channel" using rhncfg-manager fails if the owner/group of a configfile is unknown to the system. Susequent files are not deployed.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. create a configfile owned by a user unknown to the system.
2. try to download this file using "rhncfg-manager download-channel"
File "/usr/share/rhn/config_common/utils.py", line 248, in set_file_info
uid = pwd.getpwnam(finfo['username])
KeyError: 'getpwnam(): name not found: xxxx'
A warning should be displayed, uid/gid should be set to root.
Found another position of this BUG:
/usr/share/rhn/config_common/transactions.py (122 + 136)
This might be a security issue.
I do not recommend switching file owner/group to root in case the user isn't present in the system.
Nowadays a UserNotFound exception is raised, what I mean is a correct behavior.
*** This bug has been marked as a duplicate of bug 479087 ***