- 
    Type:Bug 
- 
    Resolution: Done
- 
    Priority:Major - P3 
- 
    Affects Version/s: None
- 
    Component/s: None
- 
    None
- 
        None
- 
        None
- 
        None
- 
        None
- 
        None
- 
        None
- 
        None
When trying to run a script owned by another user, the mongo shell fails with the following:
Fri May 7 11:39:38 Assertion failure L <= 0x7ffffffe scripting/engine.cpp 129
0x4928ea 0x4961b1 0x49c21f 0x44ab9d 0x44c526 0x7fc80a3c91c4 0x447499 
 /usr/bin/mongo(_ZN5mongo12sayDbContextEPKc+0x14a) [0x4928ea]
 /usr/bin/mongo(_ZN5mongo8assertedEPKcS1_j+0x1a1) [0x4961b1]
 /usr/bin/mongo(_ZN5mongo5Scope8execFileERKSsbbbi+0x56f) [0x49c21f]
 /usr/bin/mongo(_Z5_mainiPPc+0x158d) [0x44ab9d]
 /usr/bin/mongo(main+0x26) [0x44c526]
 /lib/libc.so.6(__libc_start_main+0xf4) [0x7fc80a3c91c4]
 /usr/bin/mongo(_ZNSt15basic_streambufIcSt11char_traitsIcEE6xsputnEPKcl+0x71) [0x447499]
exception: assertion scripting/engine.cpp:129
An strace shows that the file is being opened with: O_RDONLY|O_CREAT|O_NOATIME
The NOATIME option is the problem here as it cannot be used on files where the owner does not match the caller.