[{"data":1,"prerenderedAt":1366},["ShallowReactive",2],{"navigation_docs_en":3,"-en-general-networking-samba-":377,"-en-general-networking-samba--surround":1361},[4,16,94,262,271,332],{"title":5,"icon":6,"path":7,"stem":8,"children":9,"page":15},"About","i-noto-star","\u002Fen\u002Fabout","en\u002F1.about",[10],{"title":11,"path":12,"stem":13,"icon":14},"Welcome","\u002Fen\u002Fabout\u002Fwelcome","en\u002F1.about\u002F1.welcome","i-lucide-home",false,{"title":17,"icon":18,"path":19,"stem":20,"children":21,"page":15},"General","i-noto-open-book","\u002Fen\u002Fgeneral","en\u002F2.general",[22,26,44,58,76],{"title":17,"path":23,"stem":24,"icon":25},"\u002Fen\u002Fgeneral\u002Fsummary","en\u002F2.general\u002F1.summary","i-lucide-bookmark",{"title":27,"icon":28,"path":29,"stem":30,"children":31,"page":15},"Networking","i-lucide-network","\u002Fen\u002Fgeneral\u002Fnetworking","en\u002F2.general\u002F2.networking",[32,36,40],{"title":33,"path":34,"stem":35},"NAT & DHCP","\u002Fen\u002Fgeneral\u002Fnetworking\u002Fnat","en\u002F2.general\u002F2.networking\u002F1.nat",{"title":37,"path":38,"stem":39},"DNS Zone","\u002Fen\u002Fgeneral\u002Fnetworking\u002Fdns","en\u002F2.general\u002F2.networking\u002F2.dns",{"title":41,"path":42,"stem":43},"Samba","\u002Fen\u002Fgeneral\u002Fnetworking\u002Fsamba","en\u002F2.general\u002F2.networking\u002F3.samba",{"title":45,"icon":46,"path":47,"stem":48,"children":49,"page":15},"Storage","i-lucide-hard-drive","\u002Fen\u002Fgeneral\u002Fstorage","en\u002F2.general\u002F3.storage",[50,54],{"title":51,"path":52,"stem":53},"RAID","\u002Fen\u002Fgeneral\u002Fstorage\u002Fraid","en\u002F2.general\u002F3.storage\u002F1.raid",{"title":55,"path":56,"stem":57},"ZFS","\u002Fen\u002Fgeneral\u002Fstorage\u002Fzfs","en\u002F2.general\u002F3.storage\u002F2.zfs",{"title":59,"icon":60,"path":61,"stem":62,"children":63,"page":15},"Hardware","i-lucide-server","\u002Fen\u002Fgeneral\u002Fhardware","en\u002F2.general\u002F4.hardware",[64,68,72],{"title":65,"path":66,"stem":67},"The Basics","\u002Fen\u002Fgeneral\u002Fhardware\u002Fbasics","en\u002F2.general\u002F4.hardware\u002F1.basics",{"title":69,"path":70,"stem":71},"Network","\u002Fen\u002Fgeneral\u002Fhardware\u002Fnetwork","en\u002F2.general\u002F4.hardware\u002F2.network",{"title":73,"path":74,"stem":75},"The ProloNAS","\u002Fen\u002Fgeneral\u002Fhardware\u002Fprolonas","en\u002F2.general\u002F4.hardware\u002F3.prolonas",{"title":77,"icon":78,"path":79,"stem":80,"children":81,"page":15},"Linux tips for dummies","i-lucide-terminal","\u002Fen\u002Fgeneral\u002Flinux","en\u002F2.general\u002F5.linux",[82,86,90],{"title":83,"path":84,"stem":85},"Command line basics","\u002Fen\u002Fgeneral\u002Flinux\u002Fcli-basics","en\u002F2.general\u002F5.linux\u002F1.cli-basics",{"title":87,"path":88,"stem":89},"Folders and partitions","\u002Fen\u002Fgeneral\u002Flinux\u002Ffilesystem","en\u002F2.general\u002F5.linux\u002F2.filesystem",{"title":91,"path":92,"stem":93},"Handy CLI tools","\u002Fen\u002Fgeneral\u002Flinux\u002Fhandy-tools","en\u002F2.general\u002F5.linux\u002F3.handy-tools",{"title":95,"icon":96,"path":97,"stem":98,"children":99,"page":15},"Serveex","i-noto-microscope","\u002Fen\u002Fserveex","en\u002F3.serveex",[100,104,126,144,170,188,202,216,234,248],{"title":101,"path":102,"stem":103,"icon":25},"Introduction","\u002Fen\u002Fserveex\u002Fintroduction","en\u002F3.serveex\u002F1.introduction",{"title":105,"icon":106,"path":107,"stem":108,"children":109,"page":15},"Server core","i-lucide-server-cog","\u002Fen\u002Fserveex\u002Fcore","en\u002F3.serveex\u002F2.core",[110,114,118,122],{"title":111,"path":112,"stem":113},"Debian 13","\u002Fen\u002Fserveex\u002Fcore\u002Finstallation","en\u002F3.serveex\u002F2.core\u002F1.installation",{"title":115,"path":116,"stem":117},"Docker","\u002Fen\u002Fserveex\u002Fcore\u002Fdocker","en\u002F3.serveex\u002F2.core\u002F2.docker",{"title":119,"path":120,"stem":121},"Wireguard","\u002Fen\u002Fserveex\u002Fcore\u002Fwireguard","en\u002F3.serveex\u002F2.core\u002F3.wireguard",{"title":123,"path":124,"stem":125},"SWAG","\u002Fen\u002Fserveex\u002Fcore\u002Fswag","en\u002F3.serveex\u002F2.core\u002F4.swag",{"title":127,"icon":128,"path":129,"stem":130,"children":131,"page":15},"Security","i-lucide-shield","\u002Fen\u002Fserveex\u002Fsecurity","en\u002F3.serveex\u002F3.security",[132,136,140],{"title":133,"path":134,"stem":135},"Cloudflare Zero Trust","\u002Fen\u002Fserveex\u002Fsecurity\u002Fcloudflare","en\u002F3.serveex\u002F3.security\u002F2.cloudflare",{"title":137,"path":138,"stem":139},"TinyAuth","\u002Fen\u002Fserveex\u002Fsecurity\u002Ftinyauth","en\u002F3.serveex\u002F3.security\u002F3.tinyauth",{"title":141,"path":142,"stem":143},"Pocket ID","\u002Fen\u002Fserveex\u002Fsecurity\u002Fpocket-id","en\u002F3.serveex\u002F3.security\u002F4.pocket-id",{"title":145,"icon":146,"path":147,"stem":148,"children":149,"page":15},"Monitoring","i-lucide-chart-no-axes-column","\u002Fen\u002Fserveex\u002Fmonitoring","en\u002F3.serveex\u002F4.monitoring",[150,154,158,162,166],{"title":151,"path":152,"stem":153},"Uptime-Kuma","\u002Fen\u002Fserveex\u002Fmonitoring\u002Fuptime-kuma","en\u002F3.serveex\u002F4.monitoring\u002F1.uptime-kuma",{"title":155,"path":156,"stem":157},"Dozzle","\u002Fen\u002Fserveex\u002Fmonitoring\u002Fdozzle","en\u002F3.serveex\u002F4.monitoring\u002F2.dozzle",{"title":159,"path":160,"stem":161},"Speedtest Tracker","\u002Fen\u002Fserveex\u002Fmonitoring\u002Fspeedtest-tracker","en\u002F3.serveex\u002F4.monitoring\u002F3.speedtest-tracker",{"title":163,"path":164,"stem":165},"Beszel","\u002Fen\u002Fserveex\u002Fmonitoring\u002Fbeszel","en\u002F3.serveex\u002F4.monitoring\u002F4.beszel",{"title":167,"path":168,"stem":169},"UpSnap","\u002Fen\u002Fserveex\u002Fmonitoring\u002Fupsnap","en\u002F3.serveex\u002F4.monitoring\u002F5.upsnap",{"title":171,"icon":172,"path":173,"stem":174,"children":175,"page":15},"Media & Seedbox","i-lucide-list-video","\u002Fen\u002Fserveex\u002Fmedia","en\u002F3.serveex\u002F5.media",[176,180,184],{"title":177,"path":178,"stem":179},"Jellyfin","\u002Fen\u002Fserveex\u002Fmedia\u002Fjellyfin","en\u002F3.serveex\u002F5.media\u002F1.jellyfin",{"title":181,"path":182,"stem":183},"Qbittorrent","\u002Fen\u002Fserveex\u002Fmedia\u002Fqbittorrent","en\u002F3.serveex\u002F5.media\u002F2.qbittorrent",{"title":185,"path":186,"stem":187},"Automation","\u002Fen\u002Fserveex\u002Fmedia\u002Fservarr","en\u002F3.serveex\u002F5.media\u002F3.servarr",{"title":189,"icon":190,"path":191,"stem":192,"children":193,"page":15},"Cloud Drive & Photos","i-lucide-cloud-upload","\u002Fen\u002Fserveex\u002Fcloud","en\u002F3.serveex\u002F6.cloud",[194,198],{"title":195,"path":196,"stem":197},"Immich","\u002Fen\u002Fserveex\u002Fcloud\u002Fimmich","en\u002F3.serveex\u002F6.cloud\u002F1.immich",{"title":199,"path":200,"stem":201},"Nextcloud","\u002Fen\u002Fserveex\u002Fcloud\u002Fnextcloud","en\u002F3.serveex\u002F6.cloud\u002F2.nextcloud",{"title":203,"icon":204,"path":205,"stem":206,"children":207,"page":15},"File & share","i-lucide-folder-tree","\u002Fen\u002Fserveex\u002Ffiles","en\u002F3.serveex\u002F7.files",[208,212],{"title":209,"path":210,"stem":211},"File Browser Quantum","\u002Fen\u002Fserveex\u002Ffiles\u002Ffile-browser-quantum","en\u002F3.serveex\u002F7.files\u002F1.file-browser-quantum",{"title":213,"path":214,"stem":215},"Pingvin","\u002Fen\u002Fserveex\u002Ffiles\u002Fpingvin","en\u002F3.serveex\u002F7.files\u002F2.pingvin",{"title":217,"icon":218,"path":219,"stem":220,"children":221,"page":15},"Developpement","i-lucide-code-xml","\u002Fen\u002Fserveex\u002Fdevelopment","en\u002F3.serveex\u002F8.development",[222,226,230],{"title":223,"path":224,"stem":225},"Code-Server","\u002Fen\u002Fserveex\u002Fdevelopment\u002Fcode-server","en\u002F3.serveex\u002F8.development\u002F1.code-server",{"title":227,"path":228,"stem":229},"Forgejo","\u002Fen\u002Fserveex\u002Fdevelopment\u002Fforgejo","en\u002F3.serveex\u002F8.development\u002F2.forgejo",{"title":231,"path":232,"stem":233},"IT Tools","\u002Fen\u002Fserveex\u002Fdevelopment\u002Fit-tools","en\u002F3.serveex\u002F8.development\u002F3.it-tools",{"title":235,"icon":236,"path":237,"stem":238,"children":239,"page":15},"Useful Apps","i-lucide-award","\u002Fen\u002Fserveex\u002Fapps","en\u002F3.serveex\u002F9.apps",[240,244],{"title":241,"path":242,"stem":243},"Adguard Home","\u002Fen\u002Fserveex\u002Fapps\u002Fadguard","en\u002F3.serveex\u002F9.apps\u002F1.adguard",{"title":245,"path":246,"stem":247},"Vaultwarden","\u002Fen\u002Fserveex\u002Fapps\u002Fvaultwarden","en\u002F3.serveex\u002F9.apps\u002F2.vaultwarden",{"title":249,"icon":250,"path":251,"stem":252,"children":253,"page":15},"Advanced","i-lucide-flask-conical","\u002Fen\u002Fserveex\u002Fadvanced","en\u002F3.serveex\u002F91.advanced",[254,258],{"title":255,"path":256,"stem":257},"Authentik","\u002Fen\u002Fserveex\u002Fadvanced\u002Fauthentik","en\u002F3.serveex\u002F91.advanced\u002F1.authentik",{"title":259,"path":260,"stem":261},"Arcane","\u002Fen\u002Fserveex\u002Fadvanced\u002Farcane","en\u002F3.serveex\u002F91.advanced\u002F2.arcane",{"title":263,"icon":264,"path":265,"stem":266,"children":267,"page":15},"Stockeex","i-noto-computer-disk","\u002Fen\u002Fstockeex","en\u002F4.stockeex",[268],{"title":101,"path":269,"stem":270,"icon":25},"\u002Fen\u002Fstockeex\u002Fintroduction","en\u002F4.stockeex\u002F1.introduction",{"title":272,"icon":273,"path":274,"stem":275,"children":276,"page":15},"My nonsense","i-noto-test-tube","\u002Fen\u002Fnonsense","en\u002F5.nonsense",[277,280,302],{"title":272,"path":278,"stem":279,"icon":25},"\u002Fen\u002Fnonsense\u002Fsummary","en\u002F5.nonsense\u002F1.summary",{"title":281,"icon":282,"path":283,"stem":284,"children":285,"page":15},"Python","i-lucide-file-code-2","\u002Fen\u002Fnonsense\u002Fpython","en\u002F5.nonsense\u002F2.python",[286,290,294,298],{"title":287,"path":288,"stem":289},"Nvidia Stock Bot","\u002Fen\u002Fnonsense\u002Fpython\u002Fnvidia-stock-bot","en\u002F5.nonsense\u002F2.python\u002F1.nvidia-stock-bot",{"title":291,"path":292,"stem":293},"Adguard CIDRE","\u002Fen\u002Fnonsense\u002Fpython\u002Fadguard-cidre","en\u002F5.nonsense\u002F2.python\u002F2.adguard-cidre",{"title":295,"path":296,"stem":297},"Lumeex","\u002Fen\u002Fnonsense\u002Fpython\u002Flumeex","en\u002F5.nonsense\u002F2.python\u002F3.lumeex",{"title":299,"path":300,"stem":301},"Instameex","\u002Fen\u002Fnonsense\u002Fpython\u002Finstameex","en\u002F5.nonsense\u002F2.python\u002F4.instameex",{"title":303,"icon":304,"path":305,"stem":306,"children":307,"page":15},"Bash","i-lucide-file-terminal","\u002Fen\u002Fnonsense\u002Fbash","en\u002F5.nonsense\u002F3.bash",[308,312,316,320,324,328],{"title":309,"path":310,"stem":311},"Servarr corrector","\u002Fen\u002Fnonsense\u002Fbash\u002Fservarr-duplicates","en\u002F5.nonsense\u002F3.bash\u002F1.servarr-duplicates",{"title":313,"path":314,"stem":315},"LUKS Backup","\u002Fen\u002Fnonsense\u002Fbash\u002Fluks-backup","en\u002F5.nonsense\u002F3.bash\u002F2.luks-backup",{"title":317,"path":318,"stem":319},"Socat Proxy","\u002Fen\u002Fnonsense\u002Fbash\u002Fsocat-proxy","en\u002F5.nonsense\u002F3.bash\u002F3.socat-proxy",{"title":321,"path":322,"stem":323},"HotDisk","\u002Fen\u002Fnonsense\u002Fbash\u002Fhotdisk","en\u002F5.nonsense\u002F3.bash\u002F4.hotdisk",{"title":325,"path":326,"stem":327},"Backrest Docker Stop","\u002Fen\u002Fnonsense\u002Fbash\u002Fbackrest-docker-stop","en\u002F5.nonsense\u002F3.bash\u002F5.backrest-docker-stop",{"title":329,"path":330,"stem":331},"rm Confirmation Guard","\u002Fen\u002Fnonsense\u002Fbash\u002Frm-confirmation","en\u002F5.nonsense\u002F3.bash\u002F6.rm-confirmation",{"title":333,"icon":334,"path":335,"stem":336,"children":337,"page":15},"Recycled","i-noto-recycling-symbol","\u002Fen\u002Frecycled","en\u002F6.recycled",[338,341,355],{"title":333,"path":339,"stem":340,"icon":25},"\u002Fen\u002Frecycled\u002Fsummary","en\u002F6.recycled\u002F1.summary",{"title":342,"icon":343,"path":344,"stem":345,"children":346,"page":15},"Deprecated","i-lucide-trash-2","\u002Fen\u002Frecycled\u002Fdeprecated","en\u002F6.recycled\u002F2.deprecated",[347,351],{"title":348,"path":349,"stem":350},"Wireguard 14","\u002Fen\u002Frecycled\u002Fdeprecated\u002Fwireguard-14","en\u002F6.recycled\u002F2.deprecated\u002F1.wireguard-14",{"title":352,"path":353,"stem":354},"File Browser","\u002Fen\u002Frecycled\u002Fdeprecated\u002Ffile-browser","en\u002F6.recycled\u002F2.deprecated\u002F2.file-browser",{"title":356,"icon":357,"path":358,"stem":359,"children":360,"page":15},"Alternatives","i-lucide-arrow-left-right","\u002Fen\u002Frecycled\u002Falternatives","en\u002F6.recycled\u002F3.alternatives",[361,365,369,373],{"title":362,"path":363,"stem":364},"Plex","\u002Fen\u002Frecycled\u002Falternatives\u002Fplex","en\u002F6.recycled\u002F3.alternatives\u002F1.plex",{"title":366,"path":367,"stem":368},"Qbittorrent for Plex","\u002Fen\u002Frecycled\u002Falternatives\u002Fqbittorrent-for-plex","en\u002F6.recycled\u002F3.alternatives\u002F2.qbittorrent for plex",{"title":370,"path":371,"stem":372},"Servarr for Plex","\u002Fen\u002Frecycled\u002Falternatives\u002Fservarr-for-plex","en\u002F6.recycled\u002F3.alternatives\u002F3.servarr for plex",{"title":374,"path":375,"stem":376},"Gitea","\u002Fen\u002Frecycled\u002Falternatives\u002Fgitea","en\u002F6.recycled\u002F3.alternatives\u002F4.gitea",{"id":378,"title":41,"body":379,"contributors":1352,"description":1354,"extension":1355,"hideCopyPage":15,"hideHeader":15,"hideToc":15,"links":1356,"meta":1357,"navigation":1358,"path":42,"seo":1359,"stem":43,"__hash__":1360},"docs_en\u002Fen\u002F2.general\u002F2.networking\u002F3.samba.md",{"type":380,"value":381,"toc":1330},"minimark",[382,390,394,397,404,409,430,705,709,712,881,885,1301,1326],[383,384],"ellipsis",{"blur":385,"left":386,"top":387,"width":388,"z-index":389},"140px","0px","10rem","40rem","60",[391,392,393],"p",{},"Samba is a protocol that allows access to a folder located on a network drive. It can be configured on macOS, Windows, or Linux.",[391,395,396],{},"There are many tutorials for setting up Samba on Windows or on NAS systems like Synology, but here we focus on Debian.",[391,398,399],{},[400,401],"img",{"alt":402,"src":403},"samba","\u002Fimg\u002Fglobal\u002Fsmb.svg",[405,406,408],"h2",{"id":407},"create-and-configure-a-shared-network-folder","Create and configure a Shared Network Folder",[410,411,412,413,417,418,421,422,425,426,429],"note",{},"In this example, we will share the ",[414,415,416],"code",{},"\u002Fvideo"," folder from a remote machine called ",[414,419,420],{},"remote-machine",". We will access this folder from a machine called ",[414,423,424],{},"local-machine",". The user connecting to the network drive will be ",[414,427,428],{},"sambauser",".",[431,432,434,439,496,503,518,522,528,543,556,567,570,685,701],"steps",{"level":433},"3",[435,436,438],"h3",{"id":437},"install-samba-server","Install Samba Server",[440,441,447],"pre",{"className":442,"code":443,"filename":444,"language":445,"meta":446,"style":446},"language-bash shiki shiki-themes github-dark material-theme github-dark","sudo apt update && sudo apt upgrade\nsudo apt install samba smbclient cifs-utils\n","Terminal","bash","",[414,448,449,477],{"__ignoreMap":446},[450,451,454,458,462,465,469,472,474],"span",{"class":452,"line":453},"line",1,[450,455,457],{"class":456},"sEgDM","sudo",[450,459,461],{"class":460},"s11XM"," apt",[450,463,464],{"class":460}," update",[450,466,468],{"class":467},"s8jd1"," &&",[450,470,471],{"class":456}," sudo",[450,473,461],{"class":460},[450,475,476],{"class":460}," upgrade\n",[450,478,480,482,484,487,490,493],{"class":452,"line":479},2,[450,481,457],{"class":456},[450,483,461],{"class":460},[450,485,486],{"class":460}," install",[450,488,489],{"class":460}," samba",[450,491,492],{"class":460}," smbclient",[450,494,495],{"class":460}," cifs-utils\n",[435,497,499,500,502],{"id":498},"create-the-video-folder","Create the ",[414,501,416],{}," Folder",[440,504,506],{"className":442,"code":505,"filename":444,"language":445,"meta":446,"style":446},"sudo mkdir \u002Fvideo\n",[414,507,508],{"__ignoreMap":446},[450,509,510,512,515],{"class":452,"line":453},[450,511,457],{"class":456},[450,513,514],{"class":460}," mkdir",[450,516,517],{"class":460}," \u002Fvideo\n",[435,519,521],{"id":520},"configure-the-share","Configure the Share",[391,523,524,525,429],{},"Now, edit the file ",[414,526,527],{},"\u002Fetc\u002Fsamba\u002Fsmb.conf",[440,529,531],{"className":442,"code":530,"filename":444,"language":445,"meta":446,"style":446},"sudo nano \u002Fetc\u002Fsamba\u002Fsmb.conf\n",[414,532,533],{"__ignoreMap":446},[450,534,535,537,540],{"class":452,"line":453},[450,536,457],{"class":456},[450,538,539],{"class":460}," nano",[450,541,542],{"class":460}," \u002Fetc\u002Fsamba\u002Fsmb.conf\n",[544,545,547,548,552,553,555],"tip",{"icon":446,"to":546},"\u002Fserveex\u002Ffiles\u002Ffile-browser-quantum","✨ ",[549,550,551],"strong",{},"Tip:"," You can use ",[549,554,209],{}," to navigate and edit your files instead of using terminal commands.",[391,557,558,559,562,563,566],{},"Find the ",[414,560,561],{},"workgroup"," variable and name your workgroup (e.g., ",[414,564,565],{},"workgroup = WORKGROUP",").",[391,568,569],{},"Then scroll to the end of the file and add the following configuration:",[440,571,576],{"className":572,"code":573,"filename":574,"language":575,"meta":446,"style":446},"language-properties shiki shiki-themes github-dark material-theme github-dark","[video]\n   comment = Video folder\n   path = \u002Fvideo\n   writable = yes\n   guest ok = no\n   valid users = @smbshare\n   force create mode = 770\n   force directory mode = 770\n   inherit permissions = yes\n","smb.conf","properties",[414,577,578,584,597,607,618,632,646,660,672],{"__ignoreMap":446},[450,579,580],{"class":452,"line":453},[450,581,583],{"class":582},"srnIM","[video]\n",[450,585,586,590,593],{"class":452,"line":479},[450,587,589],{"class":588},"szyEh","   comment",[450,591,592],{"class":467}," =",[450,594,596],{"class":595},"slcoZ"," Video folder\n",[450,598,600,603,605],{"class":452,"line":599},3,[450,601,602],{"class":588},"   path",[450,604,592],{"class":467},[450,606,517],{"class":595},[450,608,610,613,615],{"class":452,"line":609},4,[450,611,612],{"class":588},"   writable",[450,614,592],{"class":467},[450,616,617],{"class":595}," yes\n",[450,619,621,624,627,629],{"class":452,"line":620},5,[450,622,623],{"class":595},"   guest ",[450,625,626],{"class":588},"ok",[450,628,592],{"class":467},[450,630,631],{"class":595}," no\n",[450,633,635,638,641,643],{"class":452,"line":634},6,[450,636,637],{"class":595},"   valid ",[450,639,640],{"class":588},"users",[450,642,592],{"class":467},[450,644,645],{"class":595}," @smbshare\n",[450,647,649,652,655,657],{"class":452,"line":648},7,[450,650,651],{"class":595},"   force create ",[450,653,654],{"class":588},"mode",[450,656,592],{"class":467},[450,658,659],{"class":595}," 770\n",[450,661,663,666,668,670],{"class":452,"line":662},8,[450,664,665],{"class":595},"   force directory ",[450,667,654],{"class":588},[450,669,592],{"class":467},[450,671,659],{"class":595},[450,673,675,678,681,683],{"class":452,"line":674},9,[450,676,677],{"class":595},"   inherit ",[450,679,680],{"class":588},"permissions",[450,682,592],{"class":467},[450,684,617],{"class":595},[391,686,687,688,692,693,696,697,700],{},"Press ",[689,690],"kbd",{"value":691},"Ctrl+O",", then ",[689,694],{"value":695},"Enter"," to save, and ",[689,698],{"value":699},"Ctrl+X"," to exit.",[435,702,704],{"id":703},"done","Done !",[435,706,708],{"id":707},"create-a-samba-user-and-group","Create a Samba User and Group",[391,710,711],{},"Since we're using a secured share, we need to create a user and group to access it remotely.",[431,713,714,718,733,739,760,763,781,785,788,812,819,838,841,858,862,878],{"level":433},[435,715,717],{"id":716},"create-the-group","Create the group",[440,719,721],{"className":442,"code":720,"filename":444,"language":445,"meta":446,"style":446},"sudo groupadd smbshare\n",[414,722,723],{"__ignoreMap":446},[450,724,725,727,730],{"class":452,"line":453},[450,726,457],{"class":456},[450,728,729],{"class":460}," groupadd",[450,731,732],{"class":460}," smbshare\n",[391,734,735,736,738],{},"Give the group control over the ",[414,737,416],{}," folder:",[440,740,742],{"className":442,"code":741,"filename":444,"language":445,"meta":446,"style":446},"sudo chgrp -R smbshare \u002Fvideo\n",[414,743,744],{"__ignoreMap":446},[450,745,746,748,751,755,758],{"class":452,"line":453},[450,747,457],{"class":456},[450,749,750],{"class":460}," chgrp",[450,752,754],{"class":753},"sJWha"," -R",[450,756,757],{"class":460}," smbshare",[450,759,517],{"class":460},[391,761,762],{},"Set inherited permissions:",[440,764,766],{"className":442,"code":765,"filename":444,"language":445,"meta":446,"style":446},"sudo chmod 2775 \u002Fvideo\n",[414,767,768],{"__ignoreMap":446},[450,769,770,772,775,779],{"class":452,"line":453},[450,771,457],{"class":456},[450,773,774],{"class":460}," chmod",[450,776,778],{"class":777},"swwWl"," 2775",[450,780,517],{"class":460},[435,782,784],{"id":783},"create-the-user","Create the user",[391,786,787],{},"Now add a no-login user: this user cannot log into the server but can access Samba.",[440,789,791],{"className":442,"code":790,"filename":444,"language":445,"meta":446,"style":446},"sudo useradd -M -s \u002Fsbin\u002Fnologin sambauser\n",[414,792,793],{"__ignoreMap":446},[450,794,795,797,800,803,806,809],{"class":452,"line":453},[450,796,457],{"class":456},[450,798,799],{"class":460}," useradd",[450,801,802],{"class":753}," -M",[450,804,805],{"class":753}," -s",[450,807,808],{"class":460}," \u002Fsbin\u002Fnologin",[450,810,811],{"class":460}," sambauser\n",[391,813,814,815,818],{},"Add the user to the ",[414,816,817],{},"smbshare"," group:",[440,820,822],{"className":442,"code":821,"filename":444,"language":445,"meta":446,"style":446},"sudo usermod -aG smbshare sambauser\n",[414,823,824],{"__ignoreMap":446},[450,825,826,828,831,834,836],{"class":452,"line":453},[450,827,457],{"class":456},[450,829,830],{"class":460}," usermod",[450,832,833],{"class":753}," -aG",[450,835,757],{"class":460},[450,837,811],{"class":460},[391,839,840],{},"Set a Samba password:",[440,842,844],{"className":442,"code":843,"filename":444,"language":445,"meta":446,"style":446},"sudo smbpasswd -a sambauser\n",[414,845,846],{"__ignoreMap":446},[450,847,848,850,853,856],{"class":452,"line":453},[450,849,457],{"class":456},[450,851,852],{"class":460}," smbpasswd",[450,854,855],{"class":753}," -a",[450,857,811],{"class":460},[435,859,861],{"id":860},"enable-the-samba-account","Enable the Samba account",[440,863,865],{"className":442,"code":864,"filename":444,"language":445,"meta":446,"style":446},"sudo smbpasswd -e sambauser\n",[414,866,867],{"__ignoreMap":446},[450,868,869,871,873,876],{"class":452,"line":453},[450,870,457],{"class":456},[450,872,852],{"class":460},[450,874,875],{"class":753}," -e",[450,877,811],{"class":460},[435,879,704],{"id":880},"done-1",[405,882,884],{"id":883},"accessing-a-shared-folder","Accessing a Shared Folder",[431,886,887,891,922,926,935,949,953,960,966,989,992,1018,1035,1043,1046,1062,1066,1117,1120,1149,1159,1162,1178,1181,1193,1197,1204,1207,1225,1228,1265,1268,1280,1283,1297],{"level":433},[435,888,890],{"id":889},"install-required-packages","Install Required Packages",[440,892,894],{"className":442,"code":893,"filename":444,"language":445,"meta":446,"style":446},"sudo apt update && sudo apt upgrade\nsudo apt install cifs-utils\n",[414,895,896,912],{"__ignoreMap":446},[450,897,898,900,902,904,906,908,910],{"class":452,"line":453},[450,899,457],{"class":456},[450,901,461],{"class":460},[450,903,464],{"class":460},[450,905,468],{"class":467},[450,907,471],{"class":456},[450,909,461],{"class":460},[450,911,476],{"class":460},[450,913,914,916,918,920],{"class":452,"line":479},[450,915,457],{"class":456},[450,917,461],{"class":460},[450,919,486],{"class":460},[450,921,495],{"class":460},[435,923,925],{"id":924},"create-the-mount-destination","Create the Mount Destination",[391,927,928,929,931,932,429],{},"We will create a folder on our local machine where the remote ",[414,930,416],{}," folder will be mounted, e.g. ",[414,933,934],{},"\u002Fmnt\u002Fvideo",[440,936,938],{"className":442,"code":937,"filename":444,"language":445,"meta":446,"style":446},"sudo mkdir \u002Fmnt\u002Fvideo\n",[414,939,940],{"__ignoreMap":446},[450,941,942,944,946],{"class":452,"line":453},[450,943,457],{"class":456},[450,945,514],{"class":460},[450,947,948],{"class":460}," \u002Fmnt\u002Fvideo\n",[435,950,952],{"id":951},"prepare-the-credentials-file","Prepare the .credentials File",[391,954,955,956,959],{},"To avoid typing our username and password every time, create a ",[414,957,958],{},".credentials"," file storing the login info.",[391,961,962,963,738],{},"Create it in the ",[414,964,965],{},"\u002Fsmb",[440,967,969],{"className":442,"code":968,"filename":444,"language":445,"meta":446,"style":446},"sudo mkdir \u002Fsmb\nsudo nano \u002Fsmb\u002F.credentials\n",[414,970,971,980],{"__ignoreMap":446},[450,972,973,975,977],{"class":452,"line":453},[450,974,457],{"class":456},[450,976,514],{"class":460},[450,978,979],{"class":460}," \u002Fsmb\n",[450,981,982,984,986],{"class":452,"line":479},[450,983,457],{"class":456},[450,985,539],{"class":460},[450,987,988],{"class":460}," \u002Fsmb\u002F.credentials\n",[391,990,991],{},"Write:",[440,993,995],{"className":572,"code":994,"filename":958,"language":575,"meta":446,"style":446},"username=smbuser\npassword=password\n",[414,996,997,1008],{"__ignoreMap":446},[450,998,999,1002,1005],{"class":452,"line":453},[450,1000,1001],{"class":588},"username",[450,1003,1004],{"class":467},"=",[450,1006,1007],{"class":595},"smbuser\n",[450,1009,1010,1013,1015],{"class":452,"line":479},[450,1011,1012],{"class":588},"password",[450,1014,1004],{"class":467},[450,1016,1017],{"class":595},"password\n",[1019,1020,1021,1030],"ul",{},[1022,1023,1024,1027,1028],"li",{},[414,1025,1026],{},"smbuser",": the user we created on the ",[414,1029,420],{},[1022,1031,1032,1034],{},[414,1033,1012],{},": the password set earlier",[391,1036,687,1037,692,1039,696,1041,700],{},[689,1038],{"value":691},[689,1040],{"value":695},[689,1042],{"value":699},[391,1044,1045],{},"Set proper file permissions:",[440,1047,1049],{"className":442,"code":1048,"filename":444,"language":445,"meta":446,"style":446},"sudo chmod 600 \u002Fsmb\u002F.credentials\n",[414,1050,1051],{"__ignoreMap":446},[450,1052,1053,1055,1057,1060],{"class":452,"line":453},[450,1054,457],{"class":456},[450,1056,774],{"class":460},[450,1058,1059],{"class":777}," 600",[450,1061,988],{"class":460},[435,1063,1065],{"id":1064},"mount-the-shared-folder","Mount the Shared Folder",[1067,1068,1069,1075],"warning",{},[391,1070,1071,1074],{},[549,1072,1073],{},"Warning:"," If you're using ufw as firewall, you need to add a rule to allow your remote server to access to your share.",[440,1076,1078],{"className":442,"code":1077,"filename":444,"language":445,"meta":446,"style":446},"sudo ufw allow from \u003Cyour-remote-ip> to any app Samba\n",[414,1079,1080],{"__ignoreMap":446},[450,1081,1082,1084,1087,1090,1093,1097,1100,1102,1105,1108,1111,1114],{"class":452,"line":453},[450,1083,457],{"class":456},[450,1085,1086],{"class":460}," ufw",[450,1088,1089],{"class":460}," allow",[450,1091,1092],{"class":460}," from",[450,1094,1096],{"class":1095},"sJPTy"," \u003C",[450,1098,1099],{"class":460},"your-remote-i",[450,1101,391],{"class":595},[450,1103,1104],{"class":1095},">",[450,1106,1107],{"class":460}," to",[450,1109,1110],{"class":460}," any",[450,1112,1113],{"class":460}," app",[450,1115,1116],{"class":460}," Samba\n",[391,1118,1119],{},"Now mount the folder:",[440,1121,1123],{"className":442,"code":1122,"filename":444,"language":445,"meta":446,"style":446},"sudo mount -t cifs -o credentials=\u002Fsmb\u002F.credentials \u002F\u002Fremote-ip\u002Fvideo \u002Fmnt\u002Fvideo\n",[414,1124,1125],{"__ignoreMap":446},[450,1126,1127,1129,1132,1135,1138,1141,1144,1147],{"class":452,"line":453},[450,1128,457],{"class":456},[450,1130,1131],{"class":460}," mount",[450,1133,1134],{"class":753}," -t",[450,1136,1137],{"class":460}," cifs",[450,1139,1140],{"class":753}," -o",[450,1142,1143],{"class":460}," credentials=\u002Fsmb\u002F.credentials",[450,1145,1146],{"class":460}," \u002F\u002Fremote-ip\u002Fvideo",[450,1148,948],{"class":460},[391,1150,1151,1152,1155,1156,1158],{},"Replace ",[414,1153,1154],{},"remote-ip"," with your ",[414,1157,420],{},"'s IP address.",[391,1160,1161],{},"Verify the mount:",[440,1163,1165],{"className":442,"code":1164,"filename":444,"language":445,"meta":446,"style":446},"sudo mount -t cifs\n",[414,1166,1167],{"__ignoreMap":446},[450,1168,1169,1171,1173,1175],{"class":452,"line":453},[450,1170,457],{"class":456},[450,1172,1131],{"class":460},[450,1174,1134],{"class":753},[450,1176,1177],{"class":460}," cifs\n",[391,1179,1180],{},"You’ll see details confirming the mount is successful.",[391,1182,1183,1184,1186,1187,1189,1190,1192],{},"Now you can access the ",[414,1185,416],{}," folder of the ",[414,1188,420],{}," from your ",[414,1191,424],{},"!",[435,1194,1196],{"id":1195},"optional-auto-mount-on-boot","(Optional) Auto-mount on Boot",[391,1198,1199,1200,1203],{},"By default, shares aren't auto-mounted after reboot. To automate this, edit the ",[414,1201,1202],{},"\u002Fetc\u002Ffstab"," file.",[391,1205,1206],{},"First, back it up:",[440,1208,1210],{"className":442,"code":1209,"filename":444,"language":445,"meta":446,"style":446},"sudo cp \u002Fetc\u002Ffstab \u002Fetc\u002Ffstab.bak\n",[414,1211,1212],{"__ignoreMap":446},[450,1213,1214,1216,1219,1222],{"class":452,"line":453},[450,1215,457],{"class":456},[450,1217,1218],{"class":460}," cp",[450,1220,1221],{"class":460}," \u002Fetc\u002Ffstab",[450,1223,1224],{"class":460}," \u002Fetc\u002Ffstab.bak\n",[391,1226,1227],{},"Then add the mount configuration line:",[440,1229,1231],{"className":442,"code":1230,"filename":444,"language":445,"meta":446,"style":446},"sudo echo \u002F\u002Fremote-ip\u002Fvideo    \u002Fmnt\u002Fvideo  cifs   _netdev,nofail,credentials=\u002Fsmb\u002F.credentials,x-systemd.automount,x-systemd.device-timeout=15 0 0 >> \u002Fetc\u002Ffstab\n",[414,1232,1233],{"__ignoreMap":446},[450,1234,1235,1237,1240,1242,1245,1248,1251,1254,1257,1259,1262],{"class":452,"line":453},[450,1236,457],{"class":456},[450,1238,1239],{"class":460}," echo",[450,1241,1146],{"class":460},[450,1243,1244],{"class":460},"    \u002Fmnt\u002Fvideo",[450,1246,1247],{"class":460},"  cifs",[450,1249,1250],{"class":460},"   _netdev,nofail,credentials=\u002Fsmb\u002F.credentials,x-systemd.automount,x-systemd.device-timeout=",[450,1252,1253],{"class":777},"15",[450,1255,1256],{"class":777}," 0",[450,1258,1256],{"class":777},[450,1260,1261],{"class":1095}," >>",[450,1263,1264],{"class":460}," \u002Fetc\u002Ffstab\n",[391,1266,1267],{},"Reboot the machine:",[440,1269,1271],{"className":442,"code":1270,"filename":444,"language":445,"meta":446,"style":446},"sudo reboot\n",[414,1272,1273],{"__ignoreMap":446},[450,1274,1275,1277],{"class":452,"line":453},[450,1276,457],{"class":456},[450,1278,1279],{"class":460}," reboot\n",[391,1281,1282],{},"After rebooting, verify the mount:",[440,1284,1285],{"className":442,"code":1164,"filename":444,"language":445,"meta":446,"style":446},[414,1286,1287],{"__ignoreMap":446},[450,1288,1289,1291,1293,1295],{"class":452,"line":453},[450,1290,457],{"class":456},[450,1292,1131],{"class":460},[450,1294,1134],{"class":753},[450,1296,1177],{"class":460},[435,1298,1300],{"id":1299},"and-done","And done!",[544,1302,1303,1308],{},[391,1304,1305],{},[549,1306,1307],{},"Unmount the Shared Folder",[440,1309,1311],{"className":442,"code":1310,"filename":444,"language":445,"meta":446,"style":446},"sudo umount -t cifs \u002Fmnt\u002Fvideo\n",[414,1312,1313],{"__ignoreMap":446},[450,1314,1315,1317,1320,1322,1324],{"class":452,"line":453},[450,1316,457],{"class":456},[450,1318,1319],{"class":460}," umount",[450,1321,1134],{"class":753},[450,1323,1137],{"class":460},[450,1325,948],{"class":460},[1327,1328,1329],"style",{},"html pre.shiki code .sEgDM, html code.shiki .sEgDM{--shiki-light:#B392F0;--shiki-default:#FFCB6B;--shiki-dark:#B392F0}html pre.shiki code .s11XM, html code.shiki .s11XM{--shiki-light:#9ECBFF;--shiki-default:#C3E88D;--shiki-dark:#9ECBFF}html pre.shiki code .s8jd1, html code.shiki .s8jd1{--shiki-light:#E1E4E8;--shiki-default:#89DDFF;--shiki-dark:#E1E4E8}html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html pre.shiki code .sJWha, html code.shiki .sJWha{--shiki-light:#79B8FF;--shiki-default:#C3E88D;--shiki-dark:#79B8FF}html pre.shiki code .swwWl, html code.shiki .swwWl{--shiki-light:#79B8FF;--shiki-default:#F78C6C;--shiki-dark:#79B8FF}html pre.shiki code .sJPTy, html code.shiki .sJPTy{--shiki-light:#F97583;--shiki-default:#89DDFF;--shiki-dark:#F97583}html pre.shiki code .slcoZ, html code.shiki .slcoZ{--shiki-light:#E1E4E8;--shiki-default:#EEFFFF;--shiki-dark:#E1E4E8}html pre.shiki code .srnIM, html code.shiki .srnIM{--shiki-light:#B392F0;--shiki-default:#89DDFF;--shiki-dark:#B392F0}html pre.shiki code .szyEh, html code.shiki .szyEh{--shiki-light:#F97583;--shiki-default:#F07178;--shiki-dark:#F97583}",{"title":446,"searchDepth":479,"depth":479,"links":1331},[1332,1344],{"id":407,"depth":479,"text":408,"children":1333},[1334,1335,1337,1338,1339,1340,1341,1342,1343],{"id":437,"depth":599,"text":438},{"id":498,"depth":599,"text":1336},"Create the \u002Fvideo Folder",{"id":520,"depth":599,"text":521},{"id":703,"depth":599,"text":704},{"id":707,"depth":599,"text":708},{"id":716,"depth":599,"text":717},{"id":783,"depth":599,"text":784},{"id":860,"depth":599,"text":861},{"id":880,"depth":599,"text":704},{"id":883,"depth":479,"text":884,"children":1345},[1346,1347,1348,1349,1350,1351],{"id":889,"depth":599,"text":890},{"id":924,"depth":599,"text":925},{"id":951,"depth":599,"text":952},{"id":1064,"depth":599,"text":1065},{"id":1195,"depth":599,"text":1196},{"id":1299,"depth":599,"text":1300},[1353],"Djeex","Set up Samba on Debian to share folders over your local network and access them from Windows, macOS, or Linux.","md",null,{},true,{"title":41,"description":1354},"kzlQKISsKwLvgIRDkyxaN5cAgNNX9WAy2fmxWV1YO7s",[1362,1364],{"title":37,"path":38,"stem":39,"description":1363,"children":-1},"Understand how DNS works, how to read and edit a DNS zone, and how to configure domain names for your self-hosted services.",{"title":51,"path":52,"stem":53,"description":1365,"children":-1},"Understand RAID concepts, hardware vs software, RAID levels, and how to set up redundant disk arrays for your homelab.",1788645856558]