This question already has an answer here:
I wonder, is it possible to compile Unix along with a my custom program so that it runs only my custom program on start up of computer, as if my program starting with boot up?
This question already has an answer here: I wonder, is it possible to compile Unix along with a my custom program so that it runs only my custom program on start up of computer, as if my program starting with boot up? |
|||||||
|
This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.
If you mean you only want users to be able to run one program, you can replace the user's shell with the absolute path to the program in the passwd file - assuming a local passwd file.. |
|||
|
As you say, directly no. The Unix kernel is separate from the userland programs, and is built separately. But what you want to do is possible. The |
|||
|