2

Our company uses both Windows and Linux. Each user has access to many Windows Shares, e.g. \\machine1\A, \\machine2\B, etc.

In Ubuntu, how to allow non-root users accessing those shares?

Is there a way to access those without mounting?

If mounting is required, how to allow non-root users to mount network shares to their home folders? They should be able to mount \\machine1\A to /home/user/somefolder/ but cannot change the mounting of local drives.

0

Typically this is done by adding the setting user to the /etc/fstab entry which defines the mount points.

Further reading:

  • mount(8)

    Normally, only the superuser can mount filesystems. However, when fstab contains the user option on a line, anybody can mount the corresponding filesystem.

  • fstab(5)

    The fourth field (fs_mntops). This field describes the mount options associated with the filesystem.

          It is formatted as a comma-separated list of options.  It
          contains at least the type of mount (ro or rw), plus any
          additional options appropriate to the filesystem type
          (including performance-tuning options).  For details, see
          mount(8) or swapon(8).
    
          Basic filesystem-independent options are:
    
          defaults
                 use default options: rw, suid, dev, exec, auto, nouser,
                 and async.
    
          noauto do not mount when "mount -a" is given (e.g., at boot
                 time)
    
          user   allow a user to mount
    
  • How do I know which file systems to put into fstab? The number of network paths are unbounded. A user may want to access files from his machine, for example. – Fabian Jan 25 '16 at 2:48

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.