|
From: Andrew <li...@se...> - 2005-04-13 23:24:10
|
I never saw a response to mine either that is related: Subject: Running Process as another user (RUN_AS_USER) I'm having real problems trying to get my processes to run as another user other than root. I'm running Solaris 8 and roots shell is sh. My user i'm trying to run as has a shell of csh. I have even taken out everything out of its environment to rule that out of the problem. My scripts work just fine when I run them from the command line. I have it set up like so: /etc/init.d/myapp -> linked to /home/myuser/myapp /etc/rc3.d/S99myapp -> linked to ../init.d/myapp I can either just fine from the command line: # su - root # /etc/init.d/myapp start # /etc/rc3.d/S99myapp start However, when I reboot the machine, I see the message "Starting Application Name..." message from the wrapper, but when I get to the command prompt and run: #/etc/init.d/myapp status It isn't running. There is nothing written to my logs (both the wrapper.log or /var/adm/messages). If I set RUN_AS_USER to root (or comment it out), it works fine. I have tried this on 2 different machines, with different users, with NIS users and local users, etc. I have put a redirect to a file after the su command. All i see in there is the rest of the output from the boot process for some reason. I see "Starting OpenWindows in 5 seconds, control C to stop." I have tried running just the complete su command and that works fine as well. I have also changed all my paths in all my config files to be absolute. I'm at a loss...any help in what I can try to debug it would be great. Andrew nic...@uk... wrote: >Hi Leif, > >Since you are in a mail-reading frenzy, > >Did this earlier one of mine fall through the cracks? I never saw a >response.... > >------------- >Hi, > >With respect to the RUN_AS_USER variable in the scripts; > >1) Would it make sense for this to be obeyed when running with "console" >(so you can test, running with the correct privs) > >2) Would it make sense to also use this when stopping the wrapper? (you >cant kill a process you dont own...) > >-Nick >------------------------- > > > > > > >---------------------- Forwarded by Nick MINUTELLO/UK/EUROPE/GROUP on >14/04/2005 00:14 --------------------------- > > 01/02/2005 19:33 Nick MINUTELLO > > Technical Architect > Technical Architecture Group > Capital Markets IT - BFI > 10 Harewood Avenue, London > > tel : +44 (0) 20 7595 6355 > ------------------------------------------------------------ > > > > > >To: wrapper-user > >cc: > >Subject: Re: [Wrapper-user] RUN_AS_USER (Document link: Nick MINUTELLO) > > > >I didnt see a reply for this question - maybe I missed it? > >Cheers, >Nick > > > > >Internet >Nick MINUTELLO/UK/EUROPE/GROUP@BNP...@li... - >13/01/2005 23:54 > > >Please respond to wra...@li... > >Sent by: wra...@li... > > > >To: wrapper-user > >cc: > > >Subject: [Wrapper-user] RUN_AS_USER > > > > >Hi, > >With respect to the RUN_AS_USER variable in the scripts; > >1) Would it make sense for this to be obeyed when running with "console" >(so you can test, running with the correct privs) >2) Would it make sense to also use this when stopping the wrapper? (you >cant kill a process you dont own...) > >-Nick > > > > >This message and any attachments (the "message") is >intended solely for the addressees and is confidential. >If you receive this message in error, please delete it and >immediately notify the sender. Any use not in accord with >its purpose, any dissemination or disclosure, either whole >or partial, is prohibited except formal approval. The internet >can not guarantee the integrity of this message. >BNP PARIBAS (and its subsidiaries) shall (will) not >therefore be liable for the message if modified. > >********************************************************************************************** > > >BNP Paribas Private Bank London Branch is authorised >by CECEI & AMF and is regulated by the Financial Services >Authority for the conduct of its investment business in the >United Kingdom. > >BNP Paribas Securities Services London Branch is authorised >by CECEI & AMF and is regulated by the Financial Services >Authority for the conduct of its investment business in the >United Kingdom. > >BNP Paribas Fund Services UK Limited is authorised and >regulated by the Financial Services Authority. > > > >------------------------------------------------------- >The SF.Net email is sponsored by: Beat the post-holiday blues >Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. >It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt >_______________________________________________ >Wrapper-user mailing list >Wra...@li... > https://lists.sourceforge.net/lists/listinfo/wrapper-user > > > >------------------------------------------------------- >SF email is sponsored by - The IT Product Guide >Read honest & candid reviews on hundreds of IT Products from real users. >Discover which products truly live up to the hype. Start reading now. >http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click >_______________________________________________ >Wrapper-user mailing list >Wra...@li... >https://lists.sourceforge.net/lists/listinfo/wrapper-user > > |