Here at work there's an NT server with some files on it that I need
to grab and upload to a webserver. I'm, of course, using Linux on my
desktop.
I've tried mounting using "mount", as best I understand from a number
of SMB/Samba/Mount-related man pages and usage blurbs, but it's failing
in a rather odd way:
# mount -t smbfs -o username=bkendrick //service_i_want /local_directory
To this, I receive:
Usage: mount.smbfs service mountpoint [-o options,...]
Version 2.0.7
Options:
username=<arg> SMB username
password=<arg> SMB password
netbiosname=<arg> source NetBIOS name
uid=<arg> mount uid or username
gid=<arg> mount gid or groupname
port=<arg> remote SMB port number
fmask=<arg> file umask
dmask=<arg> directory umask
debug=<arg> debug level
ip=<arg> destination host or IP address
workgroup=<arg> workgroup on destination
sockopt=<arg> TCP socket options
scope=<arg> NetBIOS scope
guest don't prompt for a password
ro mount read-only
rw mount read-write
This command is designed to be run from within /bin/mount by giving
the option '-t smbfs'. For example:
mount -t smbfs -o username=tridge,password=foobar //fjall/test /data/test
mount: backgrounding "//service_i_want"
# Usage: mount.smbfs service mountpoint [-o options,...]
Version 2.0.7
Options:
username=<arg> SMB username
password=<arg> SMB password
netbiosname=<arg> source NetBIOS name
uid=<arg> mount uid or username
gid=<arg> mount gid or groupname
port=<arg> remote SMB port number
fmask=<arg> file umask
dmask=<arg> directory umask
debug=<arg> debug level
ip=<arg> destination host or IP address
workgroup=<arg> workgroup on destination
sockopt=<arg> TCP socket options
scope=<arg> NetBIOS scope
guest don't prompt for a password
ro mount read-only
rw mount read-write
This command is designed to be run from within /bin/mount by giving
the option '-t smbfs'. For example:
mount -t smbfs -o username=tridge,password=foobar //fjall/test /data/test
In other words, the first response I get is a usage report from
"mount.smbfs" (a shell script, I believe).
Then, I get the message "mount: backgrounding "//service_i_want"",
followed by a shell prompt ("#").
But THEN, after the shell prompt appears, I get ANOTHER usage complaint
from "mount.smbfs".
Any idea what's up? I've tried specifying password along with username
(ie, "username=bkendrick,password=my_password") but I get the same
thing. (I assume from the bit about the "guest" option that password
would normally get prompted for if it was left out)
Thanks!
-bill!