[Samba] Questions on Mounting user shares [was:Re: Mounting SMB shares without root]
lsauchun at hotmail.com
Fri Feb 1 04:02:04 GMT 2002
//pls refer to the mail entitled "Mounting SMB shares w/o root" below.
I have to face a similar problem also.
What I intended to do is for users on the client machine(linux) to be able
to mount their own smb share from the server(linux). In this case, I thought
of setting up one share each for the users of the system.
When this non-root user logs in to the client machine, how is he/she able to
mount their own particular share from the server?
In another words, i wanted to set it up just like a NT environment, where U
can "map" drives from remote machines as non-admin user.
I have tried the "putting it in fstab" approach, but only one username
option can be given there, so if someone else uses this machine, they will
not be able to mount their shares. BTW, with that I was able to let a
non-root user mount a share, but limited to only that user.
Is that the best i can do by putting the entry in fstab ?
How can I use autofs or pam_mount in this case to achieve this ?
Any other methods?
Thank u in Advance.
>From: Urban Widmark <urban at teststation.com>
>To: "Marc R. Hoffman" <emulator at mac.com>
>CC: <samba at samba.org>
>Subject: Re: Mounting SMB shares without root
>Date: Mon, 14 Jan 2002 09:47:41 +0100 (CET)
>On Sun, 13 Jan 2002, Marc R. Hoffman wrote:
> > How for the really big question...How do I set this up in the /etc/fstab
> > so that the share auto-mounts without mounting in root? I can get it to
> > mount, but without the root account, I can "look, but no touch"...
>1. Look at the uid/gid/fmask/dmask options to smbmount.
>2. smbmount when run from /etc/fstab does not support all mount options,
> specifically not the "user" option, so it must be mounted by root. For
> now try autofs, pam_mount to allow automatic mounting by non-root.
>To unsubscribe from this list go to the following URL and read the
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp.
More information about the samba