smbwrapper on Irix 6.2

Billinghurst, David (RTD) David.Billinghurst at riotinto.com.au
Wed Oct 21 23:22:41 GMT 1998


Partial success with smbwrapper from samba-2.0.0-alpha13 on Irix 6.2

Some configuration problems with ACLs.  Worked around by editing config.h
(below)

Some confusion due to the multiple ABIs in Irix 6.2
I test samba on a 32 bit Indigo2 so configure using 
	env CC="cc -n32" configure
Needed a couple of trival changes to Makefile to ensure correct flag (-32 or
-n32) was used. (below)

Testing
	ls /smb/   ....  OK

	ls /smb/cru200   ...  OK   another samba server

	ls /smb/cru200/billingd ... OK

	ls /smb/crw427  ...  OK   Win95 PC using user security

	ls /smb/crw427/a ... Cannot access /smb/crw427/cdrom: Invalid
argument (log below)

	ls /smb/crtsfile   ... NT4 SP3 server
			Cannot access directory /smb/CRTSFILE: Permission
denied

+++++++++++++++++++++++++++++++++++++++++
(Mr) David Billinghurst
Comalco Research and Technical Support
PO Box 316, Thomastown, Vic, Australia, 3074
Phone:	+61 3 9469 0642
FAX:	+61 3 9462 2700
Email:	David.Billinghurst at riotinto.com.au



####################### Changes to config.h ###############################
147c147
< /* #undef HAVE___ACL */
---
> #undef HAVE___ACL
165c165
< /* #undef HAVE___FACL */
---
> #undef HAVE___FACL
258c258
< #define HAVE__ACL 1
---
> /* #define HAVE__ACL 1 */
276c276
< /* #undef HAVE__FACL */
---
> #undef HAVE__FACL 
663c663
< /* #undef HAVE_SYS_ACL_H */
---
> #undef HAVE_SYS_ACL_H
######################################################################


################## Hacks to Makefile ###########################
--- Makefile.orig       Wed Oct 21 11:58:58 1998
+++ Makefile    Wed Oct 21 12:07:34 1998
@@ -272,11 +272,11 @@
 
 # this is for IRIX
 .c.po32: # .deps/.dummy
-       @if (: >> $@ || : > $@) >/dev/null 2>&1; then rm -f $@; else \
+       if (: >> $@ || : > $@) >/dev/null 2>&1; then rm -f $@; else \
          dir=`echo $@ | sed 's,/[^/]*$$,,;s,^$$,.,'` $(MAKEDIR); fi
-       @echo Compiling $*.c with -KPIC and -32
-       @$(CC) -32 -I. -I$(srcdir) $(FLAGS) -KPIC -c $< -o $*.po32.o
-       @mv $*.po32.o $@ \
+       echo Compiling $*.c with -KPIC and -32
+       cc -32 -I. -I$(srcdir) $(FLAGS) -KPIC -c $< -o $*.po32.o
+       mv $*.po32.o $@ \
        # -Wp,-MD,.deps/`echo $* | sed s,/,_,g`.P && : >.deps/.stamp
 
 bin/.dummy:
@@ -354,7 +354,7 @@
 
 bin/smbwrapper.so: $(PICOBJS)
        @echo Linking shared library $@
-       @$(LD) -shared -o $@ $(PICOBJS) $(LIBS)
+       @$(LD) -n32 -shared -o $@ $(PICOBJS) $(LIBS)
 
 bin/smbwrapper.32.so: $(PICOBJS32)
        @echo Linking shared library $@
##############################################################


