Same error code 13

Vikram Bharti vikrambharti33 at gmail.com
Mon May 8 13:12:00 UTC 2023


Hi Team

I am using libsmbclient API *smbc_getFunctionOpendir *to  open a
file/directory . This function returns *error code 13 *in case of *wrong
credentials *and also in case the user is not having permission to view the
file/folder. Now I am unable to interpret whether the return code is due to
wrong credential or forbidden access.


Is there any such API which can *list out the allowed permissions* to a
specific user . Or just to verify whether the * credential i*s valid for
shares.


*Regards*
*Vikram*


More information about the samba-technical mailing list