Yes. That is correct.
http://www.globus.org/toolkit/docs/4.0/admin/docbook/quickstart.html#q-gram
"Also, if your sudoers has a line reading "requiretty", remove it. The
container won't have a tty while it is running, but it needs to use
sudo."
-Stu
On Sep 26, 2008, at Sep 26, 8:21 AM, Yoichi Takayama wrote:
Hi,
I get the error as below.
Although I can comment out requiretty by using visudo, is this the
correct way to handle this error???
Thanks,
Yoichi
E.g.
-----------------------------------------
# visudo
Defaults requiretty
-----------------------------------------
-----------------------------------------
Ref.:
http://www.globus.org/toolkit/docs/4.2/4.2.0/admin/quickstart/index.html#q-gram2
-----------------------------------------
# visudo
-- insert --
Runas_Alias GLOBUSUSERS = ALL, !root;
globus ALL=(GLOBUSUSERS) NOPASSWD: /usr/local/globus/libexec/globus-
gridmap-and-execute -g /etc/grid-security/grid-mapfile /usr/local/
globus/libexec/globus-job-manager-script.pl *
globus ALL=(GLOBUSUSERS) NOPASSWD: /usr/local/globus/libexec/globus-
gridmap-and-execute -g /etc/grid-security/grid-mapfile /usr/local/
globus/libexec/globus-gram-local-proxy-tool *
-----------------------------------------
a.rsl
<job>
<executable>my_echo</executable>
<directory>${GLOBUS_USER_HOME}</directory>
<argument>Hello</argument>
<argument>World!</argument>
<stdout>${GLOBUS_USER_HOME}/stdout</stdout>
<stderr>${GLOBUS_USER_HOME}/stderr</stderr>
<fileStageIn>
<transfer>
<sourceUrl>gsiftp://cognito.mcs.anl.gov:2811/bin/echo</
sourceUrl>
<destinationUrl>file:///${GLOBUS_USER_HOME}/my_echo</
destinationUrl>
</transfer>
</fileStageIn>
<fileCleanUp>
<deletion>
<file>file:///${GLOBUS_USER_HOME}/my_echo</file>
</deletion>
</fileCleanUp>
</job>
-----------------------------------------
# su - yoichi
[EMAIL PROTECTED] ~]$ myproxy-logon -s grid2
Enter MyProxy pass phrase:
A credential has been received for user yoichi in /tmp/x509up_u500.
[EMAIL PROTECTED] ~]$ globusrun-ws -submit -S -f a.rsl
Delegating user credentials...Done.
Submitting job...Done.
Job ID: uuid:98d0d4e4-8bcc-11dd-b8e4-000c298bf637
Termination time: 09/26/3008 13:11 GMT
Current job state: StageIn
Current job state: Failed
Destroying job...Done.
Cleaning up any delegated credentials...Done.
globusrun-ws: Job failed: Error code: 201Script stderr:
sudo: sorry, you must have a tty to run sudo
-----------------------------------------
--------------------------------------------------------------------------
Yoichi Takayama, PhD
Senior Research Fellow
RAMP Project
MELCOE (Macquarie E-Learning Centre of Excellence)
MACQUARIE UNIVERSITY
Phone: +61 (0)2 9850 9073
Fax: +61 (0)2 9850 6527
www.mq.edu.au
www.melcoe.mq.edu.au/projects/RAMP/
--------------------------------------------------------------------------
MACQUARIE UNIVERSITY: CRICOS Provider No 00002J
This message is intended for the addressee named and may contain
confidential information. If you are not the intended recipient,
please delete it and notify the sender. Views expressed in this
message are those of the individual sender, and are not necessarily
the views of Macquarie E-Learning Centre Of Excellence (MELCOE) or
Macquarie University.