An access error is due to a permissions/security error.
It can be caused by:

Failed Login due to Access Error

Attempting to connect to a remote process with the invalid username or password can cause an access error.

Server q -p 5000

Client

System Command causes Access Error

Starting kdb with some variations of -u make kdb refuse to run system commands remotely. As you can see, local system commands work but remote ones do not, including attempts to exit.

Server q -p 5000 -u 1

Client

Accessing Files/Folders causes Access Error

If kdb has been started with -u and you try to access a file on the server above the current directory you will receive an access error like so:

Server q -p 5000 -u 1

Client