[StarCluster] technical problem

Steve Darnell darnells at dnastar.com
Mon Nov 11 16:28:54 EST 2013


Hi Yehuda,

Is 'sgeadmin' even in the sudoers list (/etc/sudoers)? I did not think so, but I do not have a cluster running to confirm. If not, sgeadmin will not have sudo privileges without a configuration change.

Alternatively, the 'ubuntu' user should be preinstalled and configured for password-less sudo by Amazon (http://askubuntu.com/questions/192050/how-to-run-sudo-command-with-no-password) since the starcluster image is based on an Ubuntu instance.

Another option is to run a single remote command as root with sshmaster/sshnode (http://star.mit.edu/cluster/docs/latest/manual/runcommands.html?highlight=sshmaster). This approach is functionally similar to sudo with regards to preventing the accidental use of an open root shell. Neither approach will prevent the actual script from doing "bad things" with elevated privileges. This is the approach I have used in the past since it is well supported in starcluster.

Best regards,
Steve

From: starcluster-bounces at mit.edu [mailto:starcluster-bounces at mit.edu] On Behalf Of Yehuda Landau
Sent: Monday, November 11, 2013 1:12 PM
To: starcluster at mit.edu
Subject: [StarCluster] technical problem

Hi
I want to write a bash script and run on an instance
To do so i login as a user (sgeamin) --> starcluster sshmaster -u sgeadmin mycluster
but then i like to run a script using : sudo [script_name]
BUT was is the SU PASSWORD
i know i can login as root but i would prefer not to
Thanks

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.mit.edu/pipermail/starcluster/attachments/20131111/33ded7eb/attachment.htm


More information about the StarCluster mailing list