Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Can I use RMI for remote system calls?  RSS feed

 
Brian Joseph
Ranch Hand
Posts: 160
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a project where the application will run on both Windows and Solaris, however, the program is required to make some system calls only on the Unix side.
I was thinking of setting up an RMI server on a Unix machine and have my client application execute the system calls on the remote machine. My alternative would be to use RSH, which gets messy when you want your app to work on both Unix and the PC.
My question is about user permissions. The system calls must be executed as the user who launched the client application. Is it possible to switch users? Do I have to always launch the RMI server as root?
Thanks for any info or alternative ideas.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!