2 !== DNIX.txt for Samba release 2.2.0a 23 Jun 2001
4 DNIX has a problem with seteuid() and setegid(). These routines are
5 needed for Samba to work correctly, but they were left out of the DNIX
6 C library for some reason.
8 For this reason Samba by default defines the macro NO_EID in the DNIX
9 section of includes.h. This works around the problem in a limited way,
10 but it is far from ideal, some things still won't work right.
12 To fix the problem properly you need to assemble the following two
13 functions and then either add them to your C library or link them into
16 put this in the file setegid.s:
32 put this in the file seteuid.s:
47 after creating the above files you then assemble them using
52 that should produce the files seteuid.o and setegid.o
54 then you need to add these to the LIBSM line in the DNIX section of
55 the Samba Makefile. Your LIBSM line will then look something like this:
57 LIBSM = setegid.o seteuid.o -ln
59 You should then remove the line:
63 from the DNIX section of includes.h
65 Then recompile and try it out!
67 Note that this file was derived from an email from Peter Olsson
68 <pol@leissner.se>. I don't have DNIX myself, so you're probably better
69 off contacting Peter if you have problems.