1 <!DOCTYPE HTML PUBLIC
"-//W3C//DTD HTML 4.01 Transitional//EN">
8 CONTENT=
"Modular DocBook HTML Stylesheet Version 1.76b+
11 TITLE=
"SAMBA Project Documentation"
12 HREF=
"samba-howto-collection.html"><LINK
15 HREF=
"appendixes.html"><LINK
18 HREF=
"appendixes.html"><LINK
20 TITLE=
"Samba and other CIFS clients"
21 HREF=
"other-clients.html"></HEAD
32 SUMMARY=
"Header navigation table"
41 >SAMBA Project Documentation
</TH
49 HREF=
"appendixes.html"
63 HREF=
"other-clients.html"
76 NAME=
"PORTABILITY">Chapter
23. Portability
</H1
78 >Samba works on a wide range of platforms but the interface all the
79 platforms provide is not always compatible. This chapter contains
80 platform-specific information about compiling and using samba.
</P
86 NAME=
"AEN3139">23.1. HPUX
</H1
88 >HP's implementation of supplementary groups is, er, non-standard (for
89 hysterical reasons). There are two group files, /etc/group and
90 /etc/logingroup; the system maps UIDs to numbers using the former, but
91 initgroups() reads the latter. Most system admins who know the ropes
92 symlink /etc/group to /etc/logingroup (hard link doesn't work for reasons
93 too stupid to go into here). initgroups() will complain if one of the
94 groups you're in in /etc/logingroup has what it considers to be an invalid
95 ID, which means outside the range [
0..UID_MAX], where UID_MAX is (I think)
96 60000 currently on HP-UX. This precludes -
2 and
65534, the usual 'nobody'
99 >If you encounter this problem, make sure that the programs that are failing
100 to initgroups() be run as users not in any groups with GIDs outside the
103 >This is documented in the HP manual pages under setgroups(
2) and passwd(
4).
</P
105 >On HPUX you must use gcc or the HP Ansi compiler. The free compiler
106 that comes with HP-UX is not Ansi compliant and cannot compile
114 NAME=
"AEN3145">23.2. SCO Unix
</H1
117 If you run an old version of SCO Unix then you may need to get important
118 TCP/IP patches for Samba to work correctly. Without the patch, you may
119 encounter corrupt data transfers using samba.
</P
121 >The patch you need is UOD385 Connection Drivers SLS. It is available from
122 SCO (ftp.sco.com, directory SLS, files uod385a.Z and uod385a.ltr.Z).
</P
129 NAME=
"AEN3149">23.3. DNIX
</H1
131 >DNIX has a problem with seteuid() and setegid(). These routines are
132 needed for Samba to work correctly, but they were left out of the DNIX
133 C library for some reason.
</P
135 >For this reason Samba by default defines the macro NO_EID in the DNIX
136 section of includes.h. This works around the problem in a limited way,
137 but it is far from ideal, some things still won't work right.
</P
140 To fix the problem properly you need to assemble the following two
141 functions and then either add them to your C library or link them into
145 put this in the file
<TT
151 CLASS=
"PROGRAMLISTING"
166 >put this in the file
<TT
172 CLASS=
"PROGRAMLISTING"
187 >after creating the above files you then assemble them using
</P
199 >that should produce the files
<TT
208 >then you need to add these to the LIBSM line in the DNIX section of
209 the Samba Makefile. Your LIBSM line will then look something like this:
</P
212 CLASS=
"PROGRAMLISTING"
213 >LIBSM = setegid.o seteuid.o -ln
</PRE
217 You should then remove the line:
</P
220 CLASS=
"PROGRAMLISTING"
224 >from the DNIX section of
<TT
234 NAME=
"AEN3178">23.4. RedHat Linux Rembrandt-II
</H1
236 >By default RedHat Rembrandt-II during installation adds an
237 entry to /etc/hosts as follows:
239 CLASS=
"PROGRAMLISTING"
240 > 127.0.0.1 loopback
"hostname".
"domainname"</PRE
243 >This causes Samba to loop back onto the loopback interface.
244 The result is that Samba fails to communicate correctly with
245 the world and therefor may fail to correctly negotiate who
246 is the master browse list holder and who is the master browser.
</P
248 >Corrective Action: Delete the entry after the word loopback
249 in the line starting
127.0.0.1</P
257 SUMMARY=
"Footer navigation table"
268 HREF=
"appendixes.html"
277 HREF=
"samba-howto-collection.html"
286 HREF=
"other-clients.html"
302 HREF=
"appendixes.html"
310 >Samba and other CIFS clients
</TD