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