[GE users] Managing user access to scratch space

rayson rayrayson at gmail.com
Thu Jul 2 19:57:47 BST 2009


On 7/2/09, jagladden <gladden at chem.washington.edu> wrote:
> I am guessing that when sge_execd creates the scratch directory it is
> running as user "sge", is that correct?  So if I set up the scratch
> partitions such that the "sge" user has write permission, but not the
> world, this should work?  Right?

execd creates the scratch directory as root. In daemons/execd/tmpdir.c :

   sge_switch2start_user();
   sge_mkdir(tmpdir, 0755, 0, 0);

   chown(tmpdir, uid, gid);
   sge_switch2admin_user();

In most cases, root is used to create the TMPDIR. Root is also used to
chown the directory to the job owner.

Rayson




>
> James Gladden
>
> ------------------------------------------------------
> http://gridengine.sunsource.net/ds/viewMessage.do?dsForumId=38&dsMessageId=204972
>
> To unsubscribe from this discussion, e-mail: [users-unsubscribe at gridengine.sunsource.net].
>

------------------------------------------------------
http://gridengine.sunsource.net/ds/viewMessage.do?dsForumId=38&dsMessageId=204976

To unsubscribe from this discussion, e-mail: [users-unsubscribe at gridengine.sunsource.net].



More information about the gridengine-users mailing list