Skip to content

Exit code should be non-zero for inexistent user #6

Open

Description

@elifarley

The command su-exec inexistent_user id -un erroneously reports root and has 0 as exit code.

Activity

  1. tianon commented on Dec 6, 2016

    @tianon
    Contributor

    Can confirm: 😢

    bash-4.3# su-exec logstash id
    uid=0(root) gid=0(root) groups=0(root),0(root),1(bin),2(daemon),3(sys),4(adm),6(disk),10(wheel),11(floppy),20(dialout),26(tape),27(video)
  2. ofek commented on Dec 12, 2025

    @ofek
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions