I would like to run a sudo command when Ubuntu starts up (before anyone logs in):
sudo searchd
How would I do this?
Join Stack Overflow to learn, share knowledge, and build your career.
|
I would like to run a
How would I do this? |
||||
|
|
|
You can add the command in the Write the command before |
|||||||||||||||||||||
|
|
Edit the tty configuration in
This is assuming that we're editing tty1 and the script that reads input is theInputScript.sh. A word of warning this script is run as root, so when you are inputing stuff to it you have root priviliges. Also append a path to the location of the script. Important: the script when it finishes, has to invoke the /sbin/login otherwise you wont be able to login in the terminal. |
|||||||||||||
|