[H-GEN] Samba woes continued.

R&J Stuart rjstuart at bigpond.net.au
Thu Feb 20 20:42:15 EST 2003


[ Humbug *General* list - semi-serious discussions about Humbug and     ]
[ Unix-related topics. Posts from non-subscribed addresses will vanish. ]

Patrick Nichols wrote:
> [2003/02/17 10:38:26, 1] smbd/service.c:make_connection(615)
>   patrick (192.168.1.13) connect to service jobs as user nobody
> (uid=65534, gid=65534) (pid 28455)
> [2003/02/17 10:38:57, 0] smbd/oplock.c:oplock_break(758)
>   oplock_break: receive_smb error (Success)
>   oplock_break failed for file 2001/01-480/Administration/Letters/Letter
> 01a-480 Std Drawing d2.doc (dev = 902, inode = 753666, file_id = 2).
> [2003/02/17 10:38:57, 0] smbd/oplock.c:oplock_break(843)
>   oplock_break: client failure in break - shutting down this smbd.
> [2003/02/17 10:38:57, 1] smbd/service.c:close_cnum(655)
>   patrick (192.168.1.13) closed connection to service jobs

Hi Patrick,

You mentioned previously that you were running 2.2.3a-something from Debian. 
  At this point I'd be trying to use 2.2.7a but at least 2.2.6.

The errors above might mean one of three things:
- the client machine has done something stupid (fix the client)
- the samba server misinterpreted the client reqs (update samba)
- somehow the samba server got confused about the current locking status on 
this share (update samba).

I mentioned share mode as a possible issue in the last email because I'm not 
sure how locking works when in share mode.  I thought I'd come across 
something that suggested that mode=share shouldn't be used except for 
something similar to a public ftp area.  It sounds like you already have 
multiple users set up etc, but access to shares restricted to particular 
people.  The likely changes you would have to make to get mode=user working 
would be:
- have a group associated with a share (hrdocs group with a "hr" share)
- make sure permissions on the directories are sensible and owned by the group
- put something like the two lines for each share in smb.conf which makes 
dirs setgid so files are created with the appropriate group.
   force create mode = 0664
   force directory mode = 2775

I'd recommend that as a first step you upgrade samba to 2.2.7a and see how 
you go.  I had repeatable problems with 2.2.3a-x rpms.

Hope that helps.

--
Robert


--
* This is list (humbug) general handled by majordomo at lists.humbug.org.au .
* Postings to this list are only accepted from subscribed addresses of
* lists 'general' or 'general-post'.  See http://www.humbug.org.au/



More information about the General mailing list