sharing folders doesn't work out-of-the-box  [Solved]

Help for Current Versions of MX
When asking for help, use Quick System Info from MX Tools. It will be properly formatted using the following steps.
1. Click on Quick System Info in MX Tools
2. Right click in your post and paste.
Message
Author
korakios
Posts: 47
Joined: Mon Feb 24, 2020 8:15 am

sharing folders doesn't work out-of-the-box

#1 Post by korakios »

Hi,
Spending hours , I realized that I can't access , from another local device , samba shared folders created in MX with the provided tool , same applies with ftp,ftps ,sftp
If I enable the Firewall and create a rule allowing incoming connections, it works (and even after I disable the Firewall)
(haven't tried nfs but didn't work before I messed with firewall)

Tested on MX KDE and XFCE with the default firewall tools (using live usb without installing)

Do I miss something ? (if not a bug ,could someone move the topic on MX Help section?)

Code: Select all

Snapshot created on: 20241218_1923
System:
  Kernel: 6.1.0-17-amd64 [6.1.69-1] arch: x86_64 bits: 64 compiler: gcc v: 12.2.0
    parameters: BOOT_IMAGE=/vmlinuz-6.1.0-17-amd64 root=UUID=<filter> ro quiet
    acpi_sleep=old_ordering splash init=/lib/systemd/systemd
  Desktop: KDE Plasma v: 5.27.5 wm: kwin_wayland vt: 1 dm: SDDM Distro: MX-23.4_KDE_x64 Libretto
    January 21 2024 base: Debian GNU/Linux 12 (bookworm)
Machine:
  Type: Desktop Mobo: ASUSTeK model: P5N-E SLI v: 1.XX serial: <superuser required> BIOS: Phoenix
    v: ASUS P5N-E SLI Revision 1406 date: 11/18/2009
CPU:
  Info: model: Intel Core2 Quad Q6600 bits: 64 type: MCP arch: Core2 Merom level: v1 built: 2006-09
    process: Intel 65nm family: 6 model-id: 0xF (15) stepping: 0xB (11) microcode: 0xBA
  Topology: cpus: 1x cores: 4 smt: <unsupported> cache: L1: 256 KiB desc: d-4x32 KiB; i-4x32 KiB
    L2: 8 MiB desc: 2x4 MiB
  Speed (MHz): avg: 1717 min/max: 1600/2400 scaling: driver: acpi-cpufreq governor: schedutil
    cores: 1: 1717 2: 1717 3: 1717 4: 1717 bogomips: 19200
  Flags: ht lm nx pae sse sse2 sse3 ssse3 vmx
  Vulnerabilities:
  Type: gather_data_sampling status: Not affected
  Type: itlb_multihit status: KVM: VMX disabled
  Type: l1tf mitigation: PTE Inversion; VMX: conditional cache flushes, SMT disabled
  Type: mds status: Vulnerable: Clear CPU buffers attempted, no microcode; SMT disabled
  Type: meltdown mitigation: PTI
  Type: mmio_stale_data status: Unknown: No mitigations
  Type: retbleed status: Not affected
  Type: spec_rstack_overflow status: Not affected
  Type: spec_store_bypass status: Vulnerable
  Type: spectre_v1 mitigation: usercopy/swapgs barriers and __user pointer sanitization
  Type: spectre_v2 mitigation: Retpolines, STIBP: disabled, RSB filling, PBRSB-eIBRS: Not
    affected
  Type: srbds status: Not affected
  Type: tsx_async_abort status: Not affected
Graphics:
  Device-1: AMD Cedar [Radeon HD 5000/6000/7350/8350 Series] vendor: ASUSTeK driver: radeon
    v: kernel alternate: amdgpu arch: TeraScale-2 code: Evergreen process: TSMC 32-40nm
    built: 2009-15 pcie: gen: 1 speed: 2.5 GT/s lanes: 1 link-max: lanes: 16 ports: active: DVI-I-1
    empty: HDMI-A-1,VGA-1 bus-ID: 01:00.0 chip-ID: 1002:68f9 class-ID: 0300 temp: 57.0 C
  Display: wayland server: X.org v: 1.21.1.7 with: Xwayland v: 22.1.9 compositor: kwin_wayland
    driver: X: loaded: radeon unloaded: fbdev,modesetting,vesa dri: r600 gpu: radeon display-ID: 0
  Monitor-1: DVI-I-1 res: 1280x1024 size: N/A modes: N/A
  API: OpenGL v: 4.5 Mesa 24.2.2-1~mx23ahs renderer: AMD CEDAR (DRM 2.50.0 / 6.1.0-17-amd64 LLVM
    15.0.6) direct-render: Yes
