How to allow users to mount windows shares












2















Our company uses both Windows and Linux. Each user has access to many Windows Shares, e.g. \machine1A, \machine2B, 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 \machine1A to /home/user/somefolder/ but cannot change the mounting of local drives.










share|improve this question














bumped to the homepage by Community 10 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
















  • Usually you install Samba on the client machine. Then, the user selects "connect to server" and uses the uri smb://<server_name>. Also see questions like How to connect to smb://…? and How do I connect to an SMB share requiring a user name and password?

    – jww
    4 mins ago


















2















Our company uses both Windows and Linux. Each user has access to many Windows Shares, e.g. \machine1A, \machine2B, 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 \machine1A to /home/user/somefolder/ but cannot change the mounting of local drives.










share|improve this question














bumped to the homepage by Community 10 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
















  • Usually you install Samba on the client machine. Then, the user selects "connect to server" and uses the uri smb://<server_name>. Also see questions like How to connect to smb://…? and How do I connect to an SMB share requiring a user name and password?

    – jww
    4 mins ago
















2












2








2








Our company uses both Windows and Linux. Each user has access to many Windows Shares, e.g. \machine1A, \machine2B, 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 \machine1A to /home/user/somefolder/ but cannot change the mounting of local drives.










share|improve this question














Our company uses both Windows and Linux. Each user has access to many Windows Shares, e.g. \machine1A, \machine2B, 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 \machine1A to /home/user/somefolder/ but cannot change the mounting of local drives.







mount windows samba






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Jan 23 '16 at 22:38









FabianFabian

1111




1111





bumped to the homepage by Community 10 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.







bumped to the homepage by Community 10 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.















  • Usually you install Samba on the client machine. Then, the user selects "connect to server" and uses the uri smb://<server_name>. Also see questions like How to connect to smb://…? and How do I connect to an SMB share requiring a user name and password?

    – jww
    4 mins ago





















  • Usually you install Samba on the client machine. Then, the user selects "connect to server" and uses the uri smb://<server_name>. Also see questions like How to connect to smb://…? and How do I connect to an SMB share requiring a user name and password?

    – jww
    4 mins ago



















Usually you install Samba on the client machine. Then, the user selects "connect to server" and uses the uri smb://<server_name>. Also see questions like How to connect to smb://…? and How do I connect to an SMB share requiring a user name and password?

– jww
4 mins ago







Usually you install Samba on the client machine. Then, the user selects "connect to server" and uses the uri smb://<server_name>. Also see questions like How to connect to smb://…? and How do I connect to an SMB share requiring a user name and password?

– jww
4 mins ago












1 Answer
1






active

oldest

votes


















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







share|improve this answer


























  • 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








StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "106"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f257253%2fhow-to-allow-users-to-mount-windows-shares%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









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







share|improve this answer


























  • 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
















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







share|improve this answer


























  • 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














0












0








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







share|improve this answer















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








share|improve this answer














share|improve this answer



share|improve this answer








edited Jan 24 '16 at 0:15

























answered Jan 23 '16 at 23:02









Thomas DickeyThomas Dickey

54.1k5106178




54.1k5106178













  • 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



















  • 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

















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





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


















draft saved

draft discarded




















































Thanks for contributing an answer to Unix & Linux Stack Exchange!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f257253%2fhow-to-allow-users-to-mount-windows-shares%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

宮崎県

濃尾地震

シテ島