sudo-project / sudo

Utility to execute a command as another user
https://www.sudo.ws
Other
1.2k stars 224 forks source link

Feature request: Sudoedit update file on write #301

Open bmariuszb opened 1 year ago

bmariuszb commented 1 year ago

You could listen on user tmp file and update original file, when user changes it. For example using vim

sudoedit /etc/asound.conf

Change something do :w, test changes, keep modifying and so on.. It's a little bit annoying to exit file in order to save changes, open it and often type password again, because sudo password expired. Changing sudo timeout is not a good idea IMO.