1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
8 CONTENT="Modular DocBook HTML Stylesheet Version 1.77"><LINK
10 TITLE="SAMBA Project Documentation"
11 HREF="samba-howto-collection.html"><LINK
14 HREF="appendixes.html"><LINK
17 HREF="appendixes.html"><LINK
19 TITLE="Samba and other CIFS clients"
20 HREF="other-clients.html"></HEAD
31 SUMMARY="Header navigation table"
40 >SAMBA Project Documentation</TH
48 HREF="appendixes.html"
62 HREF="other-clients.html"
77 >Chapter 24. Portability</H1
79 >Samba works on a wide range of platforms but the interface all the
80 platforms provide is not always compatible. This chapter contains
81 platform-specific information about compiling and using samba.</P
91 >HP's implementation of supplementary groups is, er, non-standard (for
92 hysterical reasons). There are two group files, /etc/group and
93 /etc/logingroup; the system maps UIDs to numbers using the former, but
94 initgroups() reads the latter. Most system admins who know the ropes
95 symlink /etc/group to /etc/logingroup (hard link doesn't work for reasons
96 too stupid to go into here). initgroups() will complain if one of the
97 groups you're in in /etc/logingroup has what it considers to be an invalid
98 ID, which means outside the range [0..UID_MAX], where UID_MAX is (I think)
99 60000 currently on HP-UX. This precludes -2 and 65534, the usual 'nobody'
102 >If you encounter this problem, make sure that the programs that are failing
103 to initgroups() be run as users not in any groups with GIDs outside the
106 >This is documented in the HP manual pages under setgroups(2) and passwd(4).</P
108 >On HPUX you must use gcc or the HP Ansi compiler. The free compiler
109 that comes with HP-UX is not Ansi compliant and cannot compile
122 If you run an old version of SCO Unix then you may need to get important
123 TCP/IP patches for Samba to work correctly. Without the patch, you may
124 encounter corrupt data transfers using samba.</P
126 >The patch you need is UOD385 Connection Drivers SLS. It is available from
127 SCO (ftp.sco.com, directory SLS, files uod385a.Z and uod385a.ltr.Z).</P
138 >DNIX has a problem with seteuid() and setegid(). These routines are
139 needed for Samba to work correctly, but they were left out of the DNIX
140 C library for some reason.</P
142 >For this reason Samba by default defines the macro NO_EID in the DNIX
143 section of includes.h. This works around the problem in a limited way,
144 but it is far from ideal, some things still won't work right.</P
147 To fix the problem properly you need to assemble the following two
148 functions and then either add them to your C library or link them into
152 put this in the file <TT
158 CLASS="PROGRAMLISTING"
173 >put this in the file <TT
179 CLASS="PROGRAMLISTING"
194 >after creating the above files you then assemble them using</P
206 >that should produce the files <TT
215 >then you need to add these to the LIBSM line in the DNIX section of
216 the Samba Makefile. Your LIBSM line will then look something like this:</P
219 CLASS="PROGRAMLISTING"
220 >LIBSM = setegid.o seteuid.o -ln</PRE
224 You should then remove the line:</P
227 CLASS="PROGRAMLISTING"
231 >from the DNIX section of <TT
243 >24.4. RedHat Linux Rembrandt-II</H1
245 >By default RedHat Rembrandt-II during installation adds an
246 entry to /etc/hosts as follows:
248 CLASS="PROGRAMLISTING"
249 > 127.0.0.1 loopback "hostname"."domainname"</PRE
252 >This causes Samba to loop back onto the loopback interface.
253 The result is that Samba fails to communicate correctly with
254 the world and therefor may fail to correctly negotiate who
255 is the master browse list holder and who is the master browser.</P
257 >Corrective Action: Delete the entry after the word loopback
258 in the line starting 127.0.0.1</P
266 SUMMARY="Footer navigation table"
277 HREF="appendixes.html"
286 HREF="samba-howto-collection.html"
295 HREF="other-clients.html"
311 HREF="appendixes.html"
319 >Samba and other CIFS clients</TD