smbpasswd fails on Samba 2.0.3, HPUX 10.20

simonst at WellsFargo.COM simonst at WellsFargo.COM
Tue May 18 21:57:44 GMT 1999


I have been unable to make smbpasswd work on my new Samba version 2.0.3
(HPUX 10.20).
The smb.conf was modified from a working version on Linux (version
1.9.18p8).

The relevant (I hope) output from smbpasswd, smb.log and testparms follow
below.

Are the log messages about "Couldn't set effective gid to -24 currently set
to (real=0,eff=0)"
and "Can't become connected user!" the problem, or just a symptom?

Also, running testparm on Linux shows a [IPC$] share, but the testparm on
the HP doesn't.

Any help would be greatly appreciated!

============================================================================
================

$ smbpasswd
doing parameter security = user
doing parameter workgroup = WORKGROUP
doing parameter server string = %h server (Samba %v)
doing parameter socket options = IPTOS_LOWDELAY TCP_NODELAY SO_SNDBUF=4096
SO_RCVBUF=4096
doing parameter encrypt passwords = yes
doing parameter wins support = no
doing parameter wins server = 10.26.4.35
doing parameter os level = 0
doing parameter domain master = no
doing parameter local master = no
doing parameter preferred master = no
doing parameter dns proxy = no
doing parameter preserve case = yes
doing parameter short preserve case = yes
pm_process() returned Yes
Added interface ip=10.26.54.233 bcast=10.26.54.255 nmask=255.255.255.0
Old SMB password:
New SMB password:
Retype new SMB password:
Connecting to 127.0.0.1 at port 139
machine 127.0.0.1 rejected the tconX on the IPC$ share. Error was : ERRSRV -
ERRbadpw (Bad password
- name/password pair in a Tree Connect or Session Setup are invalid.).
Failed to change password for simonst
$



============================================================================
================
from smb.log:

[1999/05/20 14:28:36, 2] lib/interface.c:(213)
  Added interface ip=10.26.54.233 bcast=10.26.54.255 nmask=255.255.255.0
[1999/05/20 14:28:36, 1] smbd/files.c:(218)
  file_init: Information only: requested 10000 open files, 1014 are
available.
[1999/05/20 14:28:36, 3] smbd/server.c:(666)
  loaded services
[1999/05/20 14:28:36, 0] lib/util_sock.c:(130)
  Unknown socket option IPTOS_LOWDELAY
[1999/05/20 14:28:36, 3] locking/shmem_sysv.c:(702)
  Initialised IPC area of size 1048576
[1999/05/20 14:28:36, 2] smbd/server.c:(702)
  Changed root to /
[1999/05/20 14:28:36, 3] smbd/oplock.c:(73)
  open_oplock_ipc: opening loopback UDP socket.
[1999/05/20 14:28:36, 3] lib/util_sock.c:(683)
  bind succeeded on port 0
[1999/05/20 14:28:36, 3] smbd/oplock.c:(100)
  open_oplock ipc: pid = 1012, global_oplock_port = 1648
[1999/05/20 14:28:36, 3] smbd/process.c:(924)
  priming nmbd
[1999/05/20 14:28:37, 3] lib/util_sock.c:(607)
  sending a packet of len 1 to (127.0.0.1) on port 137 of type DGRAM
[1999/05/20 14:28:37, 3] smbd/process.c:(565)
  Transaction 0 of length 76
[1999/05/20 14:28:37, 2] smbd/reply.c:(94)
  netbios connect: name1=127.0.0.1        name2=RAVEN
[1999/05/20 14:28:37, 3] smbd/process.c:(565)
  Transaction 1 of length 168
[1999/05/20 14:28:37, 3] smbd/process.c:(402)
  switch message SMBnegprot (pid 1012)
[1999/05/20 14:28:37, 3] smbd/negprot.c:(332)
  Requested protocol [PC NETWORK PROGRAM 1.0]
[1999/05/20 14:28:37, 3] smbd/negprot.c:(332)
  Requested protocol [MICROSOFT NETWORKS 1.03]
[1999/05/20 14:28:37, 3] smbd/negprot.c:(332)
  Requested protocol [MICROSOFT NETWORKS 3.0]
