ibm-functions / shell

An Electron-based development tool for IBM Cloud Functions and Composer.
Apache License 2.0
59 stars 16 forks source link

using sudo in shell opens password prompt on terminal where shell was launched #747

Open rabbah opened 6 years ago

rabbah commented 6 years ago

! sudo ls try - you'll see the password prompt appear on the terminal if you launched the shell from a terminal.

i think that's a bug so labeling as such.

starpit commented 6 years ago

i think this is UNIX working as expected. sudo requires a real TTY, not a pipe.

perhaps there are some platform alternatives to this, which open up a platform window requesting credentials. do we want to go down this route?