[Samba] smbclient/samba not working properly

Vasant Tiwari vasant at iitk.ac.in
Mon Jun 28 17:45:31 GMT 2004


Hi,
 If this has been answered already please point me to the right place.

The thing is I am having problems getting smbclient from samba-2.2.8a 
package to work properly. I have used Red Hat 9, Suse 8 and Gentoo before 
migrating to LFS 5.0. In all earlier distributions it worked fine so I 
think the problem might be LFS specific though my mind refuses to believe 
this.

Synopsis of the problem:

LFS release 5.0
Samba Version 2.2.8a

[root at zion ~]# smbclient -M zion
added interface ip=172.26.112.41 bcast=172.26.255.255 nmask=255.255.0.0
Got a positive name query response from 172.31.1.11 ( 172.26.112.41 )
message start: ERRSRV - ERRaccess (The requester does not have  the  
necessary  access  rights  within  the specified  context for the 
requested function. The context is defined by the TID or the UID.)

[root at zion ~]# smbclient -d 5 -M zion 
Serverzone is -19800
Initialising global parameters
params.c:pm_process() - Processing configuration file 
"/etc/samba/smb.conf"
Processing section "[global]"
doing parameter workgroup = MSHOME
doing parameter netbios name = zion
handle_netbios_name: set global_myname to: ZION
doing parameter server string = zion
doing parameter message command = /usr/bin/LinPopUp "%f" "%m" %s; rm %s
doing parameter printcap name = lpstat
doing parameter load printers = yes
doing parameter printing = cups
doing parameter log file = /var/log/samba/log.%m
doing parameter max log size = 50
doing parameter security = user
doing parameter encrypt passwords = yes
doing parameter smb passwd file = /etc/samba/private/smbpasswd
doing parameter socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
doing parameter name resolve order = lmhosts hosts wins bcast
doing parameter wins server = 172.31.1.11,172.31.1.12,172.31.1.23
wins_srv_load_list(): Building WINS server list:
172.31.1.11,
172.31.1.12,
172.31.1.23,
3 WINS servers listed.
doing parameter dns proxy = no
pm_process() returned Yes
load_client_codepage: loading codepage 850.
load_unicode_map: loading unicode map for codepage 850.
load_unicode_map: filename /var/lib/samba/codepages/unicode_map.850 does 
not exist.
load_unicode_map: loading unicode map for codepage ISO8859-1.
load_unicode_map: filename /var/lib/samba/codepages/unicode_map.ISO8859-1 
does not exist.
added interface ip=172.26.112.41 bcast=172.26.255.255 nmask=255.255.0.0
Client started (version 2.2.8a).
resolve_lmhosts: Attempting lmhosts lookup for name zion<0x3>
getlmhostsent: lmhost entry: 127.0.0.1 localhost 
resolve_wins: Attempting wins lookup for name zion<0x3>
resolve_wins: WINS server == <172.31.1.11>
bind succeeded on port 0
Sending a packet of len 50 to (172.31.1.11) on port 137
Received a packet of len 62 from (172.31.1.11) port 137
nmb packet from 172.31.1.11(137) header: id=15953 opcode=Query(0) 
response=Yes
    header: flags: bcast=No rec_avail=Yes rec_des=Yes trunc=No auth=Yes
    header: rcode=0 qdcount=0 ancount=1 nscount=0 arcount=0
    answers: nmb_name=ZION<03> rr_type=32 rr_class=1 ttl=0
    answers   0 char @...p)   hex 4000AC1A7029
Got a positive name query response from 172.31.1.11 ( 172.26.112.41 )
Connecting to 172.26.112.41 at port 139
socket option SO_KEEPALIVE = 0
socket option SO_REUSEADDR = 0
socket option SO_BROADCAST = 0
socket option TCP_NODELAY = 1
socket option IPTOS_LOWDELAY = 0
socket option IPTOS_THROUGHPUT = 0
socket option SO_SNDBUF = 16384
socket option SO_RCVBUF = 16384
socket option SO_SNDLOWAT = 1
socket option SO_RCVLOWAT = 1
socket option SO_SNDTIMEO = 0
socket option SO_RCVTIMEO = 0
Sent session request
size=0
smb_com=0x0
smb_rcls=0
smb_reh=0
smb_err=0
smb_flg=0
smb_flg2=0
smb_tid=0
smb_pid=0
smb_uid=0
smb_mid=0
smt_wct=0
smb_bcc=0
size=35
smb_com=0xd5
smb_rcls=2
smb_reh=0
smb_err=4
smb_flg=136
smb_flg2=1
smb_tid=65535
smb_pid=976
smb_uid=0
smb_mid=1
smt_wct=0
smb_bcc=0
message start: ERRSRV - ERRaccess (The requester does not have  the  
necessary  access  rights  within  the specified  context for the 
requested function. The context is defined by the TID or the UID.)


Here is my smb.conf
[root at zion ~]# cat /etc/samba/smb.conf
[global]
        netbios name = zion
        workgroup = MSHOME
        oslevel = 64
        preferred master = yes
        domain master = yes
        local master =yes
        security = user
        encrypt passwords = yes
        domain logons = yes
        log file = /var/log/log.%m
        log level = 1
        logon path = \\%N\home\%u\windows
    logon drive = H:
    logon home = \\homeserver\%u\windows
    logon script = logon.cmd
[netlogon]
      path = /var/lib/samba/netlogon
      read only = yes
      write list = ntadmin
[profiles]
      path = /var/lib/samba/ntprofile
      read only = no
      create mask = 0600
      directory mask = 0700
#; World writable share for testing
#[tmp]
#comment = Temporary file space
#        path = /tmp
#        read only = no
#        public = yes
#[home]
#comment = Users' home directories
#        path = /home
#        read only = no
#        public = no


Any help or suggestion is invited.
A search led me to a posting with similar problem but no solutions.

What especially bothers me is that I'm able to send messages to other 
people using Windows or other Linux distros like Gentoo or Red Hat but 
neither of the 3 LFS users in my knowledge on my LAN are able to send 
messages to each other. I mean only LFS machines seem to not recieve the 
messages.

-- 
With Regards 
Vasant Tiwari
@
QOTD:	"Don't let your mind wander -- it's too little to be let out alone."


More information about the samba mailing list