Mount smb share upon boot on Linux without storing user credetentials

  • I have SMB shares configured on my OMV NAS that allow anonymous read access to any device on LAN and read/write access to a user on my Windows PC.

    I've got a new Linux PC and use the same login/password on it as on my Windows PC. I want SMB shares to automatically mount upon turning my Linux PC on. All the guides I find online suggest either specifying credetentials directly in the fstab file or creating a separate file contating username and password in user's home directory. Is it possible for the auto mounting to use credetentials of a currently logged in user to mount the shares, like in Windows?

    New to Linux | Trying to build a proper home server in spare time.

  • Since it's Linux to Linux you might want to use NFS instead of SMB.

    --
    Google is your friend and Bob's your uncle!


    A backup strategy is worthless unless you have a verified to work by testing restore strategy.


    OMV AMD64 7.x on headless Chenbro NR12000 1U Intel Xeon CPU E3-1230 V2 @ 3.30GHz 32GB ECC RAM.


  • Since it's Linux to Linux you might want to use NFS instead of SMB.

    I tinkered with this section of OMV for a while and didn't figure out if it is possible to replicate permissions i have set up for SMB with NFS (read to anyone on LAN, read/write to a specific user). Can I specify a specific user in a "Client" field? Do I need to make 2 separate shares weith different privilege for the same shared folder?

    New to Linux | Trying to build a proper home server in spare time.

  • Not sure how to setup what you are trying to do.

    --
    Google is your friend and Bob's your uncle!


    A backup strategy is worthless unless you have a verified to work by testing restore strategy.


    OMV AMD64 7.x on headless Chenbro NR12000 1U Intel Xeon CPU E3-1230 V2 @ 3.30GHz 32GB ECC RAM.


  • that won't work because the system user does not automatically have "sambashare" group privileges to access the SMB World from Windows.
    Like gderf stated above, you could switch to NFS - what is recommended for linux AVAHI - or you stick to Windows and use "NetSetMan" or "NetDrive" what are commercial programs to obtain a solution.


    And i have to agree again to gderf, i dont understand what should be the native advantages, seen here?

    DE | EN; 81er Jahrgang Spätlese, OMV Bastler, erfahrener PC-Geek, Linux begeistert, mag alles was Strom oder Netzwerk braucht 8o

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!