Re: how to mount a samba share on Fedora 5
- From: jayjwa@xxxxxxxxxxx
- Date: Sat, 17 Mar 2007 14:30:29 -0000
William Mitchell <mitchell@xxxxxxxxxxxx> wrote:
Can anyone point to explicit directions for mounting a remote samba
share in Fedora so that it can be mounted, read and written to by a
nonroot user?
I don't have Fedora, so these may vary a little (or not!). What's in
smb.conf and what you give to smbmount decide this.
This is something that I would have expected would be easy out of the
box; however I have several times looked at the manual pages and tried
all the variations I could think of on fstab and the command lines,
and every time I have had to give up.
I don't use fstab for smb, not sure if you can or not, but most likely.
Here could be a share on the server:
[example_share]
comment = An Example share
path = /home/you/stuff_you_want_to_share
guest ok = no
browseable = yes
read only = no
writable = yes
valid users = you someone another
Don't forget to restart (or use smbcontrol reload-config) the daemons
after you change config files around.
See the man pages for smbmount and smbmnt. The magic is smbmnt, from it's
man page:
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.
So likely you'll have to install the smbmnt binary setuid root. Just
chmod it. Then something like:
%smbmount //server/example_share /wherever/it/goes -o username=you,password=pass
You might need the ip=<the ip address> option, if the server address
isn't known. Try sticking it in lmhosts file (probably
/etc/samba/lmhosts, on my machine). If you're using "mount", you
should probably make sure the link "mount.smbfs" points back to
smbmount, like so: ln -s /usr/bin/smbmount /sbin/mount.smbfs
The machine doing the mounting needs to be able to handle smbfs
filesystems. This I keep as a kernel model, though it can be compiled
into the kernel. I'm not sure what Fedora does about this. Try to see
if it's in /proc/filesystems, if not, try to modprobe smbfs as root.
Listing your modules with modprobe -l should show it:
modprobe -l | grep smbfs
/lib/modules/2.6.20.1/kernel/fs/smbfs/smbfs.ko.gz
--
Turn OFF the Javascript: Don't support data-mining.
Google already knows enough about *you*. (and you, and you...)
<!-- Google Skyscraper Ad -->
<script type="text/javascript"><!--
google_ad_client = "pub-0078565546631069";
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
.
- Prev by Date: Re: Setting default font
- Next by Date: Re: cramfs - No filesystem could mount root . . . fix
- Previous by thread: Re: Setting default font
- Next by thread: Is it possible to divert files to null space using dpkg-divert?
- Index(es):
Relevant Pages
|
|