[Samba] Howto determine flags like readonly and readwrite.

Volker Lendecke Volker.Lendecke at SerNet.DE
Sun Feb 7 15:19:15 MST 2010


On Sun, Feb 07, 2010 at 06:03:51PM +0100, Stef Bon wrote:
> On Sunday 07 February 2010 15:37:42 Volker Lendecke wrote:
> > On Fri, Feb 05, 2010 at 03:54:31PM +0100, Stef Bon wrote:
> > > My question is now, how can I determine the flags in human readable form,
> > > just like smbstatus.
> > > The pid of the application (here openoffice writer) is
> > > known, as well as the file/path to it.
> > > I know where to look for info, /proc/<pidnr>/fdinfo/flags,
> > > but this gives a (hex?) number. Is this
> > > the lock I'm looking for, and how can I translate it into
> > > terms like readonly, readwrite and exclusive.
> > 
> > You're on the same box as the smbd is, or on a different
> > one?
> > 
> 
> Different, I would say of course.
> My construction is al about making connections from a workstation to a remote 
> server.

Ok, then I did not fully understand what you want to
achieve. You quote smbstatus which is only available
locally where smbd is running. What kind of information do
you want to present where?

Volker


More information about the samba mailing list