smbd not starting on Samba version 3.0.22 - Solaris 9

Anand Rao panandrao at gmail.com
Wed Jul 5 07:06:14 GMT 2006


Dave,

many thanks for your reply.

i am unable to understand what you mean by "net rpc join". i tried that on
the DC using the windows "net" command but there is no such option as rpc.

could you pls elaborate?

cheers
anand

On 05/07/06, Dave Jones <opensamba.deb at gmail.com> wrote:
>
>
>
> On 7/5/06, Anand Rao <panandrao at gmail.com> wrote:
> >
> > Hi,
> >
> > i downloaded the samba source and compiled it using Sun Studio C
> > compiler on
> > Solaris 9 box with the latest OS patchset. other than some warnings,
> > nothing
> > errored out or exited during the "configure" stage. "make" and "make
> > install" was also smooth.
> >
> > here is my smb.conf file,
> >
> > [global]
> >
> > workgroup               = <my domain name>
> > server string           = garuda (Sun4u)
> > username map           = /usr/local/samba/lib/smb.map
> > load printers           = yes
> > guest account           = root arao smbguest
> > browsable               = yes
> > preserve case           = yes
> > short preserve case     = no
> > dead time               = 240
> > oplocks                 = True
> > log level               = 10
> > logfile                 = /usr/local/samba/var/log.%m
> > security                = server
> > #security               = share
> > password server         = 158.x.x.x 158.x.x.x 158.x.x.x
> > encrypt passwords       = yes
> > #encrypt passwords      = no
> > wins server             = 158.x.x.x
> >
> > [ Temporary ]
> >
> > comment = Temp for Test
> > path = /temp
> > valid users = root arao smavir
> > browsable = yes
> > writable = yes
> > public = no
> >
> > Please note that i have masked the IPs. I also have a user mapping file.
> >
> > when i try to start smbd,
> >
> > $ smbd -D
> >
> > it doesn't start. the log.smbd shows the following message. i have
> > edited it
> > for easy reading...
> >
> > ##### log.smbd #######
> >
> > [2006/07/05 09:03:16, 6] param/loadparm.c:(2947)
> >   lp_file_list_changed()
> >   file /usr/local/samba/lib/smb.conf ->
> > /usr/local/samba/lib/smb.conf  last
> > mod_time: Wed Jul  5 09:03:01 2006
> >
> > [2006/07/05 09:03:16, 2] lib/interface.c:(81)
> >   added interface ip=158.x.x.x  bcast=158.x.x.x nmask=255.255.255.192
> > [2006/07/05 09:03:16, 5] lib/util.c:(260)
> >   Netbios name list:-
> >   my_netbios_names[0]="GANGA"
> >
> > .....
> > ....
> > ....
> > [2006/07/05 09:03:16, 10] passdb/pdb_smbpasswd.c:(1322)
> >   getsampwnam (smbpasswd): search by name: root arao
> > [2006/07/05 09:03:16, 10] passdb/pdb_smbpasswd.c:(184)
> >   startsmbfilepwent_internal: opening file
> > /usr/local/samba/private/smbpasswd
> > [2006/07/05 09:03:16, 5] passdb/pdb_smbpasswd.c:(539)
> >   getsmbfilepwent: end of file reached.
> > [2006/07/05 09:03:16, 7] passdb/pdb_smbpasswd.c:(301)
> >   endsmbfilepwent_internal: closed password file.
> > [2006/07/05 09:03:16, 10] passdb/pdb_get_set.c:(617)
> >   pdb_set_username: setting username root arao, was
> > [2006/07/05 09:03:16, 10] passdb/pdb_get_set.c:(698)
> >   pdb_set_full_name: setting full name root arao, was
> > [2006/07/05 09:03:16, 10] passdb/pdb_get_set.c:(644)
> >   pdb_set_domain: setting domain GANGA, was
> >
> > .........
> > .........
> > [2006/07/05 09:03:16, 10] passdb/pdb_compat.c:(100)
> >   pdb_set_group_sid_from_rid:
> >         setting group sid S-1-5-21-2565301635-92579091-311991264-514
> > from
> > rid 514
> > [2006/07/05 09:03:16, 3] smbd/sec_ctx.c:(386)
> >   pop_sec_ctx (0, 0) - sec_ctx_stack_ndx = 0
> > [2006/07/05 09:03:16, 1] auth/auth_util.c:(876)
> >   User root arao in passdb, but getpwnam() fails!
> > [2006/07/05 09:03:16, 5] auth/auth_util.c:(1511)
> >   attempting to free (and zero) a server_info structure
> > [2006/07/05 09:03:16, 0] smbd/server.c:(829)
> >   ERROR: failed to setup guest info.
> >
> > ##### log.smbd #######
> >
> > what could be the problem? i know it is somewhere in the
> > password/security
> > layer...
> >
> > i have also tried using security = user and security = share. even tried
> >
> > removing the user map file.
> >
> > nmbd start fine, it is only smbd.
> >
> > $ smbclient -L ganga
> >
> > Error connecting to 158.x.x.x (Connection refused)
> > Connection to ganga failed
> >
> > could you please provide some pointers as to what is going wrong?
> >
> > thanks in advance,
> >
> > cheers
> > anand
> >
>
>
> The users you've specified as guest need to be accessible to samba. If you
> are authenticating against domain controller you'll need to do a net rpc
> join , so that the Samba can access the DC to get info about the user.
>
> Similar arguments apply to any other athentication mechanism you use.
>
> For local authentication you'll need to add the user using smbpasswd.
>
> regards,
> DJ
>



-- 
Conscience is a safe guide only when God is the guide of Conscience


More information about the samba-technical mailing list