This is for a post-analysis of a problem I'v encountered. No access to the system for the moment.
I had a process that cannot access to write to a file. Error looking like permission denied.
But I checked the permissions and were fine. Even with a chmod 777 on the whole path.
What is strange is that if I try with the same user as the process owner, I'm able to write to the file. And if I change the owner of the directory to the same user as the process it works (and finally this was the workaround).
But i still don't undertand why i had the error.
Here is the truss from the process when encountering the error:
statx("/home/u1/sz/out/test.txt", 0x0FFFFFFFFFFE8250, 176, 010) Err#13 EACCES
statfs("/home/u1/sz/out/test.txt", 0x0FFFFFFFFFFE7E30) Err#13 EACCES
statx("/home/u1/sz/out/test.txt", 0x0FFFFFFFFFFE8108, 176, 011) Err#13 EACCES
kopen("/home/u1/sz/out/test.txt", O_WRONLY|O_CREAT|O_TRUNC|O_LARGEFILE, S_IRUSR|S_IWUSR|S_IRGRP|S_IWGRP|S_IROTH|S_IWOTH) Err#13 EACCES
If anybody has an idea why this error is raised even for a directory that is rwxrwxrwx - and probably related to the environment (because the same user can do it from shell)
Thanks a lot,