HP-UX vs Samba 2.2.8a

MCCALL,DON (HP-USA,ex1) don_mccall at hp.com
Thu May 15 14:48:33 GMT 2003

Hi Ulairi,
this type of question would better be posted on the samba list,
rather than the samba-technical, which is reserved for developers, etc.
I have 2.2.8a running on hpux 11.11 with no such problems.  The ip addresses
in my logs are all consistent with the client addresses of the pc's
and I had no need of a interfaces line in my smb.conf; samba had no trouble 
determining it.  Because of this, I would suggest that the problem may not
with samba, but with the way your networking is set up on your system (not
it is *WRONG*, but just different).
In situations where you may have multiple interfaces, possibly with
differnet ip
addresses in the same subnet, having to use bind intefaces only, and
interfaces= is not a bug or problem, but a solution.
As far as the nobody account, the recommended
way to resolve this is to add a user (HP's version of Samba, based on the
2.2.5 product,with security fixes backported into it, uses smbnull) and
group with a positive uid/gid ad set "guest account" parameter in the global
section of your 
smb.conf file.  The reporting (-1,-2) in the error message is normal, and
doesn't indicate that it is trying to set uid,gid to -1,-2; the 2nd number
in the set is what it is trying to set it TO. The important thing is that
your guest account be set to a user with a positive uid and gid.

Hope this helps,

> -----Original Message-----
> From: ulairi [mailto:ulairi at ulairi.org]
> Sent: Wednesday, May 14, 2003 18:17
> To: samba-technical at lists.samba.org
> Subject: HP-UX vs Samba 2.2.8a
> Samba 2.2.8a
> HP-UX 11 (HPPA 2.0/64bit).
> Bunch-o-things:
> I see the following in the logs:
> [2003/05/14 12:44:15, 1] smbd/service.c:(636)
>   s010n166 ( connect to service eric as user eric 
> (uid=143860,
> gid=500
> 3) (pid 24358)
> [2003/05/14 12:48:50, 1] smbd/service.c:(675)
>   s010n166 ( closed connection to service eric
> Looks like the IP is not recorded properly. 
> Then there are wonderful things like this:
> [2003/05/13 16:31:38, 0] lib/util_sec.c:(111)
>   Failed to set gid privileges to (-1,-2) now set to (0,0) uid=(0,0)
> [2003/05/13 16:31:38, 0] lib/util.c:(1094)
>   PANIC: failed to set gid
> I think this has to do with the fact that HP-UX's 'nobody', 
> but that is
> odd since the GID and UID for 'nobody' are -2 and -2 respectively.
> Then there's an nmbd issue - it could not, for the life of 
> it, determine
> the network interface to which to bind without an explicit declaration
> thereof in a config file, as well as a 'bind interfaces only' 
> being set
> to True. At what can I look/what debug level would be appropriate for
> troubleshooting this, et cetera?
> Solutions, pointers where to RTFM, et cetera, would be greatly
> appreciated. 

More information about the samba-technical mailing list