|
Bugzilla – Full Text Bug Listing |
| Summary: | su from root fails for locked accounts | ||
|---|---|---|---|
| Product: | [openSUSE] openSUSE 11.3 | Reporter: | Nathan Robertson <nathanr> |
| Component: | Security | Assignee: | Philipp Thomas <pth> |
| Status: | RESOLVED INVALID | QA Contact: | E-mail List <qa-bugs> |
| Severity: | Major | ||
| Priority: | P2 - High | CC: | gassauer, kukuk, security-team |
| Version: | Final | ||
| Target Milestone: | --- | ||
| Hardware: | All | ||
| OS: | openSUSE 11.3 | ||
| Whiteboard: | |||
| Found By: | --- | Services Priority: | |
| Business Priority: | Blocker: | --- | |
| Marketing QA Status: | --- | IT Deployment: | --- |
|
Description
Nathan Robertson
2010-07-19 12:11:10 UTC
as it prohibits "normal" use of all databases (mysql and postgres) and may be others services this should be fixed ASAP it's not production ready to ask end users to fiddle around in /etc/shadow to replace '!' by '*' Thorsten added account-mgmt support in pam_rootok.so . So the solution would be to add account sufficient pam_rootok.so to /etc/pam.d/su-l Don't know if this is a good idea to change the pam config file within a release. This is a decision of the coreutils maintainer. Thorsten: any comment on this? The behavior is correct and the expected one by definition. Please read the useradd manual page and fix your useradd command for postgres. You need to create a system account if it should be without password and root be able to su into it. thanks for pointing out FYI the behaviour must have changed between 11.2 and 11.3, because my installation worked before and didn't work any more after update. BTW man:/useradd - -r, --system Create a system account. A system account is an user with an UID between SYSTEM_UID_MIN and SYSTEM_UID_MAX as defined in /etc/login.defs, if no UID is specified. The GROUPS entry in /etc/default/useradd is ignored, too. IMHO this is not helpful for this issue, it does not explain the issue and I wouldn't know why a user or admin should useradd the user postgres - this account was available "forever" and should be fixed in the distributed rpm. (In reply to comment #4) > thanks for pointing out > > FYI the behaviour must have changed between 11.2 and 11.3, because my > installation worked before and didn't work any more after update. Exact the same issue with EnterpriseDB PostgresPlus Standard installer was already reported before 11.2 was released. So this has not changed between 11.2 and 11.3, but the root is a bug fix in handling of shadow passwords before 11.2. For plain /etc/passwd systems, the current behavior was already the default for ever, only /etc/shadow handling did contain a bug. |