railsware / upterm

A terminal emulator for the 21st century.
MIT License
19.24k stars 618 forks source link

sudo asks for password every time #789

Open pedrocorreia opened 7 years ago

pedrocorreia commented 7 years ago

Executing the sudo command prompts the user for their password every time rather than just every n minutes like OS X terminal.app.

Might not be a bug, but it is very cumbersome.

drew-gross commented 7 years ago

This is because we start a new shell for each command. It might be possible to store the sudo password in black-screen and supply it to each shell, but I'm not really 100% comfortable with the security implications. It could probably be implemented as a plugin, but it would be a decent amount of work.

nlvw commented 7 years ago

you could just keep the sudo shell for X amount of minutes and pipe all sudo commands through that shell.