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
13 TITLE="Group mapping HOWTO"
14 HREF="groupmapping.html"><LINK
16 TITLE="Samba and other CIFS clients"
17 HREF="other-clients.html"></HEAD
28 SUMMARY="Header navigation table"
37 >SAMBA Project Documentation</TH
45 HREF="groupmapping.html"
59 HREF="other-clients.html"
74 >Chapter 21. Portability</H1
76 >Samba works on a wide range of platforms but the interface all the
77 platforms provide is not always compatible. This chapter contains
78 platform-specific information about compiling and using samba.</P
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
115 If you run an old version of SCO Unix then you may need to get important
116 TCP/IP patches for Samba to work correctly. Without the patch, you may
117 encounter corrupt data transfers using samba.</P
119 >The patch you need is UOD385 Connection Drivers SLS. It is available from
120 SCO (ftp.sco.com, directory SLS, files uod385a.Z and uod385a.ltr.Z).</P
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
236 >21.4. RedHat Linux Rembrandt-II</H1
238 >By default RedHat Rembrandt-II during installation adds an
239 entry to /etc/hosts as follows:
241 CLASS="PROGRAMLISTING"
242 > 127.0.0.1 loopback "hostname"."domainname"</PRE
245 >This causes Samba to loop back onto the loopback interface.
246 The result is that Samba fails to communicate correctly with
247 the world and therefor may fail to correctly negotiate who
248 is the master browse list holder and who is the master browser.</P
250 >Corrective Action: Delete the entry after the word loopback
251 in the line starting 127.0.0.1</P
259 SUMMARY="Footer navigation table"
270 HREF="groupmapping.html"
279 HREF="samba-howto-collection.html"
288 HREF="other-clients.html"
298 >Group mapping HOWTO</TD
308 >Samba and other CIFS clients</TD