You are not logged in.

#1 2014-04-01 19:20:18

pMarch
Member
Registered: 2014-01-30
Posts: 10

auto mount CIFS

I know that there are many post and solutions regarding how to auto mount CIFS shares.... but for some reason I cannot get any of them to work.

Here is what I know.
1) I used to use fstab.  But not fstab requires root access to mount CIFS Shares
2) I have tried smbnetfs as described here: [url= https://wiki.archlinux.org/index.php/sa … c_mounting ] Samba .  This results in extremely slow browsing to the network share and my credentials being denied.  It is possible that I have not set up the ~/.smb/smbnetfs.auth file correctly.  I also get the message:

WARNING: Unkown libsmbclient version: 4.1.6
SMBNetFS may not work as expected.

3) I have tried autofs Autofs with no luck.
4) I would be willing to mount from the terminal or a script file.  However, when I mount with

sudo mount -t cifs //networkstorage/01_media  /home/user/Network/01_media -o username=xxxx,password=xxxxx

I do not get rear/write privileges.

5) I know the CIFS share is set up correctly.  Because if I brows to the share using thunar I can mount the location (with password and username) and get full read write access.

Can anyone suggest what is the best method for mounting.  So that I can begin trying to fiqure out how to make it work for my system.  Or if I could get some advice on what I am doing wrong in the terminal so that I could get R/W privileges.

Thanks!

Offline

#2 2014-04-01 19:44:53

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: auto mount CIFS

You tried the fstab, but you didn't specify what youactually put in the fstab.  There is an option which should enable you to mount the cifs filesystem as a normal user... it is the same option as any other filesystem.  Have a look at the mount man page, as it has the information you are looking for.

I don't know what smbnetfs is or how one would use that, but from a quick gander at the package info it appears to be a fuse filesystem.  You also didn't give even a hint of what happened when you tried autofs, or in what way you failed.

I think what you might really be looking for is an automounting daemon though.  I'm not sure how they work with network shares that require a password, but you might want to have a look.  This would be how the DEs handle automounting.  In particular, there is udev{,2} that seems to be the most common solution.

Offline

#3 2014-04-01 20:15:58

pMarch
Member
Registered: 2014-01-30
Posts: 10

Re: auto mount CIFS

Thanks for the fast reply WonderWoofy.  It I could get fstab to work that would be my preferred scenario. I have googled and tried many fstab options.  The most recent is as follows:

//networkstorage/00_Media /home/user/Network/00_Media cifs sec=ntlm,noauto,x-systemd.automount,users, username=xxxx, password=xxxx 0 0

  everything that I have read made it sound like fstab no longer allows users to access cifs mounts, so I thought it was a lost cause.

Offline

Board footer

Powered by FluxBB