smbsh "ERROR: can't get smbw shared lock"

Andrew Tridgell tridge at
Tue Nov 17 00:07:35 GMT 1998

> Just tried smbsh from samba-2.0.0beta1 on SGI Irix 6.2.
> Can't do much as I get an error "ERROR: can't get smbw shared lock" from an
> "ls ." command.

probably the shared handle has been closed somehow. That shouldn't
happen because the smbw_local_fd() check in close() is supposed to
prevent it.

can you add a print of strerror(errno) to the "can't get smbw shared
lock" error message to confirm it? I bet it will be EBADF.

More information about the samba-technical mailing list