Change a process owner at startup?Forum: Other Help Topics Topic: Change a process owner at startup? started by: sassi67 Posted by sassi67 on June 05 2006,09:21
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. Posted by sassi67 on June 05 2006,10:04
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. Posted by skaos on June 05 2006,10:55
I think you could use something like this in /opt/bootlocal.sh : /bin/su dsl -c /full/path/to/program |