Audio:
  Device-1: NVIDIA MCP51 High Definition Audio vendor: ASUSTeK driver: snd_hda_intel v: kernel
    bus-ID: 00:10.1 chip-ID: 10de:026c class-ID: 0403
  Device-2: AMD Cedar HDMI Audio [Radeon HD 5400/6300/7300 Series] vendor: ASUSTeK
    driver: snd_hda_intel v: kernel pcie: gen: 1 speed: 2.5 GT/s lanes: 1 link-max: lanes: 16
    bus-ID: 01:00.1 chip-ID: 1002:aa68 class-ID: 0403
  API: ALSA v: k6.1.0-17-amd64 status: kernel-api tools: alsamixer,amixer
  Server-1: PipeWire v: 1.0.0 status: active with: 1: pipewire-pulse status: active
    2: wireplumber status: active 3: pw-jack type: plugin tools: pactl,pw-cat,pw-cli,wpctl
Network:
  Device-1: NVIDIA MCP51 Ethernet vendor: ASUSTeK type: network bridge driver: forcedeth v: kernel
    port: c800 bus-ID: 00:14.0 chip-ID: 10de:0269 class-ID: 0680
  IF: eth0 state: up speed: 1000 Mbps duplex: full mac: <filter>
Drives:
  Local Storage: total: 2.28 TiB used: 83.92 GiB (3.6%)
  SMART Message: Unable to run smartctl. Root privileges required.
  ID-1: /dev/sda maj-min: 8:0 vendor: Kingston model: SKC600256G size: 238.47 GiB block-size:
    physical: 4096 B logical: 512 B speed: 1.5 Gb/s type: SSD serial: <filter> rev: 0102 scheme: MBR
  ID-2: /dev/sdb maj-min: 8:16 vendor: Samsung model: SSD 860 QVO 1TB size: 931.51 GiB
    block-size: physical: 512 B logical: 512 B speed: 1.5 Gb/s type: SSD serial: <filter> rev: 1B6Q
    scheme: MBR
  ID-3: /dev/sdc maj-min: 8:32 vendor: Western Digital model: WD7500BPKX-22HPJT0 size: 698.64 GiB
    block-size: physical: 4096 B logical: 512 B speed: 3.0 Gb/s type: HDD rpm: 7200 serial: <filter>
    rev: 1A01 scheme: GPT
  ID-4: /dev/sdd maj-min: 8:48 vendor: Seagate model: ST3500630AS size: 465.76 GiB block-size:
    physical: 512 B logical: 512 B speed: 3.0 Gb/s type: N/A serial: <filter> rev: D scheme: MBR
  ID-5: /dev/sde maj-min: 8:64 type: USB vendor: Sony model: Storage Media size: 3.74 GiB
    block-size: physical: 512 B logical: 512 B type: N/A serial: <filter> rev: 1.00 scheme: MBR
  SMART Message: Unknown USB bridge. Flash drive/Unsupported enclosure?
Partition:
  ID-1: / raw-size: 156.4 GiB size: 152.89 GiB (97.75%) used: 83.82 GiB (54.8%) fs: ext4
    dev: /dev/dm-0 maj-min: 253:0 mapped: luks-<filter>
  ID-2: /boot raw-size: 1024 MiB size: 973.4 MiB (95.06%) used: 102.6 MiB (10.5%) fs: ext4
    dev: /dev/sda1 maj-min: 8:1
Swap:
  Kernel: swappiness: 15 (default 60) cache-pressure: 100 (default)
  ID-1: swap-1 type: file size: 4 GiB used: 0 KiB (0.0%) priority: -2 file: /swap/swap
  ID-2: swap-2 type: zram size: 11.46 GiB used: 1.2 GiB (10.5%) priority: 100 dev: /dev/zram0
Sensors:
  System Temperatures: cpu: 47.0 C mobo: 41.0 C gpu: radeon temp: 57.5 C
  Fan Speeds (RPM): cpu: 1654 case-1: 1439 case-2: 1161
  Power: 12v: N/A 5v: N/A 3.3v: 3.34 vbat: N/A
Repos:
  Packages: 2736 pm: dpkg pkgs: 2708 libs: 1525 tools: apt,apt-get,aptitude,nala pm: rpm pkgs: 0
    pm: flatpak pkgs: 28
  No active apt repos in: /etc/apt/sources.list
  Active apt repos in: /etc/apt/sources.list.d/debian-stable-updates.list
    1: deb http://deb.debian.org/debian bookworm-updates main contrib non-free non-free-firmware
  Active apt repos in: /etc/apt/sources.list.d/debian.list
    1: deb http://deb.debian.org/debian bookworm main contrib non-free non-free-firmware
    2: deb http://security.debian.org/debian-security bookworm-security main contrib non-free non-free-firmware
  Active apt repos in: /etc/apt/sources.list.d/mx.list
    1: deb http://ftp.cc.uoc.gr/mirrors/linux/mx/mx/repo/ bookworm main non-free
    2: deb http://ftp.cc.uoc.gr/mirrors/linux/mx/mx/repo/ bookworm ahs
Info:
  Processes: 241 Uptime: 51m wakeups: 0 Memory: 3.82 GiB used: 3.49 GiB (91.3%) Init: systemd
  v: 252 target: graphical (5) default: graphical tool: systemctl Compilers: gcc: 12.2.0 alt: 12
  Client: shell wrapper v: 5.2.15-release inxi: 3.3.26
Boot Mode: BIOS (legacy, CSM, MBR)

