Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

undocumented return values from passwd #1219

Open
Zugschlus opened this issue Feb 19, 2025 · 0 comments
Open

undocumented return values from passwd #1219

Zugschlus opened this issue Feb 19, 2025 · 0 comments

Comments

@Zugschlus
Copy link

Hi!

passwd returns exit code 10 which is not defined in the manual page.

[2/5164]mh@swivel:~ $ passwd
Changing password for mh.
Current password:
passwd: Authentication token manipulation error
passwd: password unchanged
10 [3/5165]mh@swivel:~ $ passwd
Changing password for mh.
Current password:
New password:
Retype new password:
Sorry, passwords do not match.
passwd: Authentication token manipulation error
passwd: password unchanged
10 [4/5165]mh@swivel:~ $

passwd(1) only documens exit codes 1 through 6.

Please also consider giving distinct exit codes for "current password entered wrong" and "password repeat doesnt match".

Greetings
Marc

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

No branches or pull requests

1 participant