Samba File Sharing from Mint 19 to Windows 10

แชร์
ฝัง
  • เผยแพร่เมื่อ 19 ธ.ค. 2024

ความคิดเห็น • 60

  • @alanburgess2203
    @alanburgess2203 4 ปีที่แล้ว +4

    What a great tutorial, I was tasked with setting up a small office network so we could all share files from one central computer, I've had Mint running on my main laptop for a few years and it's been faultless, so I quickly installed it on an old PC in the office, followed this tutorial which at first I thought was a bit long, but it was perfect and I learnt a few basic Linux commands along the way, excellent stuff worked first time, very very happy, cheers Dan ;)

  • @normhapp8629
    @normhapp8629 5 ปีที่แล้ว +8

    Excellent tutorial on samba sharing with Windows, Mac and Linux. First time that I got this to work on all my computers.

  • @anthonyg9278
    @anthonyg9278 4 ปีที่แล้ว

    I m a fairly new user to mint 19. I decided I wanted a little change from the main stream. It's really enjoyable to work with lots and lots of options. I try to remember some quick commands keep a noted page to go back to. I know with practice.
    I have to say this video was totally incredible simple easy to follow instructions. A lot of the boards ask about irrelevancy. Why answer a question with foolishness, if you dont know dont get involved. I m so glad these vids exist I know they take time to create. I and many others are glad you do them you. Thank You so very much.

  • @Klutche
    @Klutche 4 ปีที่แล้ว +4

    Straight forward, knowledgeable, and worked the first time. Can't say that for many Linux tutorials so thank you so much! Subbed!

  • @Paulo-gg7jq
    @Paulo-gg7jq 4 ปีที่แล้ว

    I'm a rookie user in windows and linux (I know the basic to write some documents and do research). I did everything you did in same time (do many pause to write the right command). English is not my language and most your talk I didn't understand, but I can do share now. Thank you. =)

  • @JEEEEEEEEEEEEEEEE
    @JEEEEEEEEEEEEEEEE 5 ปีที่แล้ว +1

    i am from Saudi Arabia , and i have no idea what i am doing here ,
    but what i want to say something to your students
    , your teacher is a DREAM for me when i was studying ,
    you guys are lucky
    when i was studying in my collage project i got too many issues , and every time i ask my doctor about it , all what he saying " Search about it - google it "
    < and he call him self a professional -_-

  • @rodrigoleiva6648
    @rodrigoleiva6648 2 ปีที่แล้ว

    thank you very much, tutorials like yours make it much easier to learn about linux and its potencial. Cheers from Chile!

  • @bradleystannard3492
    @bradleystannard3492 5 ปีที่แล้ว +1

    Thabks dan for all the videos. I remember watching your videos when i was 12 on ubuntu. now i’ve moved to full linux environment

    • @danscourses
      @danscourses  5 ปีที่แล้ว

      That's crazy. Thanks for posting

  • @traviseiler9173
    @traviseiler9173 4 ปีที่แล้ว

    I took what you taught, and modified it a little, and it works very well. Thank you

  • @chromerims
    @chromerims 2 หลายเดือนก่อน

    17:35 -- 755 (drwxr-xr-x) folder permissions won't work for 'other' users to write to it (e.g. 31:29 whenever not sudo).
    For a folder with nobody:nogroup as owner:group, shouldn't it be one of
    752 (drwxr-x-w-),
    753 (drwxr-x-wx),
    756 (drwxr-xrw-), or
    757 (drwxr-xrwx) ?
    But neither of
    751 (drwxr-x--x),
    754 (drwxr-xr--), nor
    755 (drwxr-xr-x) ?
    Kindest regards, friends and neighbours.

    • @chromerims
      @chromerims 2 หลายเดือนก่อน

      19:15 -- sudo can not cross a redirection or a pipeline.
      A *sudo tee* script works:
      dan@dan:~$ echo "this is some text" | *sudo tee* --append /srv/samba/share/hello.txt ## NOTICE NO SUDO BEFORE PIPE
      . . . if ownership, group and permissions of the file and folder are unchanged.
      Specifically, for /srv/samba/share/, the owner:group remain nobody:nogroup, and its permissions are unchanged at 755 (drwxr-xr-x),
      and
      for /srv/samba/share/hello.txt, owner:group remain root:root, and its permissions are unchanged at 644 (rw-r--r--).
      Kindest regards, friends and neighbours.

    • @chromerims
      @chromerims 2 หลายเดือนก่อน

      'force user = dan' does not do what you are saying. Quotes from vid:
      13:12 -- "If we want to force one user only to authenticate, we can uncomment this and 'force user = dan'. And then comment out the 'guests ok = yes'. So . . . [I can] get rid of guest access and force user authentication or 'force user = dan'."
      30:16 -- "I may need to authenticate to be able to write here. Let's try that. I will edit [/etc/samba/smb.conf] file one more time. Or I am not sure what I am missing. But let's change it slightly. Let's set 'force user = dan'. 'Guest ok = yes', [let's] comment that out, so no longer is 'guest ok' alright."
      The above statements are not correct.
      Rather, for files or directories freshly created by all users within the samba share,
      'force user = dan' sets the inherited user-ownership attribute for such file or directory, and
      'force group = dan' sets the inherited group-ownership attribute for such file or directory.
      *Instead, you need: valid users = dan*
      Kindest regards, neighbours and friends.
      P.S. The folder write problem (31:30) would still not be cured with 'valid users = dan'.
      P.P.S. Fixing the folder write problem, you need to modify /srv/samba/share folder attributes either by
      [1] changing folder permissions from drwxr-xr-x (17:35) to drwxr-xrwx . . . i.e., o=rx to o=rwx . . . or 755 to 757 using chmod o+w.
      or
      [2] changing either (a) the user-owner from nobody (17:35) to dan, or (b) the group-owner from nogroup to dan.
      For the preceding 2b, you would need to concurrently change folder permissions to include g+w.

  • @profdrharry3666
    @profdrharry3666 5 ปีที่แล้ว +1

    Man i must thank u alot helped me soo much for soo much things (moved my csgo server ts3 and more too linux now i can easly provide all over my manage pc) :) THANKS ALOT NICE TUT

  • @NeedInput_Johnny5
    @NeedInput_Johnny5 5 ปีที่แล้ว +1

    Welcome Back!! Glad to see you posting again!

  • @ryanbarrera2595
    @ryanbarrera2595 5 ปีที่แล้ว +1

    Hi Dan.Thanks for the upload. I will follow this tutorial some time.But for now, I'll need to install Linux Mint 19.

  • @luthfiariann8924
    @luthfiariann8924 3 ปีที่แล้ว

    OMG EXCELLENT TUTORIAL THANKYOU!!!!😁😁😁😁

  • @Bloke28Gaming
    @Bloke28Gaming 5 ปีที่แล้ว

    Even though I was using Manjaro Linux this helped alot, in the end I had it all right but linux firewall was too strict, also
    systemctl enable smb;
    systemctl start smb;
    systemctl enable nmb;
    systemctl start nmb;
    were the only different commands. So thanks :)

  • @opx4real
    @opx4real ปีที่แล้ว +1

    2023 And it still takes a 30 minute tutorial to share files between two computers.

  • @Dirk-van-den-Berg
    @Dirk-van-den-Berg 7 หลายเดือนก่อน

    I have one problem during the tutorial. I thought the command prompt would do all the commands to the letter, but there was no folder 'samba' after typing in all the commands. So, the GUI directory didn't show one, made one myself, but there was nothing in it, no line like the example through the command prompt.

  • @rashaadb2514
    @rashaadb2514 4 ปีที่แล้ว

    Great video thanks! To resolve the issue with not being able to create files from Windows I used chown -R (recursive flag) then I was able to create folders from within Windows

  • @rmdimraan
    @rmdimraan 5 ปีที่แล้ว

    Hey dan, for me at 9:08 it says Failed to add entry for user myusername
    Could you please help me with this ?

    • @danscourses
      @danscourses  5 ปีที่แล้ว

      make sure your username is also a username on your Linux system

  • @benmaldonado264
    @benmaldonado264 4 ปีที่แล้ว

    Excellent tutorial on samba sharing with Windows, works great. If you have video on how to change the
    Workgroup Name on Linux Mint - [ running 19.3 ] right now. I would like to see that video to. Thanks for the lesson.

  • @gort400
    @gort400 4 ปีที่แล้ว

    Trying to follow along. When I type sudo service smbd status, I get what your screen shows but at the bottom it gives me a lot of pam_unix(samba:session): session closed for user nobody. messages and an END at bottom screen. I have to close and reopen to get ~$. Any ideas??

    • @gort400
      @gort400 4 ปีที่แล้ว

      I saw in your video to type Q to get the command line back.

  • @MsBernadettex
    @MsBernadettex 5 ปีที่แล้ว +1

    Glad to see your uploading videos 🙂😘

  • @gerald4674
    @gerald4674 5 ปีที่แล้ว

    I've recently read that when Samba moves from version 4.10 to 4.11 SMB1 will be deprecated. With this the browsing network via Samba ends. SMB2 and SMB3 do not allow browsing. Not positive but it looks like SMB3 has not yet been implemented. Wireshark didn't even have a filter for it. My shares are using SMB2 and I assume using SMB1 to browse. As mentioned below SMB1 is considered a security risk. But disabling it also disables browsing. Not sure whats going to replace it.

  • @ericcavanaugh
    @ericcavanaugh 4 ปีที่แล้ว

    Got to 8:33 and 'Failed to Add Entry for user'

    • @indianapolisryan1
      @indianapolisryan1 4 ปีที่แล้ว

      Hey Eric. You'll need to use an actual username on your linux system. In this case Dan used the user name dan. If he had typed in playshare as the user name in the smbapw -a command he would receive the same error you are getting. Hope this helps.

  • @StephenCunningham1
    @StephenCunningham1 4 ปีที่แล้ว

    So how do you make the share visible in windows without having to connect to the IP address?

    • @anthonyg9278
      @anthonyg9278 4 ปีที่แล้ว

      IF you created the file and restated SMBD within terminal then refresh windows network click on shared folder. didnt need to
      Or just watch the vid. its not long.

  • @aaronjohnson8715
    @aaronjohnson8715 5 ปีที่แล้ว

    Agreed that you shouldn't promote smb1. Looking forward to a video when a WS-Discovery fix is in place.

  • @webtax
    @webtax 4 ปีที่แล้ว

    worked without enabling smb direct or 1.0.
    remember o create the same user on windows (gave it administrator rights, not sure if that matters), AND reboot. Otherwise windows would give errors trying to authenticate.

  • @debeeriz
    @debeeriz 4 ปีที่แล้ว

    on mint right click share folder and there is need for all this rigmarole, you might need to install samba though

  • @vladekzbozinek
    @vladekzbozinek 2 ปีที่แล้ว

    Great tutorial. Thank you. Everything worked out of the box.
    However, no way how to see the Mint computer on Windows network. (VirtualBox host = Win 11, guest = Linux Mint, another physical computer on LAN Windows 10)

  • @chmedlychmedenstein916
    @chmedlychmedenstein916 4 ปีที่แล้ว

    Why doesn't this just work from the file manager (Nemo) out of the box? Sure, editing the config file is fun when you're just learning but it's a drag when you've actually got work to get done...

  • @davidbergewaytogo
    @davidbergewaytogo 5 ปีที่แล้ว

    That's great! I got it to work... but I can't get it to work the other way around, i.e. accessing shares on a Windows computer... any thoughts? I guess I have to be on the same workgroup or something, been a while since i've played with those settings... phew! :)

    • @bernarddaileyjr.8395
      @bernarddaileyjr.8395 4 ปีที่แล้ว

      Same here!! I can't get it to work the other way around

  • @grosgogogogt
    @grosgogogogt 4 ปีที่แล้ว +2

    dont activate smb1 its unsecure you should disable guest in samba server on linux just change this to no in your smb.conf
    usershare allow guests = no

  • @weeooh1
    @weeooh1 4 ปีที่แล้ว

    I cant believe so many steps and jumps through hoops and barrels to access windows shares. Will look for more simplified answers elsewhere.

  • @Gustavo19chelsea
    @Gustavo19chelsea 4 ปีที่แล้ว

    Dude, this work perfectly. Thank you so much. Also, i have a Second HDD, how do i share this HD too?

  • @Eric.Abraham
    @Eric.Abraham 5 ปีที่แล้ว +1

    Just use Thunar Share plugin.

  • @stone22121978
    @stone22121978 4 ปีที่แล้ว

    SMB V1 is unsecure (Ransomware)
    Please give us another way to configure this secure

  • @anthonyg9278
    @anthonyg9278 4 ปีที่แล้ว

    So if Samba is installed on Linux Mint cpu correctly and Windows share folders protocols on each system you want to connect to are correct proceed.
    Click on the NETWORK icon in Linux / clear the path / type { the cpu IP address you want to connect to.}
    you need to know the address for each system if you are using a router.
    On the Windows cpu bring up the command line type CMD enter/ type> ipconfig />enter/
    locate your ip address/ looks something like 192.168.?.???/
    next go to Linux open NETWORK window /
    type Windows address as so > smb://192.168. ?.???/ window opens click on your Windows share folder/
    permission access window/ type your ID and password belonging to the Windows cpu/ save it permanent or session log.
    your choice/
    next find bookmark on the page/ bookmark the shared folder/
    You will always have access if you clicked on permanent save >>>>>and your good to go.
    I gave up trying to find a simple fix and experimented on my own Have Fun.

  • @ClaudePageau
    @ClaudePageau 5 ปีที่แล้ว

    Dan liked your video. I think you misspelled writeable you have writable

  • @maybonifacio7869
    @maybonifacio7869 4 ปีที่แล้ว

    I cant write in shared folder

  • @DecemberDawn_12
    @DecemberDawn_12 4 ปีที่แล้ว

    After installing samba I can just create a folder and then set it's sharing properties, and it works. I mean I can access it from windows.

  • @fysconstructionllc3849
    @fysconstructionllc3849 4 ปีที่แล้ว

    Excellent Thanks alot!

  • @williamdenyer765
    @williamdenyer765 3 ปีที่แล้ว

    I have to agree with other comments on enabling SMB1, your just opening yourself up to a possible ransomware attack.

  • @tunkelp
    @tunkelp 5 ปีที่แล้ว

    didn't work for me.

  • @josespartan774
    @josespartan774 4 ปีที่แล้ว

    Thanx

  • @mikepxg6406
    @mikepxg6406 3 ปีที่แล้ว

    its Samba not Sarhmba. Also its Sudo not Sudu.

  • @LestonDr
    @LestonDr 4 ปีที่แล้ว

    Ya lost me when ya started typing stuff... thank you anyhow

    • @lo_sten
      @lo_sten 4 ปีที่แล้ว

      you can do it!