[olug] Reversed file serving Linux to Windows instead of Windows to Linux
Jon H. Larsen
relayer at omahadirect.net
Tue Jul 9 20:01:42 UTC 2002
Here is what I did using RH72, and Samba 2.2.2.
I made smbmount suid root. (I believe this is it)
chmod u+s /usr/bin/smbmount
It should look somewhat like this:
-rwsr-xr-x 1 root root 422988 Dec 31 2001 /usr/bin/smbmount
Next, I created a mount point in my home folder using the following
convention - ~/mnt/host/share
Then, I made a script called mntbigdrive so I could mount my drive:
---- cut here mntbigdrive ----
echo "Mounting Samba Share"
echo "Mounting BIGDrive ..."
smbmount //fileserver/bigdrive ~/mnt/fileserver/bigdrive -o username=relayer
---- cut here ----
Place the script in your ~/bin folder, and make sure you make it
executable to yourself: chmod 740 mntbigdrive
If you don't have a bin folder, make one. It should be in your
PATH (I didn't have to add it to the PATH on RH).
When the script is run, it should prompt you for a password.
If you want to include your password in the script (heaven forbid!), you
can change the -o option: -o username=relayer,password=password
(you can even say '-o ro' for read-only)
Hope this helps...
On Tue, 9 Jul 2002, Don Kauffman wrote:
> Date: Tue, 09 Jul 2002 14:40:47 -0500
> From: Don Kauffman <dkauffman at tconl.com>
> Reply-To: olug at olug.org
> To: OLUG <olug at olug.org>
> Subject: [olug] Reversed file serving Linux to Windows instead of
> Windows to Linux
> I've been trying to think my way through this one. I'd like to set up
> the ability of going from Linux to windows (98) to get a file. I've got
> it set up to go from Windows to Linux with Samba. I realize I'd need to
> mount the Windows drives in Linux. Is there a faq on this that someone
> could point me to?
> Thanks in advance!
[ Jon H. Larsen - email: relayer at omahadirect dot net ]
[ ICQ#: 10412618 - http://www.animesunday.org/jonl ]
[ PGP Pubkey - http://www.animesunday.org/jonl/relayerpubkey.txt ]
For help contact olug-help at olug.org - run by ezmlm
to unsubscribe, send mail to olug-unsubscribe at olug.org
or `mail olug-unsubscribe at olug.org < /dev/null`
(c)1998-2002 OLUG http://www.olug.org
More information about the OLUG