• Post Reply Bookmark Topic Watch Topic
  • New Topic

To Mr Chris De Vries  RSS feed

 
pavan bellari
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
sir, Thank u for ur valuable advice.
but i got a doubt
we can communicate with Linux running java with windows running java thru RMI. to run Java on Linux one must have to login. after login what u said is right.but can u say how to login to Linux as root thru Java on Windows.
Thanks in Advance
 
Ernest Friedman-Hill
author and iconoclast
Sheriff
Posts: 24217
38
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You would first have to log in and run the server as root on the Linux machine. Then when the Windows client contacted it, the server would be running with root permissions.
Now, I can't help but point out that running any server as root is usually not a good idea if you can avoid it. A Java server is probably safer than most, but I'd still want to look for alternatives first. What is it that you need your server to do?
 
Adrian Yan
Ranch Hand
Posts: 688
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't think you need root to run server with port range above well-know ports (1-1224?). So if you run your RMI server at port 11111, I think it's fine without root permission.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!