sudo inside a script [closed]
i have a myscript.sh file that is running at startup. there is a command inside that script file which needs to be run with sudo. how can i do this? command is;
/opt/flexnetserver/lmgrd -z -c lic.dat
what happens if i put sudo in front of this command? how its going to take admin rights without entering a password. i am a little bit confused. thanks.
This is the same problem you are trying to address in https://ask.fedoraproject.org/en/question/55746 . @bboran, if you ask a question and find an answer inadequate, please communicate the problem in that question rather than opening a new one.