Skip to content

undocumented return values from passwd #1219

@Zugschlus

Description

@Zugschlus

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

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