[GE users] Submitting a script executing 'bash' gives "bash: /root/.bashrc: Permission denied"

John Saalwaechter johnsaalwaechter at yahoo.com
Fri Mar 10 15:39:48 GMT 2006

    [ The following text is in the "iso-8859-1" character set. ]
    [ Your display is set for the "ISO-8859-10" character set.  ]
    [ Some special characters may be displayed incorrectly. ]

>When a user submits a script that starts bash he
>gets "bash: 
>Permission denied" on stderr. Is a job really
>submitted by a regular user try to access >roots
.bashrc ??
>SGE 6.0u1

This is an INHERIT_ENV problem.  Likely you restarted
sge_execd manually from a root prompt, which then
inadvertently put BASH_ENV=/root/.bashrc into all your
SGE jobs.  A simple way to check is to run "echo env |
qsub" and then see if "BASH_ENV=/root/.bashrc" is in
the job's output.

as a starting point, and also search the SGE project

We're running N1GE 6.0u4.  Our final workaround for
this issue was to leave INHERIT_ENV=true in the SGE
configuration (to avoid qrsh problems with it being
false), and then we put a local patch in the sgeexecd
boot script.  Near the top we added this:

# Unset any existing user environment variables
if [ $USER ]; then
    exec /bin/env -i $0 "$@"

I believe that in some updates since u4 some of these
problems have been addressed.


Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 

To unsubscribe, e-mail: users-unsubscribe at gridengine.sunsource.net
For additional commands, e-mail: users-help at gridengine.sunsource.net

More information about the gridengine-users mailing list