[1999/05/20 14:28:37, 3] smbd/negprot.c:(332)
  Requested protocol [LANMAN1.0]
[1999/05/20 14:28:37, 3] smbd/negprot.c:(332)
  Requested protocol [LM1.2X002]
[1999/05/20 14:28:37, 3] smbd/negprot.c:(332)
  Requested protocol [Samba]
[1999/05/20 14:28:37, 3] smbd/negprot.c:(409)
  Selected protocol NT LANMAN 1.0
[1999/05/20 14:28:37, 3] smbd/process.c:(565)
  Transaction 2 of length 78
[1999/05/20 14:28:37, 3] smbd/process.c:(402)
  switch message SMBsesssetupX (pid 1012)
[1999/05/20 14:28:37, 3] smbd/reply.c:(674)
  Domain=[]  NativeOS=[Unix] NativeLanMan=[Samba]
[1999/05/20 14:28:37, 3] smbd/reply.c:(679)
  sesssetupX:name=[]
[1999/05/20 14:28:37, 3] smbd/password.c:(192)
  nobody is in 0 groups:
[1999/05/20 14:28:37, 3] smbd/password.c:(270)
  uid -2 registered to name nobody
[1999/05/20 14:28:37, 3] smbd/password.c:(272)
  Clearing default real name
[1999/05/20 14:28:37, 3] smbd/process.c:(565)
  Transaction 3 of length 69
[1999/05/20 14:28:37, 3] smbd/process.c:(402)
  switch message SMBtconX (pid 1012)
[1999/05/20 14:28:37, 3] smbd/password.c:(794)
  ACCEPTED: guest account and guest ok
[1999/05/20 14:28:37, 3] smbd/service.c:(386)
  Connect path is /tmp
[1999/05/20 14:28:37, 0] smbd/uid.c:(104)
  Couldn't set effective gid to -24 currently set to (real=0,eff=0)
[1999/05/20 14:28:37, 0] smbd/service.c:(425)
  Can't become connected user!
[1999/05/20 14:28:37, 3] smbd/error.c:(133)
  error packet at line 162 cmd=117 (SMBtconX) eclass=2 ecode=2
[1999/05/20 14:28:37, 3] smbd/error.c:(143)
  error string = Invalid argument
[1999/05/20 14:28:37, 3] smbd/process.c:(755)
  end of file from client
[1999/05/20 14:28:37, 2] smbd/server.c:(406)
  Closing connections
[1999/05/20 14:28:37, 3] smbd/server.c:(431)
  Server exit (normal exit)


============================================================================
================
testparm output:

$ testparm
Load smb config files from /opt/samba/lib/smb.conf
doing parameter security = user
doing parameter workgroup = WORKGROUP
doing parameter server string = %h server (Samba %v)
doing parameter socket options = IPTOS_LOWDELAY TCP_NODELAY SO_SNDBUF=4096
SO_RCVBUF=4096
doing parameter encrypt passwords = yes
doing parameter wins support = no
doing parameter wins server = 10.26.4.35
doing parameter os level = 0
doing parameter domain master = no
doing parameter local master = no
doing parameter preferred master = no
doing parameter dns proxy = no
doing parameter preserve case = yes
doing parameter short preserve case = yes
Processing section "[printers]"
doing parameter comment = All Printers
doing parameter browseable = no
doing parameter path = /tmp
doing parameter printable = yes
doing parameter public = no
doing parameter writable = no
doing parameter create mode = 0700
Processing section "[bwv]"
doing parameter path = /tmp/work
doing parameter writable = no
pm_process() returned Yes
Loaded services file OK.
Press enter to see a dump of your service definitions

# Global parameters
        workgroup = WORKGROUP
        netbios name =
        netbios aliases =
        server string = %h server (Samba %v)
        interfaces =
        bind interfaces only = No
        security = USER
        encrypt passwords = Yes
        update encrypted = No
        use rhosts = No
        min passwd length = 5
        map to guest = Never
        null passwords = No
        password server =
        smb passwd file = /opt/samba/private/smbpasswd
        hosts equiv =
        root directory = /
        passwd program = /bin/passwd
        passwd chat = *old*password* %o\n *new*password* %n\n *new*password*
