Other Help Topics :: Change a process owner at startup?
Hello everybody!
I have written and compiled a C++ program under DSL 2.0-RC1. This program writes a text file in a directory which owns to dsl user, who is the only user that can do this operation. When I start my program from bash everything works correctly. When I add it to /opt/bootlocal.sh I discover that the process owns to root user, but in this way my program can't work correctly.
Is there a way to change the owner so that the started process can be run by the dsl user?
Thans in advance.
I'm very stupid: I forgot some simple things about Linux boot.
It's sufficient add the line that starts the program in /home/dsl/.bash_profile and everYthing works.

I think you could use something like this in /opt/bootlocal.sh :
/bin/su dsl -c /full/path/to/program
original here.