Olivier Pernet wrote: > Hi all, > > Two unrelated questions: > > First, do you know of a way to execute a Java program from SmartFrog, > as a different user than the one running the SmartFrog daemon ? > I'd like not to run my application as root, but I also need root > access to install packages and configuration files. > I suspect this will be a pain since java.lang.ProcessBuilder doesn't > expose the concept of users... But maybe there's a well-known > workaround, this should be common enough.
no, you really need to get from an untrusted user to root and that isnt easy, especially unattended. I've used the ssh components to do that, ssh in to localhost, bootstrapping from an untrusted user with root's ssh keys to root itself. > Then, I'm deploying to a bunch of servers from my development machine, > so everything that needs to be deployed will be deployed on the > servers. Except that I need to upload files there from the dev > machine. It seems like a pain to have a SmartFrog daemon running on > the dev machine just for that (and have to keep it powered on), but I > think I might be fine if I could use the SmartFrog daemon that is > started by sfDeploy as the null ProcessCompound for my uploads... Does > that seem feasible? use sfRun and push out the files? Otherwise, put them somewhere mutually accessible. Shared filesystems are always an option. > If that sounds unreasonable, then I guess the best solution is to have > files on a web/ftp server on the dev machine and have the servers pull > things from there. > > Thanks and see you soon :) you planning a visit? ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Smartfrog-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/smartfrog-users
