startup script
I am trying to mount a network drive with a shell script, one that requires sudo to run. I have it start up on login, but it prompts for a password each time for the sudo. Is there a way to bypass that? I tried the visudo nopasswd thing but it did not do the trick. I know this is a probably basic but im at a total loss right now. It uses an nfs command, if thats something that changes the outcome.
Solution
just add the service file to
run
/etc/systemd/system/run
systemctl daemon-reload then enable the service with systemctl enable --now and then check if the network drives mounted