OpenWRT - File Sharing Server on OpenWRT with Samba4 (SMB)

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

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

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

    My favorite part is at 15:07.
    Your videos are great by the way. Very helpful.

  • @xenophone9222
    @xenophone9222 ปีที่แล้ว

    Great guide, worked on my WRT3200ACM on OpenWrt 22.03.2 with one change at the step where you're mounting /dev/sda I ran "ln -s /usr/bin/ntfs-3g /sbin/mount.ntfs" from terminal. This allowed the drive to mount when previously applying the enable option would result in no change. This step is at 5:41

  • @niggle3138
    @niggle3138 2 ปีที่แล้ว +3

    just spent 30m-1hr trying to get the permissions right by myself. Should have looked at your video first, got it done in 5min! Best tutorial on the internet!!

    • @Tech-px3yn
      @Tech-px3yn ปีที่แล้ว

      I followed everything and still I do not have read and write it says the system is write protected

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

    This is perfect. I have been putting of installing Samba for so long.

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

    Well done sir but do you have a video explaining how to setup a way to access the usb ssd from outside the home network?

  • @vivahitam5444
    @vivahitam5444 5 หลายเดือนก่อน

    Hii.. i just wonder can I access the file online, upload and download without connect with same WiFi?

  • @mobilemeneer3053
    @mobilemeneer3053 ปีที่แล้ว

    I have installed openwert on an zyxel nsa325 v2 yesterday and want to share an internal sata drive. Not an usb drive. Do you know if that's possible?

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

    I'm stuck on the network drive mapping, I keep getting issues with certificates and nothing seems to work. Have you experienced this problem?

  • @rengreng4277
    @rengreng4277 ปีที่แล้ว

    I'm using samba for the local nas network, can the files on the HDD be accessed via luci or not?

  • @rikka0_059
    @rikka0_059 ปีที่แล้ว

    If you use 1Gbps links between your router and PC, how fast can you get? I feel that the router becomes a bottleneck, even if you use a HDD

  • @mr_eser
    @mr_eser ปีที่แล้ว

    I have router without usb but i have modem with usb. How can i access to that usb on openwrt and add?

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

    I'm having a problem.. I've followed the tutorial but my hdd can't be written, it can only be read.. what's wrong?

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

    can you do one for ksmbd on openwrt? the package size is much smaller, and the luci interface is very similar.

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

    Thank you!! finally i got it right by folowing your instructions!

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

      Glad it helped!

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

      @@VanTechCorner now its sharing a small disk instead of the usb external drive

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

    I face so many troubles in order to this work. Finally, the options that work for me "rw,nodev,noexec,noatime,nosuid,uid=xxxx,gid=xxxxx" By passing those options and special mention to uid and gid did the magic. They need to match your user. BTW, I'm using samba4

  • @ytgessle
    @ytgessle ปีที่แล้ว

    Can't install on Dir842 right. I got not enough space error.

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

    This is a really useful video. Thank you for making it !!

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

    My drive does not show up in Mounted file systems until I installed package "kmod-fs-ntfs" which did not mention in the video.

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

      Using kmod-fs-ntfs only provides read support while ntfs-3g provides both read & write support. You need to reboot the router after installed ntfs-3g. More info on the OpenWRT docs (links in video's description)

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

    I have successfully configured the share and permissions. I can see that in windows and phone bit when I try to access I get access denied. All SAMBA Share username and password logs on also fine. still access denied

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

    Can you please make another video toturial for ksmbd because samba a way to big for my WRT1900ACS. Can't install any update after using samba.

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

    hello, I am running the OpenWrt 21.02 on the Linksys WRT32X and managed to install USB storage, Block-Mount and Samba4 following your video, but after installed the Luci-app-samba4, the new "Service" menu didn't show up. Appreciate if you can answer what I done wrong. stay safe!

  • @nguijgitjiogdjiog
    @nguijgitjiogdjiog ปีที่แล้ว

    At 12:36 you say "press the exe keys and then columns and right click hit enter". I can't quite understand how to do that. What is the exe key?

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

      ESC. You can learn the basic of VI editor to understand how to edit a text file in Linux.

  • @patricklee6508
    @patricklee6508 ปีที่แล้ว

    I just got myself an used WRT1900ac V2 to test drive openwrt. I'm new to linux and openwrt. I tried few different USB HDD and USB drive. Nothing seems to be working. I read some articles online saying if the drive is being detected it should show under the /dev. What is simplest way to determined the drive is working or not? Thanks.

    • @VanTechCorner
      @VanTechCorner  ปีที่แล้ว

      Hey, the easiest way is connect the device into your computer, go to Disk Management to verify that.

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

    This was easy and clear. Thank you.

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

    i succesfully config everything but, why the transfer rate only 5MB/s on USB 3.0 an gigabit network? i used linksys ea7500 v2

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

      What is the format of the partition, is it ntfs or ext4. I have seen pool performance with ntfs/fat format.

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

      @@VanTechCorner it's ntfs, it fixed when i changed to ext4

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

    Hello friend. I have a nanopi r5c with m.2 nvme slot. is it possible to do this file sharing on the internal m.2 nvme slot?

    • @VanTechCorner
      @VanTechCorner  หลายเดือนก่อน +1

      Hi, it is possible. I already have a detail guide about this, you can check out the video at th-cam.com/video/LwCyzIiexfs/w-d-xo.htmlsi=RWJQXyPjyZoZ3t49
      Link to the guide: vantc.net/setup-file-sharing-smb-on-openwrt-with-samba4.html

  • @Nazmul.Alam_
    @Nazmul.Alam_ 2 ปีที่แล้ว +1

    Hello, My router doesn't have enough space to install samba4, is there any other package I can use to enable file sharing which lighter than samba4?

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

      Does your router has USB port with it?

    • @Nazmul.Alam_
      @Nazmul.Alam_ 2 ปีที่แล้ว

      @@a892728 Yes.

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

      @@Nazmul.Alam_
      1.try extroot
      2.use chfs as http file server

  • @cbellasbusta4643
    @cbellasbusta4643 2 วันที่ผ่านมา

    hi. at 12:34 u say "after we done hit the exc keys and then columns and right click hit enter". i can't quite make out your pronunciation. i've hit the E X C keys but it just adds those letters at the end of the word false. what am i doing wrong and what is the columns? i'm doing this on a windows 10 pc

    • @VanTechCorner
      @VanTechCorner  2 วันที่ผ่านมา

      Press ESC key to change to command mode
      Then press :wq to Write changes & Quit.
      This is the basic of edit files with Vi editor. You can learn on on Google in order to modify OpenWrt config easily

    • @cbellasbusta4643
      @cbellasbusta4643 วันที่ผ่านมา

      @@VanTechCorner ok thanks very much for that, cheers 👍

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

    what model of linksys you use on the video, bro?

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

      Hi, it is the Linksys WRT1900AC.

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

    I managed to get the drive to mount after some tries and succeeded in going through the tutorial. But when I upgraded my OpenWRT to 22.03.1, it deleted all the settings and I had to reinstall. This time I just can't get the drive to mount!! All drivers are installed and I can see the drive under Mount Points menu. So what didn't I do right?

    • @SteelTumbleweed
      @SteelTumbleweed ปีที่แล้ว

      I'm having the same problem.

    • @SteelTumbleweed
      @SteelTumbleweed ปีที่แล้ว

      I figured it out. I was missing the kmod-fs-ntfs package, which another commenter notes that it wasn't mentioned in the video. Good luck buddy!

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

      @@SteelTumbleweed thanks for the tip! Appreciate it!

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

      @@johnpang864 I think there might be a legitimate bug on the latest version. By attempting to use kmod-fs-ntfs I get an access denied when attempting to access the drive. I found a workaround which is to manually mount the drive using just ntfs-3g, uninstalling kmod-fs-ntfs and going to ssh and typing in: ntfs-3g /dev/sda1 /mnt/sda1 -o rw,big_writes

    • @johnpang864
      @johnpang864 ปีที่แล้ว

      @@SteelTumbleweed OK thanks!

  • @asifrais8927
    @asifrais8927 11 หลายเดือนก่อน

    ThankYou I installed the kmod packages and Ntfs 3G then Reboot now after rebooting my Belkin RT3200 is dead which I bought new Yesterday 😢

  • @portuguesechannel1761
    @portuguesechannel1761 ปีที่แล้ว

    how do you configure share without level user access I can't figure out

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

    Excelente vídeo.
    Estou tentando instalar openwrt em um TP-Link 750n. Desejo instalar nele rclone, montar GoogleDrive como disco, local. Fazer com que seja montado automaticamente no boot. Com a flag --destiny ( -) do opkg, instalar os pacotes como openvpn, samba, ddns, Lucy nesse reclone montado. Porém estou com dificuldade para fazer com que o rclone já monte o disco no start

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

    Hello , I just installed the x86 EFI openwrt version 21.02.0 , just released a few days ago ,
    on a machine and then enlarged the partition as you do and it all went well and the system said it was successful ... however when booting it up the system would not boot all the way and give message ' waiting for root device PARTUUID ' wondering if this is due to EFI , this is the first time I have seen an EFI listed in the default stable versions
    Maybe there is another task that needs to be done , do you know what the cause and fix is .
    thanks for your help !

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

    I'm unable to copy large files. Saying there is not enough space on device but I have a 1TB HDD mounted on the router. Anyone who can help?

  • @MdSiam-kw5ox
    @MdSiam-kw5ox 2 ปีที่แล้ว

    Thanks for the tutorial man.
    U are awesome.

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

    Thanks for the tutorial! How come samba wont let files/directories be named with a colon ( : ) ?

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

      :Illegal Filename Characters

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

    now this is what ive been waiting for!! thankyou so much van 😆😆

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

      btw, im using x86 openwrt and i want to share one of my folder in my hdd
      i hope its work

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

      well, i want to share my ext4 on my harddrive but i cant make it work 😢

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

      nvm its already work hehe 👌 thankyou once again

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

    Too bad, looks like the samba4 packages might be too big for my router (~10mb max storage 😢). Great content!

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

      you should still be able to remote mount a -ram- drive then use that as your bigger/extra home dir using sshfs perhaps.
      use a cheap pi4 -with usbc 8 in 1 USB C Hub Dongle with Ethernet ,sd cards etc- as a master openwrt then relegate your old router to a openwrt client.

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

      If you have 2 or more usb ports you can use extroot to increase the storage and install whichever packages you need.

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

      @@ItGuyTechTips @paul maydaynight both good options, thanks guys. It's a mobile setup, so I have the phone USB tethered through the router's single USB port. Maybe I can route the traffic through USB-to-Ethernet adapter, then hook an external drive through the USB 🤔

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

      @@johnweldon1932 which exact router do you have?

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

      If you dont want to do extroot, there is a hard way, compile your own image and include samba packages. The filesystem in OpenWrt has two layers, one compressed read-only and one modifiable. Something in the latter layer takes tens of megabytes could be just a few megabytes in the former layer.

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

    Excellent work this video!! Is possible make a video about config https on luci and proton vpn on openwrt 20?

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

    hello, thanks for the great videos
    i already try it and it works, but when i restart my x86 openwrt it not want to connect, any suggest?

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

      Hi, sorry for the late response. Did you solve the problem?

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

      @@VanTechCorner hi, actually no
      so i just reinstall my openwrt and its work fine

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

    the share is not accessible ?

  • @thyagorodriguesalvarez5264
    @thyagorodriguesalvarez5264 ปีที่แล้ว

    thanks a lot :)

  • @waleedtaqi6445
    @waleedtaqi6445 11 หลายเดือนก่อน

    are you on gigabit connection?

    • @VanTechCorner
      @VanTechCorner  11 หลายเดือนก่อน

      At the time of making this video - no
      Now - yes, and sometime I get up to 2Gbps throughput. You can check out my recent videos :)

    • @waleedtaqi6445
      @waleedtaqi6445 11 หลายเดือนก่อน

      @VanTechCorner i get 70mb/s max on gigabit with 5ghz wifi on ipad. but my phones wifi cant go past 433mbps on 5ghz. so the speed on phone is 25mb-ish something. even my phone supports AC wifi...on pc i get 110 mbps over smb and ftp.

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

    Sir..can we use this on the raspberry pi openwrt server? and can it work with usb printer?

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

      Hi, you can surely use this with RPI running OpenWRT. Samba does support USB printer but I have yet to try. Maybe you can give a try and share the result.

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

      @@VanTechCorner I see...thank you for your feedback..I'll share the result once I've try it

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

      you can try printer with p910nd

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

    not working , untill adding rule into firewall

  • @dimcheg100
    @dimcheg100 ปีที่แล้ว

    Thank you

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

    Does this work with FAT32 and ExFAT formatted drives?

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

      For ExFat maybe it work, but fat32 doesn’t.

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

      @@VanTechCorner thanks for your reply. Is FAT32 possible and do you have a video on this, thank you.

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

      Hi, fat32 is not working with this kind of sharing.

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

      @@VanTechCorner ok thank you.

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

    verify_pkg_installable: Only have 4912kb available on filesystem /overlay, pkg samba4-libs needs 7010
    * opkg_install_cmd: Cannot install package samba4-server.

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

      same problem, altought i have 115mB free space it said i dont have space enough to install it

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

    It wont let me write from windows? It says i dont have permission

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

      Hi, how about usin a phone? Did you enable write in Samba configuration. May I know what is the format of the USB device/ HDD that you are using?

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

    can i do it on r2s?

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

      Yes it will work just fine, as long as you can install the packages. However, the speed will be lower since R2S only has USB 2.0.

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

    I have no ideea what you said after inserting new user

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

      You can read the guide in the video description.

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

    such a great vid :)
    keep it up

  • @indethbed2546
    @indethbed2546 ปีที่แล้ว

    8:48 i have only 4.9 mb left - cannot continue any further

    • @indethbed2546
      @indethbed2546 ปีที่แล้ว

      ksmbd works as alt. to samb4

    • @indethbed2546
      @indethbed2546 ปีที่แล้ว

      using it as guest because it is a private network anyway and samba cmdlines and ksmbd cmdlines were different in password part... i am at my limits with the troubleshooting

    • @indethbed2546
      @indethbed2546 ปีที่แล้ว

      but yeah working. would like to automatically store screenshots there

    • @VanTechCorner
      @VanTechCorner  ปีที่แล้ว

      Thanks for the update bro! It is good that you solved the space limit problem.

  • @vinyht1723
    @vinyht1723 ปีที่แล้ว

    How to change User and Password

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

    Can i request for torrent install guide in openwrt 😅

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

    Argh! This is so frustrating. OpenWRT don't allow ssh to the router if it's not its default 192.168.1.1, so your command line instructions are useless to me with my device connected into my network the way it is.
    I cant default it back because then it won't have internet access.
    Why on Earth Samba4 can't be installed from LuCI like Samba3.6 can, I cannot fathom (although I know why since the -libs dependency has shot up in size to 7.4MB for some reason...).
    Then, to have to use the command line to add users and passwords is such a frustrating oversight to the LuCI-app.
    So close and yet so far...
    Great instructional video, though.

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

    In mobile it's not connecting while in pc it's working fine

  • @indethbed2546
    @indethbed2546 ปีที่แล้ว

    cannot mount... doesnt mount

    • @indethbed2546
      @indethbed2546 ปีที่แล้ว

      have to mount via cmd line

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

    tbh, i don't even know samba has reached version 4. 😌

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

    tôi đã mất 3 tiếng để làm được :))😀😀

  • @flyinbrianewing
    @flyinbrianewing ปีที่แล้ว

    where did you paste this line? "newuser:*:1000:65534:newuser:/var:/bin/false" You completely lost me at this point. which key is EXE and Column?

    • @VanTechCorner
      @VanTechCorner  ปีที่แล้ว

      Hello, you better spend sometime to understand how to edit a text file with VI Editor using CLI.
      Use ESC to switch to Command Mode
      Use I to switch to Insert Mode
      :wq to Write & Quit
      www.cs.colostate.edu/helpdocs/vi.html

    • @flyinbrianewing
      @flyinbrianewing ปีที่แล้ว

      @@VanTechCorner I was using Putty and I'm an amateur with it too. I did get it working without a password. I have no classified documents on the drive so it's not too important to have a password.