How to Share folder with samba which is located on second hard drive











up vote
0
down vote

favorite
1












I can't get access from the lan to a shared folder which is located on a second hard drive on an Ubuntu server.



I have installed Ubuntu server 15.04, Ubuntu is freshly installed on first hard drive sda, and second hard drive is sdb which I have formatted with ext4 and I have mounted and set it to automount everytime I reboot computer.



I have read numerous forums and for days I've been looking for a solution to share a folder or to share a whole drive so anyone can access it from lan without permissions, no luck.



I followed this solution http://www.liberiangeek.net/2014/07/ubuntu-tips-create-samba-file-server-ubuntu-14-04/



Which works when I share folder from Hdd where is Ubuntu installed, but when I do the same steps and change a path to another folder which is located in my second hard drive "/mnt/backup/share" I cant get access to it. I created user and specific group of users with full permissions to specific folder, and when I try to get access to from local network (pc with win7, win 8 and winxp) to access it on a prompt with username and password which I type in; I got also denied. What am I missing?



My smb.config



[global]
workgroup = WORKGROUP
server string = Samba Server %v
netbios name = ubuntu
security = user
map to guest = bad user
name resolve order = bcast host
dns proxy = no

[test2]
path = /mnt/backup/test2
browsable = yes
writable = yes
guest ok = yes
read only = yes

[tiki]
path = /mnt/backup/tiki
browsable = yes
writable = yes
guest ok = yes
read only = no

[tiki2]
path = /mnt/backup/tiki2
valid users = ocat
guest ok = no
writable = yes
browsable = yes









share|improve this question
























  • What are the permissions on the folder/files that you are trying to share on your second drive? You will need at least execute permission to traverse down into any directory tree. Can you post your smb.conf?
    – Eddie Dunn
    Nov 30 '15 at 21:52










  • @ Eddie Dunn here is my smb.conf [global] workgroup = WORKGROUP server string = Samba Server %v netbios name = ubuntu security = user map to guest = bad user name resolve order = bcast host dns proxy = no [test2] path = /mnt/backup/test2 browsable = yes writable = yes guest ok = yes read only = yes [tiki] path = /mnt/backup/tiki browsable = yes writable = yes guest ok = yes read only = no [tiki2] path = /mnt/backup/tiki2 valid users = ocat guest ok = no writable = yes browsable = yes
    – Ivan Badza
    Nov 30 '15 at 21:56












  • Where's your /mnt/backup/share added as a path in the smb.conf? You only have test, tiki, tiki2 and their sub directories. Nothing about share. And do "sudo service smbd restart" to restart the samba each and every time you change something in the conf. Otherwise the server will continue to run with the old conf.
    – user283885
    Nov 30 '15 at 22:16












  • @user283885 its was a example sorry, in hese folders wich are in smb.conf i cant access.
    – Ivan Badza
    Nov 30 '15 at 22:19










  • I did numerous of times sudo service smdb restart and sudo nmdb restar, and restart whole ubuntu still cant get access to any of these
    – Ivan Badza
    Nov 30 '15 at 22:22















up vote
0
down vote

favorite
1












I can't get access from the lan to a shared folder which is located on a second hard drive on an Ubuntu server.



I have installed Ubuntu server 15.04, Ubuntu is freshly installed on first hard drive sda, and second hard drive is sdb which I have formatted with ext4 and I have mounted and set it to automount everytime I reboot computer.



I have read numerous forums and for days I've been looking for a solution to share a folder or to share a whole drive so anyone can access it from lan without permissions, no luck.



I followed this solution http://www.liberiangeek.net/2014/07/ubuntu-tips-create-samba-file-server-ubuntu-14-04/



Which works when I share folder from Hdd where is Ubuntu installed, but when I do the same steps and change a path to another folder which is located in my second hard drive "/mnt/backup/share" I cant get access to it. I created user and specific group of users with full permissions to specific folder, and when I try to get access to from local network (pc with win7, win 8 and winxp) to access it on a prompt with username and password which I type in; I got also denied. What am I missing?



My smb.config



[global]
workgroup = WORKGROUP
server string = Samba Server %v
netbios name = ubuntu
security = user
map to guest = bad user
name resolve order = bcast host
dns proxy = no

[test2]
path = /mnt/backup/test2
browsable = yes
writable = yes
guest ok = yes
read only = yes

[tiki]
path = /mnt/backup/tiki
browsable = yes
writable = yes
guest ok = yes
read only = no

[tiki2]
path = /mnt/backup/tiki2
valid users = ocat
guest ok = no
writable = yes
browsable = yes









share|improve this question
























  • What are the permissions on the folder/files that you are trying to share on your second drive? You will need at least execute permission to traverse down into any directory tree. Can you post your smb.conf?
    – Eddie Dunn
    Nov 30 '15 at 21:52










  • @ Eddie Dunn here is my smb.conf [global] workgroup = WORKGROUP server string = Samba Server %v netbios name = ubuntu security = user map to guest = bad user name resolve order = bcast host dns proxy = no [test2] path = /mnt/backup/test2 browsable = yes writable = yes guest ok = yes read only = yes [tiki] path = /mnt/backup/tiki browsable = yes writable = yes guest ok = yes read only = no [tiki2] path = /mnt/backup/tiki2 valid users = ocat guest ok = no writable = yes browsable = yes
    – Ivan Badza
    Nov 30 '15 at 21:56












  • Where's your /mnt/backup/share added as a path in the smb.conf? You only have test, tiki, tiki2 and their sub directories. Nothing about share. And do "sudo service smbd restart" to restart the samba each and every time you change something in the conf. Otherwise the server will continue to run with the old conf.
    – user283885
    Nov 30 '15 at 22:16












  • @user283885 its was a example sorry, in hese folders wich are in smb.conf i cant access.
    – Ivan Badza
    Nov 30 '15 at 22:19










  • I did numerous of times sudo service smdb restart and sudo nmdb restar, and restart whole ubuntu still cant get access to any of these
    – Ivan Badza
    Nov 30 '15 at 22:22













up vote
0
down vote

favorite
1









up vote
0
down vote

favorite
1






1





I can't get access from the lan to a shared folder which is located on a second hard drive on an Ubuntu server.



I have installed Ubuntu server 15.04, Ubuntu is freshly installed on first hard drive sda, and second hard drive is sdb which I have formatted with ext4 and I have mounted and set it to automount everytime I reboot computer.



I have read numerous forums and for days I've been looking for a solution to share a folder or to share a whole drive so anyone can access it from lan without permissions, no luck.



I followed this solution http://www.liberiangeek.net/2014/07/ubuntu-tips-create-samba-file-server-ubuntu-14-04/



Which works when I share folder from Hdd where is Ubuntu installed, but when I do the same steps and change a path to another folder which is located in my second hard drive "/mnt/backup/share" I cant get access to it. I created user and specific group of users with full permissions to specific folder, and when I try to get access to from local network (pc with win7, win 8 and winxp) to access it on a prompt with username and password which I type in; I got also denied. What am I missing?



My smb.config



[global]
workgroup = WORKGROUP
server string = Samba Server %v
netbios name = ubuntu
security = user
map to guest = bad user
name resolve order = bcast host
dns proxy = no

[test2]
path = /mnt/backup/test2
browsable = yes
writable = yes
guest ok = yes
read only = yes

[tiki]
path = /mnt/backup/tiki
browsable = yes
writable = yes
guest ok = yes
read only = no

[tiki2]
path = /mnt/backup/tiki2
valid users = ocat
guest ok = no
writable = yes
browsable = yes









share|improve this question















I can't get access from the lan to a shared folder which is located on a second hard drive on an Ubuntu server.



I have installed Ubuntu server 15.04, Ubuntu is freshly installed on first hard drive sda, and second hard drive is sdb which I have formatted with ext4 and I have mounted and set it to automount everytime I reboot computer.



I have read numerous forums and for days I've been looking for a solution to share a folder or to share a whole drive so anyone can access it from lan without permissions, no luck.



I followed this solution http://www.liberiangeek.net/2014/07/ubuntu-tips-create-samba-file-server-ubuntu-14-04/



Which works when I share folder from Hdd where is Ubuntu installed, but when I do the same steps and change a path to another folder which is located in my second hard drive "/mnt/backup/share" I cant get access to it. I created user and specific group of users with full permissions to specific folder, and when I try to get access to from local network (pc with win7, win 8 and winxp) to access it on a prompt with username and password which I type in; I got also denied. What am I missing?



My smb.config



[global]
workgroup = WORKGROUP
server string = Samba Server %v
netbios name = ubuntu
security = user
map to guest = bad user
name resolve order = bcast host
dns proxy = no

[test2]
path = /mnt/backup/test2
browsable = yes
writable = yes
guest ok = yes
read only = yes

[tiki]
path = /mnt/backup/tiki
browsable = yes
writable = yes
guest ok = yes
read only = no

[tiki2]
path = /mnt/backup/tiki2
valid users = ocat
guest ok = no
writable = yes
browsable = yes






permissions hard-drive samba






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Jun 8 at 5:09









Jason Aller

46558




46558










asked Nov 30 '15 at 21:40









Ivan Badza

415




415












  • What are the permissions on the folder/files that you are trying to share on your second drive? You will need at least execute permission to traverse down into any directory tree. Can you post your smb.conf?
    – Eddie Dunn
    Nov 30 '15 at 21:52










  • @ Eddie Dunn here is my smb.conf [global] workgroup = WORKGROUP server string = Samba Server %v netbios name = ubuntu security = user map to guest = bad user name resolve order = bcast host dns proxy = no [test2] path = /mnt/backup/test2 browsable = yes writable = yes guest ok = yes read only = yes [tiki] path = /mnt/backup/tiki browsable = yes writable = yes guest ok = yes read only = no [tiki2] path = /mnt/backup/tiki2 valid users = ocat guest ok = no writable = yes browsable = yes
    – Ivan Badza
    Nov 30 '15 at 21:56












  • Where's your /mnt/backup/share added as a path in the smb.conf? You only have test, tiki, tiki2 and their sub directories. Nothing about share. And do "sudo service smbd restart" to restart the samba each and every time you change something in the conf. Otherwise the server will continue to run with the old conf.
    – user283885
    Nov 30 '15 at 22:16












  • @user283885 its was a example sorry, in hese folders wich are in smb.conf i cant access.
    – Ivan Badza
    Nov 30 '15 at 22:19










  • I did numerous of times sudo service smdb restart and sudo nmdb restar, and restart whole ubuntu still cant get access to any of these
    – Ivan Badza
    Nov 30 '15 at 22:22


















  • What are the permissions on the folder/files that you are trying to share on your second drive? You will need at least execute permission to traverse down into any directory tree. Can you post your smb.conf?
    – Eddie Dunn
    Nov 30 '15 at 21:52










  • @ Eddie Dunn here is my smb.conf [global] workgroup = WORKGROUP server string = Samba Server %v netbios name = ubuntu security = user map to guest = bad user name resolve order = bcast host dns proxy = no [test2] path = /mnt/backup/test2 browsable = yes writable = yes guest ok = yes read only = yes [tiki] path = /mnt/backup/tiki browsable = yes writable = yes guest ok = yes read only = no [tiki2] path = /mnt/backup/tiki2 valid users = ocat guest ok = no writable = yes browsable = yes
    – Ivan Badza
    Nov 30 '15 at 21:56












  • Where's your /mnt/backup/share added as a path in the smb.conf? You only have test, tiki, tiki2 and their sub directories. Nothing about share. And do "sudo service smbd restart" to restart the samba each and every time you change something in the conf. Otherwise the server will continue to run with the old conf.
    – user283885
    Nov 30 '15 at 22:16












  • @user283885 its was a example sorry, in hese folders wich are in smb.conf i cant access.
    – Ivan Badza
    Nov 30 '15 at 22:19










  • I did numerous of times sudo service smdb restart and sudo nmdb restar, and restart whole ubuntu still cant get access to any of these
    – Ivan Badza
    Nov 30 '15 at 22:22
















What are the permissions on the folder/files that you are trying to share on your second drive? You will need at least execute permission to traverse down into any directory tree. Can you post your smb.conf?
– Eddie Dunn
Nov 30 '15 at 21:52




What are the permissions on the folder/files that you are trying to share on your second drive? You will need at least execute permission to traverse down into any directory tree. Can you post your smb.conf?
– Eddie Dunn
Nov 30 '15 at 21:52












