Can't smbmount with samba-2.0

Bill Eldridge bill at
Wed Apr 28 05:44:46 GMT 1999

You're using the old smbmount command.
You need the one from Samba 2.0.3 to
use with the new kernel - I got this
to compile and install with the help of
some comments at:

by editing the samba/packaging/RedHat/samba2.spec file
and adding a "--with-smbmount" flag to the configure:

./configure --prefix=/usr --libdir=/etc --with-lockdir=/var/lock/samba
--with-privatedir=/etc --with-swatdir=/usr/share/swat --with-smbwrapper
--with-automount --with-quotas --with-smbmount

I then magled the script a little since it didnt'
quite do permissions right on my machine.

[root at baal RedHat]# diff
< #( cd ../../.. ; chown -R ${USERID}.${GRPID} ${SRCDIR}/samba-2.0.3 )
< #( cd ../../.. ; tar czvf ${SRCDIR}/samba-2.0.3.tar.gz samba-2.0.3 )
< ( cd ../../.. ; tar czvf ${SRCDIR}/samba-2.0.3.tar.gz samba-2.0.3 )
> ( cd ../../.. ; chown -R ${USERID}.${GRPID} ${SRCDIR}/samba-PVERSION )
> ( cd ../../.. ; tar czvf ${SRCDIR}/samba-PVERSION.tar.gz samba-PVERSION )
< ( cd ../../.. ; chown ${USERID}.${GRPID} ${SRCDIR}/* ; chown -R
${USERID}.${GRPID} ${SRCDIR}/samba-2.0.3* )
< ( cd ../../.. ; chown -R ${USERID}.${GRPID} ${SPECDIR}/{smb*,samb*} )
< ( cd ../../.. ; chown  ${USERID}.${GRPID} ${SPECDIR}/* )

and then went to /usr/src/redhat/SPECS and did
"rpm -ba samba2.spec" and then to RPMS to do a
"rpm -Uvh samba-xxx"

(The short point in all this is you need to compile
with --with-smbmount, but it took me a few tries before
I actually got the new smbmount installed and found it).
Note that this installs the smbmount in /usr/bin/smbmount and
not /usr/sbin/smbmount where the other one went.
The Web site mentioned includes a script to run the
appropriate smbmount depending on if you have a
2.2 or 2.0 kernel.


"B. James Phillippe" wrote:
> Hi,
> Thanks for answering my question on the new smbmount not working.  I tried
> all variety of combinations on the commands you suggested, but they all
> simply do this:
> % smbmount -c //server/share 'mount /mnt/samba-share -n CLIENT -U user'
> Usage: smbmount service <password> [-p port] [-d debuglevel] [-l log]
> Version 2.0.3
>         -p port               connect to the specified port
>         -d debuglevel         set the debuglevel
>         -l log basename.      Basename for log/debug files
>         -n netbios name.      Use this name as my netbios name
>         -N                    don't ask for a password
>         -m max protocol       set the max protocol level
>         -I dest IP            use this IP to connect to
>         -E                    write messages to stderr instead of stdout
>         -U username           set the network username
>         -W workgroup          set the workgroup name
>         -c command string     execute semicolon separated commands
>         -t terminal code      terminal i/o code {sjis|euc|jis7|jis8|junet|hex}
>         -D directory          start from directory
> Perhaps there is something else I need to do?
> Again, the old smbmount works perfectly every time with:
> smbmount //server/share /mnt/samba-share -c CLIENT -U user -P passwd \
>         -u nobody -g nobody -f 666 -d 777
> thanks,
> -bp
> --
> B. James Phillippe              . bryan at
> Software Engineer, WGT Inc.     .

Bill Eldridge
Radio Free Asia
bill at

More information about the samba mailing list