Page 2 of 2 FirstFirst 12
Results 11 to 15 of 15

Thread: How to share SMB autofs mount with two different users ?

  1. #11
    Join Date
    Mar 2010
    Location
    Been there, meh.
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: How to share SMB autofs mount with two different users ?

    If both machines are Ubuntu, why not use NFSv4? Then you'd have native Unix permissions and probably a little better performance.

    Also the vers=1.0 can be removed. Let samba on both sides negotiate the best version if you don't want to change to NFS.

  2. #12
    Join Date
    Apr 2008
    Beans
    367

    Re: How to share SMB autofs mount with two different users ?

    Sorry, I *should* have written "the two client machines run Ubuntu 18.04LTS and Ubuntu 20.04LTS to mount a network NAS " I promise, I wont' do 3 things at the same time and answer the missus
    Frankly, if i could use NFS (either version) I would gladly dump this s...

  3. #13
    Join Date
    Dec 2009
    Beans
    6,816

    Re: How to share SMB autofs mount with two different users ?

    Looks like you didn't do this:
    EDIT: The more I look at your post you may need one more option: nounix No need to add it if it works without it.
    I don't know where you are at the moment -- too many posts - but something like this:
    disk -fstype=cifs,dir_mode=0770,file_mode=0660,nounix,rw,vers=1.0,username=NASUSER,password=NASPASSWD,g id=users,uid=$USER ://NAS/disk

  4. #14
    Join Date
    Apr 2008
    Beans
    367

    Re: How to share SMB autofs mount with two different users ?

    Will try right now and report back.

  5. #15
    Join Date
    Apr 2008
    Beans
    367

    Re: How to share SMB autofs mount with two different users ?

    Hurrah !
    That did it ! this is the line I have in my automount map :
    Code:
    disk    -fstype=cifs,dir_mode=0775,file_mode=0664,rw,vers=1.0,nounix,username=nasuser,password=naspasswd,gid=users,uid=$USER ://NAS/disk
    and this is what I get :
    Code:
    $ll /NAs
    total 0
    drwxr-xr-x 2 root root 0 juin   3 18:36 disk
    $ cd /NAS/disk/
    $ ll ..
    total 0
    drwxrwxr-x 2 georges users 0 juin   3 13:08 disk
    $
    Thank you !
    I'll mark the thread as resolved in order for others to profit of your knowledge !
    Have a nice day !

Page 2 of 2 FirstFirst 12

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •