* Re: samba, smbmount, smbfs & 2.0.34
@ 1998-07-01 6:50 Tom Holroyd
0 siblings, 0 replies; only message in thread
From: Tom Holroyd @ 1998-07-01 6:50 UTC (permalink / raw)
To: axp-list
My apologies if this appears twice; I cc'd this to axp-list yesterday and
it didn't show up (that I know of).
I'm running Linux 2.0.34, patched from RedHat 5.0.
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>
------------------------------
You'll also need
------------------------------
#define SMB_IOC_GETMOUNTUID _IOR('u', 1, uid_t)
------------------------------
to get smbumount to compile, and there's a bug in smbfs in this kernel
related to the uid returned by the GETMOUNTUID ioctl call: it returns
a short instead of an int, leaving a half-word of garbage. So stick
mount_uid &= 0xFFFF;
after the ioctl.
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. I backed up my
laptop's hard disk to the MO disk on my Alpha using "cp -a"..
I love this stuff.
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
only message in thread, other threads:[~1998-07-01 6:50 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-07-01 6:50 samba, smbmount, smbfs & 2.0.34 Tom Holroyd
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox