start a script when booting a server using a user id

hello,

how could i start a user's script automatically under this user's id?

such as,

user test owns /home/test/test.sh (test.test). and when server reboots, /home/test/test.sh will be automatically excuted under user "test" instead of root.


thank you.

 

 

 

 

Top