>> I have Samba working fine and can mount drives on my 9x/NT boxes from
>> Linux using smbmount. However, it would be nice if it could be done
>> using ordinary 'mount', using the normal mount syntax - and,
>> eventually, to be done via entries in the /etc/fstab file.
>I've been casually looking for something like this for some time, with no
>luck. I did recently run across the following in the smbmount man page:
>: To mount an smb file system, I suggest using the option -c
>: for smbmount to pass the mount command. For example, use
>: smbmount "\\server\tmp" -c 'mount /mnt -u 123 -g 456'
>: to mount the tmp share of server on /mnt
Curiously, my "man smbmount" documents the -c option as a way to
specify the "client name" - whatever that is. It doesn't looke like a
command string at all. FWIW, the -C option is for disabling the
uppercasing of passwords, so that ain't it either...
Quote:>This did work for me. I've not yet tried to combine this with user
>permissions in the /etc/fstab file to see if this might allow normal users
>to do it. Perhaps a suid root script could do it, though....
When you run smbmount as non-root, it says "/usr/sbin/smbmount must be
installed suid-root". Although I haven't tested it, this seems to
imply that simply making the executable setuid root would allow users
to smbmount stuff.
But that is not my goal here. What I want is to be able to call mount
and have it, internally call smbmount, if necessary, to do the work.
My goal is not the idea of making it user (in the sense of "non-root")
accessible, but rather, I'd like to avoid having to write a separate
user-interface for smbmount. Note that smbmount has a baroque command
line interface that it would be nice to hide - and one of the beauties
of Unix is the way the uglies of file systems can be encapsulated in
the /etc/fstab file. It works with NFS; it should work with SMBFS.