Bug 454892
| Summary: | lnewusers can corrupt /etc/passwd | |||
|---|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Milos Malik <mmalik> | |
| Component: | libuser | Assignee: | Miloslav Trmač <mitr> | |
| Status: | CLOSED NOTABUG | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | |
| Severity: | medium | Docs Contact: | ||
| Priority: | medium | |||
| Version: | 8 | |||
| Target Milestone: | --- | |||
| Target Release: | --- | |||
| Hardware: | All | |||
| OS: | Linux | |||
| Whiteboard: | ||||
| Fixed In Version: | Doc Type: | Bug Fix | ||
| Doc Text: | Story Points: | --- | ||
| Clone Of: | ||||
| : | 646386 (view as bug list) | Environment: | ||
| Last Closed: | 2008-07-23 13:42:05 UTC | Type: | --- | |
| Regression: | --- | Mount Type: | --- | |
| Documentation: | --- | CRM: | ||
| Verified Versions: | Category: | --- | ||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | ||
| Cloudforms Team: | --- | Target Upstream Version: | ||
| Embargoed: | ||||
| Bug Depends On: | ||||
| Bug Blocks: | 646386 | |||
|
Description
Milos Malik
2008-07-10 16:14:12 UTC
RHTS test for this bug is available (/CoreOS/libuser/Regression/bz454892-lnewusers-corrupt-etc-passwd ). Thanks for your report. I believe this is actually correct behavior: libc's getpwent() doesn't reject pw_shell values that contain ':', only the first 6 ':' characters serve as field separators. It's somewhat counter-intuitive, but it is in principle possible that somebody's shell path contains a ':', and lnewusers should not reject lines that come from a working /etc/passwd. |