I am building a server in java based on thrift.  The server needs to be 
able to interact with different users and to read and write files.

The problem or question that I'm running into is how can I make sure 
these file based operation happen as the correct user?

I'm currently starting my server using an xinetd script.  Would it make 
any sense to do a sudo to the same user as the client when starting the 
server if that is even possible?

Is there a model or a best practice guide for linux when creating a 
service that needs to interact with multiple different users?

Am I missing something?  Is this easy complicated or where do I start?  
I've looked for some ideas on the net but I'm not finding anything that 
looks promising.

Thanks for any insights,
Steve


----------------------------------------------------------------------
This e-mail, including any attached files, may contain confidential and 
privileged information for the sole use of the intended recipient.  Any review, 
use, distribution, or disclosure by others is strictly prohibited.  If you are 
not the intended recipient (or authorized to receive information for the 
intended recipient), please contact the sender by reply e-mail and delete all 
copies of this message.

Reply via email to