Skip to content

exit non-zero when user does not exist#27

Closed
knackaron wants to merge 1 commit into
ncopa:masterfrom
knackworks:master
Closed

exit non-zero when user does not exist#27
knackaron wants to merge 1 commit into
ncopa:masterfrom
knackworks:master

Conversation

@knackaron
Copy link
Copy Markdown

$ ./su-exec realuser id; echo $?
uid=12345(realuser) ...
0

$ ./su-exec fakeuser id; echo $?
user fakeuser does not exist
1

fixes #6

$ ./su-exec realuser id; echo $?
uid=12345(realuser) ...
0

$ ./su-exec fakeuser id; echo $?
user fakeuser does not exist
1

fixes ncopa#6
@tianon
Copy link
Copy Markdown
Contributor

tianon commented Aug 21, 2019

See also #26 for a more complete implementation (that handles the group edge cases as well).

@knackaron knackaron closed this Dec 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Exit code should be non-zero for inexistent user

2 participants