[GE users] can't open output file "/some/path/TEST.1763": Permission denied

Andreas.Haas at Sun.COM Andreas.Haas at Sun.COM
Thu Aug 23 11:58:20 BST 2007


Hi Dmitry,

On Thu, 23 Aug 2007, Dmitry Zhukovski wrote:

> Hi Andreas,
>
>  Thank you for your reply!
>
>  Actually 8259 is process ID I think. Look here

Surely. Sorry for confusion.

>
> 	08/21/2007 14:42:57 [1021208:8258]: forked "job" with pid 8259
> 	08/21/2007 14:42:57 [1021208:8259]: pid=8259 pgrp=8259 sid=8259
> old pgrp=8258 getlogin()=<no login set>
> 	08/21/2007 14:42:57 [1021208:8259]: reading passwd information
> for user 'xxx'
> 	08/21/2007 14:42:57 [1021208:8258]: child: job - pid: 8259
>
>  And 1021208 is actually geteuid(2). But never less - I have tried
> both. There are some problems with strerror() under 64bit but in general
> gdb shows
>
> 20           printf( "open64() failed: %s\n", strerror(errno));
> (gdb) print errno
> $1 = 13
>
> #define EACCES          13      /* Permission denied */
>
> Also I checked ~/ path instead of /some/path . It works. I mean it can
> create file.

I understand the small C program does not fail, if the open64() is done with

    /home/path

instead of

    /some/path

even though both directories are actually on a remote NFS volume?

Any difference in how they are mounted by the client 
or how the mount is provided at server side?

Regards,
Andreas

> Br,
> dmitry
>
> -----Original Message-----
> From: Andreas.Haas at Sun.COM [mailto:Andreas.Haas at Sun.COM]
> Sent: 22. august 2007 17:11
> To: users at gridengine.sunsource.net
> Subject: RE: [GE users] can't open output file "/some/path/TEST.1763":
> Permission denied
>
> Hi Dmitry,
>
> On Wed, 22 Aug 2007, Dmitry Zhukovski wrote:
>
>> OK, after more investigations I found this problem persists on amd64
>> servers and not on intel32.
>
> Ok.
>
>> I have upgraded to 6.1u2 as there was kind
>> of similar Issue 2249 but it didn't help.
>
> #2249 is not related. Must be some other bug.
>
>> What do you think? Where can I have a look more?
>
> Note, the '8259' here in
>
>    [1021277:8259]: error: can't open output file
> "/some/path/TEST.1763": Permission denied
>
> is actually geteuid(2) under which the open(2) system call fails while
> getuid(2)
> is '0' at this point in time.  Reproducing the actual problem in an
> isolated way thus should doable with a small C
> program that is run as user 'root':
>
> #include ...
>
> int main(int argc, char *argv[])
> {
>   seteuid(8259);
>   if ((fd=open64("/some/path/TEST.1763", O_WRONLY|O_CREAT|O_APPEND,
> 0644))<0) {
>     fprintf(stderr, "open64() failed: %s\n", strerror(errno));
>     return 1;
>   }
>   return 0;
> }
>
> Could you try this and file us then an IssueZilla issue with the result?
>
> Please make sure you add complete OS + HW information both for the
> execution node and the NFS server and all relevant information about
> the NFS mount.
>
> Best regards,
> Andreas
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe at gridengine.sunsource.net
> For additional commands, e-mail: users-help at gridengine.sunsource.net
>
>
> **********************************************************************
> This e-mail and any files transmitted with it are confidential and
> intended solely for the use of the individual or entity to which they
> are addressed. If you have received this e-mail in error please notify
> the system manager at helpdesk at maerskoil.com.
>
> This e-mail and its contents do not constitute and shall not be
> considered as a financial commitment of Maersk Olie og Gas AS
> and its affiliates.
> Maersk Olie og Gas AS expressly disclaims any responsibility
> as to the accuracy and use of this e-mail and its contents.
> **********************************************************************
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe at gridengine.sunsource.net
> For additional commands, e-mail: users-help at gridengine.sunsource.net
>
>

http://gridengine.info/

Sitz der Gesellschaft: Sun Microsystems GmbH, Sonnenallee 1, D-85551 Kirchheim-Heimstetten
Amtsgericht Muenchen: HRB 161028
Geschaeftsfuehrer: Marcel Schneider, Wolfgang Engels, Dr. Roland Boemer
Vorsitzender des Aufsichtsrates: Martin Haering

---------------------------------------------------------------------
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