##############  shmsh -d9   #############################
smbsh$ ls /smb/crw427/cdrom
smbw_path(/smb/crw427/cdrom)
smbw_path(/smb/crw427/cdrom)
resolve_name: Attempting lmhosts lookup for name crw427
resolve_name: Attempting host lookup for name crw427
Connecting to 203.4.72.62 at port 139
smbw_error 2 6 (0x6) -> 22
Cannot access /smb/crw427/cdrom: Invalid argument
smbsh$ exit
cru201:18%/var/samba/bin/smbsh -d9
Username: billingd
Password: 
smbsh$ ls /smb/crw427/cdrom
fcntl_lock 2499 7 0 1 2
Lock call successful
fcntl_lock 2499 6 0 1 3
Lock call successful
fcntl_lock 2499 7 0 1 2
Lock call successful
fcntl_lock 2499 6 0 1 3
Lock call successful
Initial cwd from smbw_cwd is /usr/people/billingd
smbw_path(/smb/crw427/cdrom)
cleaning /smb/crw427/cdrom
cleaned /smb/crw427/cdrom (fname=/smb/crw427/cdrom cwd=/usr/people/billingd)
parsed path name=/smb/crw427/cdrom cwd=/usr/people/billingd [crw427] [cdrom]
[\]
smbw_path(/smb/crw427/cdrom)
cleaning /smb/crw427/cdrom
cleaned /smb/crw427/cdrom (fname=/smb/crw427/cdrom cwd=/usr/people/billingd)
parsed path name=/smb/crw427/cdrom cwd=/usr/people/billingd [crw427] [cdrom]
[\]
stat(/smb/crw427/cdrom)
cleaning /smb/crw427/cdrom
cleaned /smb/crw427/cdrom (fname=/smb/crw427/cdrom cwd=/usr/people/billingd)
parsed path name=/smb/crw427/cdrom cwd=/usr/people/billingd [crw427] [cdrom]
[\]
fcntl_lock 2499 7 0 1 2
Lock call successful
fcntl_lock 2499 6 0 1 3
Lock call successful
fcntl_lock 2499 7 0 1 2
Lock call successful
fcntl_lock 2499 6 0 1 3
Lock call successful
fcntl_lock 2499 7 0 1 2
Lock call successful
fcntl_lock 2499 6 0 1 3
Lock call successful
server_n=[crw427] server=[crw427]
 -> server_n=[crw427] server=[crw427]
fcntl_lock 2499 7 0 1 2
Lock call successful
fcntl_lock 2499 6 0 1 3
Lock call successful
resolve_name: Attempting lmhosts lookup for name crw427
startlmhosts: Can't open lmhosts file /var/samba/lib/lmhosts. Error was No
such file or directory
resolve_name: Attempting host lookup for name crw427
Connecting to 203.4.72.62 at port 139
write_socket(3,76)
write_socket(3,76) wrote 76
Sent session request
 session request ok
write_socket(3,168)
write_socket(3,168) wrote 168
size=77
smb_com=0x72
smb_rcls=0
smb_reh=0
smb_err=0
smb_flg=136
smb_flg2=0
smb_tid=0
smb_pid=6023
smb_uid=0
smb_mid=1
smt_wct=17
smb_vwv[0]=7 (0x7)
smb_vwv[1]=515 (0x203)
smb_vwv[2]=256 (0x100)
smb_vwv[3]=26624 (0x6800)
smb_vwv[4]=11 (0xB)
smb_vwv[5]=0 (0x0)
smb_vwv[6]=256 (0x100)
smb_vwv[7]=3840 (0xF00)
smb_vwv[8]=256 (0x100)
smb_vwv[9]=896 (0x380)
smb_vwv[10]=2 (0x2)
smb_vwv[11]=0 (0x0)
smb_vwv[12]=55663 (0xD96F)
smb_vwv[13]=18764 (0x494C)
smb_vwv[14]=48637 (0xBDFD)
smb_vwv[15]=43009 (0xA801)
smb_vwv[16]=2301 (0x8FD)
smb_bcc=8
write_socket(3,137)
write_socket(3,137) wrote 137
size=41
smb_com=0x73
smb_rcls=0
smb_reh=0
smb_err=0
smb_flg=136
smb_flg2=1
smb_tid=0
smb_pid=6023
smb_uid=0
smb_mid=1
smt_wct=3
smb_vwv[0]=255 (0xFF)
smb_vwv[1]=0 (0x0)
smb_vwv[2]=0 (0x0)
smb_bcc=0
 session setup ok
write_socket(3,69)
write_socket(3,69) wrote 69
smbw_error 2 6 (0x6) -> 22
Cannot access /smb/crw427/cdrom: Invalid argument



More information about the samba-ntdom mailing list