Arrexel / phpbash

A semi-interactive PHP shell compressed into a single file.
Apache License 2.0
868 stars 195 forks source link

ERROR :: sudo: no tty present and no askpass program specified #22

Closed harishoss closed 4 years ago

harishoss commented 4 years ago

I created a t2.micro VM instance to test this out. I just tried to create a folder sudo mkdir testdir

and I got this error sudo: no tty present and no askpass program specified

I know this to deal with permissions on my server-side. but I don't know how to do so.

any help?

TerminalFi commented 4 years ago

I created a t2.micro VM instance to test this out. I just tried to create a folder sudo mkdir testdir

and I got this error sudo: no tty present and no askpass program specified

I know this to deal with permissions on my server-side. but I don't know how to do so.

any help?

On the server you need to make it so that you don't need a password for sudo.

in your sudoer's file you need something like

username ALL=(ALL) NOPASSWD:ALL

harishoss commented 4 years ago

solved !! Thank you.