Search Members Help

» Welcome Guest
[ Log In :: Register ]

Mini-ITX Boards Sale, Fanless BareBones Mini-ITX, Bootable 1G DSL USBs, 533MHz Fanless PC <-- SALE $200 each!
Get The Official Damn Small Linux Book. DSL Market , Great VPS hosting provided by Tektonic
 

[ Track this topic :: Email this topic :: Print this topic ]

reply to topic new topic new poll
Topic: Change a process owner at startup?< Next Oldest | Next Newest >
sassi67 Offline





Group: Members
Posts: 12
Joined: May 2005
Posted: June 05 2006,09:21 QUOTE

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.
Back to top
Profile PM 
sassi67 Offline





Group: Members
Posts: 12
Joined: May 2005
Posted: June 05 2006,10:04 QUOTE

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.
:p
Back to top
Profile PM 
skaos Offline





Group: Members
Posts: 430
Joined: April 2004
Posted: June 05 2006,10:55 QUOTE

I think you could use something like this in /opt/bootlocal.sh :
/bin/su dsl -c /full/path/to/program
Back to top
Profile PM 
2 replies since June 05 2006,09:21 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]

 
reply to topic new topic new poll
Quick Reply: Change a process owner at startup?

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code