[wellylug] Linux as a Samba client.

jumbophut jumbophut at gmail.com
Tue May 31 23:28:43 NZST 2005


On 5/31/05, Jethro Carr wrote:
> On Tue, 2005-05-31 at 08:14, Geraint Jones wrote:
> > username=mitchell,password=<password>,user   0       0
> >
> > The user part specifies that one need not be in the root group to mount
> 
> yeah, that's what should happen (and does with CDROM, floppy, etc).
> 
> 
> however, I tried that with the SMB shares and it didn't work. :-(
> 

There's a suggestion in the following doc:
<http://www.justlinux.com/nhf/Filesystems/Mounting_smbfs_Shares_Permanently.html>

But running things setuid root should make you feel nervous.

More here from the samba guys:
<http://lists.samba.org/archive/linux-cifs-client/2004-July/000297.html>
<http://lists.samba.org/archive/samba-technical/2005-March/039861.html>

Oh, and this:

"smbmnt is a helper application used by the smbmount program to do the
actual mounting of SMB shares.smbmnt can be installed setuid root if
you want normal users to be able to mount their SMB shares.

    A setuid smbmnt will only allow mounts on directories owned by the
user, and that the user has write permission on.

The smbmnt program is normally invoked by smbmount(8). It should not
be invoked directly by users.

smbmount searches the normal PATH for smbmnt. You must ensure that the
smbmnt version in your path matches the smbmount used. "

Good luck.

-- 
Tony (echo 'spend!,pocket awide' | sed 'y/acdeikospntw!, /l at omcgtjuba.phi/')




More information about the wellylug mailing list