I want to run a bash command at startup (~/.config/autostart/myCommand.desktop) that requires sudo, but rather than it prompting me every time, I would like to include the password in the command, something like:
sudo --some-flag [PASSWORD] [command]
I have seen answers suggesting to change sudoers
, etc. but I am wondering if something more like what I said is possible.
ps(1)
that any user on the system might snoop on. – thrig Sep 02 '15 at 16:03sudo
so you only need to provide the password once, when you start the script. If you don't want to provide a password at all, update the question to say so. – Chris Davies Sep 02 '15 at 16:20