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

Herb Lewis herb at chomps.engr.sgi.com
Tue Nov 17 01:21:59 GMT 1998


Billinghurst, David (RTD) wrote:
> 
> Yep.  It happens straight away - EBADF
> 
> cru201(csh):3#cru201:3%/var/samba/bin/smbsh
> Username: billingd
> Password:
> cru201(csh):1%ls
> ERROR: can't get smbw shared lock
> In lockit: Bad file number
> 
> > -----Original Message-----
> > From: Andrew Tridgell [SMTP:tridge at samba.anu.edu.au]
> > Sent: Tuesday, November 17, 1998 11:08 AM
> > To:   David.Billinghurst at riotinto.com.au
> > Cc:   samba-technical at samba.anu.edu.au
> > Subject:      Re: smbsh "ERROR: can't get smbw shared lock"
> >
> > > 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.

This is probably a problem with the shell you are using. csh (and many
of the others) are statically linked in IRIX. Try /bin/tcsh or install
and use bash. If you have ls aliased to ls -FC you will find that the
commands take a LONG time to complete. use \ls or remove your alias.

-- 
======================================================================
Herb Lewis                                   Silicon Graphics 
Technical Marketing                          2011 N Shoreline Blvd
Network Systems Division                     Mountain View, CA  94043  
herb at sgi.com                                 Tel: 650-933-2177
http://www.sgi.com                           Fax: 650-932-2177          
======================================================================


More information about the samba-technical mailing list