Submitted by Pronco on Wed, 02/02/2005 - 04:46.
( categories: Miscellaneous )

Anyone know what would cause a chdir() call in a program to fail with "EACCESS ( Permission denied )" at random?

Courier-POP3 at random is failing when I check my email. When I strace the process, the chdir('/var/spool/mail/pronco') fails, then 30secs later, it succeeds... then fails, then succeeds at random

The permissions on the dir or files inside it are not changing, (that I can see anyways)

Infact, it happens at random with every pop account. it's bizarre works one second, but fails the next.


Conceptor's picture
Submitted by Conceptor on Wed, 02/02/2005 - 17:27.

for more info

this the what exist error message of EACCESS means .

Permission bits of the file mode do not permit the requested access, or search permission is denied on a component of the path prefix.

-And it may fail to chdir() because the /var/spool/mail/$USER is file and it is not direcory,in most cases.

Diaa Radwan


Pronco's picture
Submitted by Pronco on Wed, 02/02/2005 - 21:35.

I would think that it's a little something more then. I dunno why it would randomly start doing that?

Maybe running two processes or two things accessing one file at once. otherwise accessing the same file twice is not the best idea

Maybe I will kill such a processes then feedback


I used to be indecisive .. but now I'm not so sure


Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.