Skip to content

password prompt is different from ogsudo #1242

@raviksharma

Description

@raviksharma

Describe the bug
The console stdout based automation breaks because the password prompt is different from ogsudo.

Is there a reason for this? This is likely to break a lot of https://en.wikipedia.org/wiki/Expect based scripts.

To Reproduce

p@p:~/sudo-rs-8/rust-sudo-rs-gu$ sudo echo hello
[sudo] password for p: 
sudo: a password is required
p@p:~/sudo-rs-8/rust-sudo-rs-gu$ sudo-rs echo hello
[sudo: authenticate] Password: 

Expected behavior
password prompt should say

[sudo] password for <USERNAME>:

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions