YunoHost-Apps / samba_ynh

Samba package for YunoHost
GNU Affero General Public License v3.0
1 stars 6 forks source link

Getting shares to work with NTFS external drive on Windows 10 #13

Open dfjerstad opened 1 year ago

dfjerstad commented 1 year ago

Hello, I thought it might be helpful to someone to document how I was able to get this repository to work for me. I have a Yunohost server in home that I access via SSH.

Nothing was appearing to work until I did a couple things.

  1. Added user to Samba via smbpasswd -a

sudo smbpasswd -a myusername

  1. Edited smb.conf to edit default share

Note: Ignore the warning at the top of this file; The owner of this repository has added this by mistake because editing the "subparts" actually does nothing here. Samba uses "smb.conf" and would include subparts if they were listed in "includes.conf" but there is no such file here.

Edited "[share]" (or create a new unit) to reflect the following:

[share]
   comment = share
   read only = no
   path = /path/to/ntfs
   guest ok = yes
   browseable = yes
   public = yes
   force user = myusername

Thus, removing the directory permissions which will interfere with NTFS file permissions.

  1. Restarted Samba

sudo service smbd restart

  1. Navigated to share in Windows: Press Win+R and type in "\\192.168.1.20\" (or whatever the IP address of your Samba share is) and press Enter. My NTFS share is now visible and usable.

This worked for me, I hope it will work for you as well.