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
This is fairly complicated and doesn't sound like a good use of the linux
file-permissioning system.
Thrift clients are not Linux users. Assuming you're using TCP (the common
case), they are data from an IP/port. You have no way of knowing which
user that corresponds to - you can encode it in the