[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Sudo environment question



I want a group of users on a high performance computing cluster to be
able to submit jobs as user fluent using sudo.

I have the following in /etc/sudoers:

User_Alias FLUENT_USERS = user1, user2

Cmnd_Alias FLUENT = /usr/local/sge/bin/lx24-amd64/qsub *

Defaults>fluent env_keep="SGE_CELL OLDPWD LD_LIBRARY_PATH PATH PWD SGE_ROOT"

FLUENT_USERS  ALL = (fluent)  NOPASSWD: FLUENT

Now when say user1 run for example:

$sudo -u fluent qsub c.sub

The error message is:

error: Please set the environment variable SGE_ROOT.

Unable to initialize environment because of error: error without
diagnosis message
Exiting

And in user1's environment:

~> echo $SGE_ROOT
/usr/local/sge

Any idea how I can solve this one?

Regards
Johann
-- 
Johann Spies          Telefoon: 021-808 4036
Informasietegnologie, Universiteit van Stellenbosch

     "But where shall wisdom be found? and where is the
      place of understanding? It cannot be gotten for gold,
      neither shall silver be weighed for the price thereof.
      Whence then cometh wisdom? and where is the place of
      understanding? ...Behold the fear of the Lord, that is
      wisdom; and to depart from evil is understanding."    
                                       Job 28:12,15,20,28


Reply to: