Learn more about these different git repos.
Other Git URLs
https://bugzilla.redhat.com/show_bug.cgi?id=878030 (Red Hat Enterprise Linux 6)
When a command is run via su from root, the exit status is always 0, even if the command fails. For example : # service sssd status sssd (pid 3009) is running... # su - local_user -c "ls -8" ; echo $? ls: invalid option -- '8' Try `ls --help' for more information. 0 # service sssd stop Stopping sssd: [ OK ] # su - local_user -c "ls -8" ; echo $? ls: invalid option -- '8' Try `ls --help' for more information. 2 * User local_user is a local user (from /etc/passwd file) * If we stop the sssd service(or remove pam_sss from pam 'session' section, then the command exit status is correct. How reproducible: Always Version-Release number of selected component (if applicable): sssd-1.8.0-32.el6.x86_64 Steps to Reproduce: 1. Run, # su - local_user -c "ls -8" ; echo $? 2. check the return value. Actual results: su always returns 0 Expected results: su returns failure if the command fails.
Fields changed
blockedby: => blocking: => coverity: => design: => design_review: => 0 feature_milestone: => fedora_test_page: => milestone: NEEDS_TRIAGE => SSSD 1.10 beta priority: major => minor testsupdated: => 0
selected: => Not need
Moving tickets that are not a priority for SSSD 1.10 into the next release.
milestone: SSSD 1.10 beta => SSSD 1.11 beta
Per multiple records this was fixed in 1.9 when we were amending the PAM return codes.
resolution: => worksforme status: new => closed
Metadata Update from @jhrozek: - Issue set to the milestone: SSSD 1.13.1
SSSD is moving from Pagure to Github. This means that new issues and pull requests will be accepted only in SSSD's github repository.
This issue has been cloned to Github and is available here: - https://github.com/SSSD/sssd/issues/2712
If you want to receive further updates on the issue, please navigate to the github issue and click on subscribe button.
subscribe
Thank you for understanding. We apologize for all inconvenience.
Login to comment on this ticket.