> The O'Reilly "Using Samba" book, recommend not to include smbmount
> support as it is for Linux only:
> 
> "This feature wasn't being maintained at the time the book was
> written, so the Samba team made it an optional feature and provided
> smbwrapper instead. The smbwrapper feature works on more Unix
> platforms than smbmount, so you'll usually want to use
> --with-smbwrapper instead of this option"
> 
> Is it still true ?

No.  smbmount and the smbfs filesystem are being maintained (albeit
for Linux only, AFAIK), and work pretty well on Linux.  Actually,
smbwrapper now *doesn't* work on Linux.  (The first edition of
Using Samba is _slightly_ out of date. ;-)

Support for smbfs should be included in your Linux kernel. I expect
that all distributions include it nowadays.  (Someone please tell
me if this is wrong.)

You need to install Samba, compiled with the --with-smbmount option
to the configure program. Make sure you have a correct smb.conf 
file for Samba after installation.

>From there, you can use smbmount to mount SMB shares (from Windows
systems or Samba servers) in your Linux filesystem.  A typical
smbmount command might look something like this:

smbmount //maya/d d -o credentials=/home/jay/.smbpw,uid=jay,gid=jay,fmask=664,dmask=775

This mounts the \\maya\d share on the directory named d in the current
working directory on the Linux system. Authentication credentials
(username, password) are kept in /home/jay/.smbpw.  This method is
a little more secure than putting the password in plaintext on the
command line(!).  The rest of the options are for specifying what UID,
GID and permissions to give to the files in the mounted share.

See the smbmount manual page for more details.

Jay Ts
author, Using Samba, 2nd edition

-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba

Reply via email to