Bug 55219
| Summary: | /sbin/nologin kills "easy" setuid with like 'su - nobody -c "command" | ||
|---|---|---|---|
| Product: | [Retired] Red Hat Linux | Reporter: | Pekka Savola <pekkas> |
| Component: | setup | Assignee: | Bill Nottingham <notting> |
| Status: | CLOSED WONTFIX | QA Contact: | David Lawrence <dkl> |
| Severity: | high | Docs Contact: | |
| Priority: | medium | ||
| Version: | 7.2 | CC: | nalin, rvokal |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | i386 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2005-01-28 06:44:28 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: | 136921 | ||
|
Description
Pekka Savola
2001-10-27 12:57:41 UTC
Nalin, any opinions? It is now the case that "su nobody -c command" (as opposed to "su - nobody -c command") fails with the same error message. This causes root wrappers, such as the one used by FreeCiv, to silently fail in X. I last successfully used FreeCiv's root wrapper within the past month or so, but I just recently noticed the failure. Changing nobody's shell to /bin/true causes "su nobody -c command" to silently noop (no error message at all, but "command" is not executed). Changing nobody's shell to /bin/bash allows "su nobody - command" (and I can confirm it restores FreeCiv's root wrapper). At this point, I don't think this behavior will be changed; it's been this way for too many releases. Note that running multiple things as nobody does not allow protections between them; best practices is to allocate separate UIDs for each different setuid situation needed. |