* Re: samba, smbmount, smbfs & 2.0.34 (PR#8062)
[not found] <19980630065909Z12607238-7419+4785@samba.anu.edu.au>
@ 1998-06-30 8:42 ` Tom Holroyd
0 siblings, 0 replies; only message in thread
From: Tom Holroyd @ 1998-06-30 8:42 UTC (permalink / raw)
To: samba-bugs; +Cc: axp-list
I'm running Linux 2.0.34, patched from RedHat 5.0 (2.0.32).
If you have compiled smbfs support into your kernel (I did mine as a
module), you'll find that you can't mount smb shares because the smbmount
program is missing (from RedHat's distribution).
If you look for smbmount in the Samba distribution, you'll find that it
won't compile unless you have kernel 2.1.70 or better, and if you read the
Makefile, you'll be directed to smbfs-2.0.2 on
ftp://ftp.gwdg.de/pub/linux/misc/smbfs
and you'll discover that this doesn't compile either. It turns out that
it's just a bunch of #include file inconsistencies. I suspect that's the
only problem with the Samba distribution as well. You can get smbmount to
compile if you replace the #includes at the top with these:
------------------------------
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <pwd.h>
#include <grp.h>
#include <unistd.h>
#include <ctype.h>
#include <mntent.h>
#include <fcntl.h>
#include <netdb.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <sys/param.h>
#include <sys/errno.h>
#include <sys/mount.h>
#include <sys/socket.h>
#include <linux/smb.h>
#include <linux/smb_mount.h>
#include <asm/byteorder.h>
------------------------------
That'll do it. The smbfs module could use some better error checking
though. When I give an invalid password I get a /var/log/messages entry
that reads
kernel: smb_dont_catch_keepalive: server->data_ready == NULL
Duh.
Hey, I have Win95 shares mounted on my Alpha. Cool.
Dr. Tom Holroyd
Behavior Control Lab, Human Informatics Dept. The basis of
National Institute of Bioscience and Human-Technology stability is
1-1 Higashi, Tsukuba-shi, Ibaraki 305, Japan instability.
The 9th Amendment of the U.S. Constitution:
"The enumeration in the Constitution, of certain rights, shall not be
construed to deny or disparage others retained by the people."
^ permalink raw reply [flat|nested] only message in thread