password in sudo script

salmo allikm warhmat allah wabrakato

i want to do script with sudo like

sudo su and want to put password in the script not get from user because i to made it startup when booting and i don't know how put in script for sudo

thanks

You can setup sudo with NOPASSWD

thanks but can tell me how ?

There are plenty answers in internet, search "nopasswd (or Passwordless) sudo setup" you will get the answer.

You may be able to do what you need to do from /etc/rc.local, which runs as root on startup.

BTW, a salmon is a fish but what's that allikm warhmat stuff?

You can put the below line in your /etc/sudoers file

username ALL = NOPASSWD: ALL 

Alternatively, if you are looking for a different option, you can use "expect" tool