%n\n *changed*
        passwd chat debug = No
        username map =
        password level = 0
        username level = 0
        unix password sync = No
        log level = 3
        syslog = 1
        syslog only = No
        log file = /opt/samba/log/smb.log
        max log size = 5000
        timestamp logs = Yes
        protocol = NT1
        read bmpx = Yes
        read raw = Yes
        write raw = Yes
        nt smb support = Yes
        nt pipe support = Yes
        nt acl support = No
        announce version = 4.2
        announce as = NT
        max mux = 50
        max xmit = 65535
        name resolve order = lmhosts host wins bcast
        max packet = 65535
        max ttl = 259200
        max wins ttl = 518400
        min wins ttl = 21600
        time server = No
        change notify timeout = 60
        deadtime = 0
        getwd cache = Yes
        keepalive = 300
        lpq cache time = 10
        max disk size = 0
        max open files = 10000
        read prediction = No
        read size = 16384
        shared mem size = 1048576
        socket options = IPTOS_LOWDELAY TCP_NODELAY SO_SNDBUF=4096
SO_RCVBUF=4096
        stat cache size = 50
        load printers = Yes
        printcap name = /etc/printcap
        printer driver file = /opt/samba/lib/printers.def
        strip dot = No
        character set =
        mangled stack = 50
        coding system =
        client code page = 850
        stat cache = Yes
        domain groups =
        domain admin group =
        domain guest group =
        domain admin users =
        domain guest users =
        machine password timeout = 604800
        add user script =
        delete user script =
        logon script =
        logon path = \\%N\%U\profile
        logon drive =
        logon home = \\%N\%U
        domain logons = No
        os level = 0
        lm announce = Auto
        lm interval = 60
        preferred master = No
        local master = No
        domain master = No
        browse list = Yes
        dns proxy = No
        wins proxy = No
        wins server = 10.26.4.35
        wins support = No
        kernel oplocks = Yes
        ole locking compatibility = Yes
        smbrun = /opt/samba/bin/smbrun
        config file =
        preload =
        lock dir = /var/opt/samba/locks
        default service =
        message command =
        dfree command =
        valid chars =
        remote announce =
        remote browse sync =
        socket address = 0.0.0.0
        homedir map = auto.home
        time offset = 0
        unix realname = No
        NIS homedir = No
        panic action =
        comment =
        path =
        alternate permissions = No
        revalidate = No
        username =
        guest account = nobody
        invalid users = root
        valid users =
        admin users =
        read list =
        write list =
        force user =
        force group =
        read only = Yes
        create mask = 0744
        force create mode = 00
        directory mask = 0755
        force directory mode = 00
        guest only = No
        guest ok = No
        only user = No
        hosts allow =
        hosts deny =
        status = Yes
        max connections = 0
        min print space = 0
        strict sync = No
        sync always = No
        print ok = No
        postscript = No
        printing = bsd
        print command = lp -c -d%p %s; rm %s
        lpq command = lpstat -o%p
        lprm command = cancel %p-%j
        lppause command =
        lpresume command =
        queuepause command = disable %p
        queueresume command = enable %p
        printer name =
        printer driver = NULL
        printer driver location =
        default case = lower
        case sensitive = No
        preserve case = Yes
        short preserve case = Yes
        mangle case = No
        mangling char = ~
        hide dot files = Yes
        delete veto files = No
        veto files =
        hide files =
        veto oplock files =
        map system = No
        map hidden = No
        map archive = Yes
        mangled names = Yes
        mangled map =
        browseable = Yes
        blocking locks = Yes
        fake oplocks = No
        locking = Yes
        oplocks = Yes
        strict locking = No
        share modes = Yes
        copy =
        include =
        exec =
        postexec =
        root preexec =
        root postexec =
        available = Yes
        volume =
        fstype = NTFS
        set directory = No
        wide links = Yes
        follow symlinks = Yes
        dont descend =
        magic script =
        magic output =
        delete readonly = No
        dos filetimes = No
        dos filetime resolution = No
        fake directory create times = No

[printers]
        comment = All Printers
        path = /tmp
        create mask = 0700
        print ok = Yes
        browseable = No

[bwv]
        path = /tmp/work


More information about the samba mailing list