Florian G. Pflug fgp at
Tue Nov 17 12:15:11 GMT 1998

> Hi-
> I'm working on a graphical interface to smbclient/smbmount/smbumount. 
> As part of its operation, it will mount shares in directories under a
> user's home directory.
> I've run into a bit of a problem regarding the distributions of the
> mount utilities, specifically on Redhat 5.1/5.2.  They are shipping an
> RPM with smbfs 2.0.1, which is known to have a security hole... so it
> should not be setuid root.  I have found an RPM of smbfs 2.0.2, but it
> doesn't contain the smbumount utility- it says instead that umount works
> just as well. This is true, but only if you are root.  Otherwise, it
> complains that the mount is not listed in /etc/fstab.  I don't want to
> have my program be setuid root.  It would be insecure, and shouldn't be
> necessary.
> I've also tried, with no success, to compile smbfs 2.0.2 myself (and
> possibly create an RPM).  I get several screens of compiling errors, all
> of which are due to conflicting/duplicate definitions of constants and
> structs.
> Can anyone point me to either (a) a distribution of smbfs 2.0.2 that
> includes smbumount, or (b) suggestions why I can't compile it myself. 
> I'm running RH5.1, 2.0.35 kernel, glibc 2.0.7-29 rpm.
> Thanks in advance.

The problem could be that you are using glibc - the structure of the include
files seem to have changed with libc6/glibc2. Scan the sources, and look for
includes from linux/<some file> sys/<some file> and play around - I got some
programms to compile with libc6 this way...

                                         Greetings, Florian

More information about the samba mailing list