@ Eddie Dunn here is my smb.conf [global] workgroup = WORKGROUP server string = Samba Server %v netbios name = ubuntu security = user map to guest = bad user name resolve order = bcast host dns proxy = no [test2] path = /mnt/backup/test2 browsable = yes writable = yes guest ok = yes read only = yes [tiki] path = /mnt/backup/tiki browsable = yes writable = yes guest ok = yes read only = no [tiki2] path = /mnt/backup/tiki2 valid users = ocat guest ok = no writable = yes browsable = yes
– Ivan Badza
Nov 30 '15 at 21:56






@ Eddie Dunn here is my smb.conf [global] workgroup = WORKGROUP server string = Samba Server %v netbios name = ubuntu security = user map to guest = bad user name resolve order = bcast host dns proxy = no [test2] path = /mnt/backup/test2 browsable = yes writable = yes guest ok = yes read only = yes [tiki] path = /mnt/backup/tiki browsable = yes writable = yes guest ok = yes read only = no [tiki2] path = /mnt/backup/tiki2 valid users = ocat guest ok = no writable = yes browsable = yes
– Ivan Badza
Nov 30 '15 at 21:56














Where's your /mnt/backup/share added as a path in the smb.conf? You only have test, tiki, tiki2 and their sub directories. Nothing about share. And do "sudo service smbd restart" to restart the samba each and every time you change something in the conf. Otherwise the server will continue to run with the old conf.
– user283885
Nov 30 '15 at 22:16






Where's your /mnt/backup/share added as a path in the smb.conf? You only have test, tiki, tiki2 and their sub directories. Nothing about share. And do "sudo service smbd restart" to restart the samba each and every time you change something in the conf. Otherwise the server will continue to run with the old conf.
– user283885
Nov 30 '15 at 22:16














@user283885 its was a example sorry, in hese folders wich are in smb.conf i cant access.
– Ivan Badza
Nov 30 '15 at 22:19




@user283885 its was a example sorry, in hese folders wich are in smb.conf i cant access.
– Ivan Badza
Nov 30 '15 at 22:19












I did numerous of times sudo service smdb restart and sudo nmdb restar, and restart whole ubuntu still cant get access to any of these
– Ivan Badza
Nov 30 '15 at 22:22




I did numerous of times sudo service smdb restart and sudo nmdb restar, and restart whole ubuntu still cant get access to any of these
– Ivan Badza
Nov 30 '15 at 22:22










1 Answer
1






active

oldest

votes

















up vote
0
down vote













Im such a noob, didnt even look at Hdd premisions, now i have changed it from none to read and write, and voila it works... Thank you you are a life saver. 10 days i have spend to share it to find a cure and finaly i did :D thank you, thank you :D






share|improve this answer





















    Your Answer








    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "89"
    };
    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',
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    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%2faskubuntu.com%2fquestions%2f704410%2fhow-to-share-folder-with-samba-which-is-located-on-second-hard-drive%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








    up vote
    0
    down vote













    Im such a noob, didnt even look at Hdd premisions, now i have changed it from none to read and write, and voila it works... Thank you you are a life saver. 10 days i have spend to share it to find a cure and finaly i did :D thank you, thank you :D






    share|improve this answer

























      up vote
      0
      down vote













      Im such a noob, didnt even look at Hdd premisions, now i have changed it from none to read and write, and voila it works... Thank you you are a life saver. 10 days i have spend to share it to find a cure and finaly i did :D thank you, thank you :D






      share|improve this answer























        up vote
        0
        down vote










        up vote
        0
        down vote









        Im such a noob, didnt even look at Hdd premisions, now i have changed it from none to read and write, and voila it works... Thank you you are a life saver. 10 days i have spend to share it to find a cure and finaly i did :D thank you, thank you :D






        share|improve this answer












        Im such a noob, didnt even look at Hdd premisions, now i have changed it from none to read and write, and voila it works... Thank you you are a life saver. 10 days i have spend to share it to find a cure and finaly i did :D thank you, thank you :D







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Nov 30 '15 at 22:48









        Ivan Badza

        415




        415






























            draft saved

            draft discarded




















































            Thanks for contributing an answer to Ask Ubuntu!


            • 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.





            Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


            Please pay close attention to the following guidance:


            • 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%2faskubuntu.com%2fquestions%2f704410%2fhow-to-share-folder-with-samba-which-is-located-on-second-hard-drive%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

            How to change which sound is reproduced for terminal bell?

            Can I use Tabulator js library in my java Spring + Thymeleaf project?

            Title Spacing in Bjornstrup Chapter, Removing Chapter Number From Contents