User avatar
CharlesV
Global Moderator
Posts: 7699
Joined: Sun Jul 07, 2019 5:11 pm

Re: sharing folders doesn't work out-of-the-box

#2 Post by CharlesV »

@korakios Your topic is here.
*QSI = Quick System Info from menu (Copy for Forum)
*MXPI = MX Package Installer
*Please check the solved checkbox on the post that solved it.
*Linux -This is the way!

User avatar
CharlesV
Global Moderator
Posts: 7699
Joined: Sun Jul 07, 2019 5:11 pm

Re: sharing folders doesn't work out-of-the-box  [Solved]

#3 Post by CharlesV »

Here is a good document on sharing, and I believe it has the ufw ports in it as well.
https://fullscale4me.com/MX-Linux-to-Wi ... haring.pdf
*QSI = Quick System Info from menu (Copy for Forum)
*MXPI = MX Package Installer
*Please check the solved checkbox on the post that solved it.
*Linux -This is the way!

User avatar
FullScale4Me
Posts: 1111
Joined: Fri Jan 08, 2021 11:30 pm

Re: sharing folders doesn't work out-of-the-box

#4 Post by FullScale4Me »

One prerequisite is your need to set a SMB password on Linux user ID(s). Do this in terminal with the smbpasswd command or in MX Samba Config.

MX Linux to Windows and Mac File Sharing‘ updated August 01, 2024 PDF 585 Kb - also for MX to MX shares.

Edit: added MX Samba Config
Last edited by FullScale4Me on Sun Dec 22, 2024 8:17 pm, edited 2 times in total.
Michael O'Toole
MX Linux facebook group moderator
Dell OptiPlex 7050 i7-7700, MX Linux 23 Xfce & Win 11 Pro
HP Pavilion P2-1394 i3-2120T, MX Linux 23 Xfce & Win 10 Home
Dell Inspiron N7010 Intel Core i5 M 460, MX Linux 23 Xfce & KDE, Win 10

korakios
Posts: 47
Joined: Mon Feb 24, 2020 8:15 am

Re: sharing folders doesn't work out-of-the-box

#5 Post by korakios »

CharlesV wrote: Sun Dec 22, 2024 8:09 pm Here is a good document on sharing, and I believe it has the ufw ports in it as well.
https://fullscale4me.com/MX-Linux-to-Wi ... haring.pdf
Thank you :)
I guess I would deserve a RTFM as an answer :lol:

I hope that at some point there would be a hint on MX samba Tool , maybe a pop up before setting a shared folder :)

User avatar
CharlesV
Global Moderator
Posts: 7699
Joined: Sun Jul 07, 2019 5:11 pm

Re: sharing folders doesn't work out-of-the-box

#6 Post by CharlesV »

Your very welcome and no I dont (and we try not too ) do RTFM ;-p

There is an MX Samba Confif which will do sharing, along with Thunar too. The MX tool is pretty good at setting up shares.

Working through the firewall is a little more difficult, but it sounds like you got that too.

https://fullscale4me.com/uncomplicated-firewall.pdf

edit: added firewall link
*QSI = Quick System Info from menu (Copy for Forum)
*MXPI = MX Package Installer
*Please check the solved checkbox on the post that solved it.
*Linux -This is the way!

korakios
Posts: 47
Joined: Mon Feb 24, 2020 8:15 am

Re: sharing folders doesn't work out-of-the-box

#7 Post by korakios »

CharlesV wrote: Sun Dec 22, 2024 8:23 pm Your very welcome and no I dont (and we try not too ) do RTFM ;-p

There is an MX Samba Confif which will do sharing, along with Thunar too. The MX tool is pretty good at setting up shares.

Working through the firewall is a little more difficult, but it sounds like you got that too.

https://fullscale4me.com/uncomplicated-firewall.pdf

edit: added firewall link
I got familiar with ufw via console when messing with a Raspberry , but I used nfs (light cpu usage)
Samba seemed more complicated and I was glad there was a GUI tool on MX .

Is there a way to prevent samba showing all my folders and keep only the selected that I set on MX tool ? Or I need to create a "dummy" user first ?

User avatar
FullScale4Me
Posts: 1111
Joined: Fri Jan 08, 2021 11:30 pm

Re: sharing folders doesn't work out-of-the-box

#8 Post by FullScale4Me »

korakios wrote: Sun Dec 22, 2024 8:36 pm Is there a way to prevent samba showing all my folders and keep only the selected that I set on MX tool ? Or I need to create a "dummy" user first ?
Create a share in the home tree but outside your User_ID folder. Shares created elsewhere could be under a different User_ID as long as you mind to ownership and group membership.
Michael O'Toole
MX Linux facebook group moderator
Dell OptiPlex 7050 i7-7700, MX Linux 23 Xfce & Win 11 Pro
HP Pavilion P2-1394 i3-2120T, MX Linux 23 Xfce & Win 10 Home
Dell Inspiron N7010 Intel Core i5 M 460, MX Linux 23 Xfce & KDE, Win 10

Post Reply

Return to “MX Help”