Thanks! I am currently reinstalling the Manjaro OS and I’m going to start from scratch. I’m going to follow your guide before I install anything else.
EDIT 1
Okay I have a fresh Manjaro install on my BEELINK2 machine. I have done all the updates and I’ve enabled SSH. I am now logged into BEELINK2 from my main Manjaro workstation. I will try your suggested link as a test: [root tip] [How To] Share and Access NTFS devices using Samba
EDIT 2
I don’t have an NTFS formatted device so I just set the permissions for the ntfs folder to 777 so its the same as the picture in your guide. Here are the results:
- My workstation mounts the share but CANNOT connect because it says “Permission Denied”
- My Macbook mounts the share but when I try to copy a file, it says, “Items can’t be copied to “ntfs” because you don’t have permission to read them.”
# ls -l /srv/samba
total 8
drwxrwxrwx 2 root root 4096 Mar 13 02:10 ntfs
drwxr-xr-x 2 root root 4096 Mar 13 02:10 public
EDIT 3
I’m on this guide now: [root tip] [How To] Basic Samba Setup and Troubleshooting
EDIT 4
Okay, I have SOMETHING working!! I have the following set up:
My smb.conf:
[global]
workgroup = WORKGROUP
server string = Manjaro Samba Server
server role = standalone server
log file = /var/log/samba/log.%m
max log size = 1000
guest account = nobody
map to guest = Bad Password
min protocol = SMB2
max protocol = SMB3
usershare path = /var/lib/samba/usershares
usershare max shares = 100
usershare allow guests = yes
usershare owner only = yes
[public]
path = /srv/samba/public
public = yes
writable = yes
printable = no
Then I also did:
$ sudo aa-complain /etc/apparmor.d/usr.sbin.smbd
Setting /etc/apparmor.d/usr.sbin.smbd to complain mode.
$ sudo aa-complain /usr/bin/smbd
Setting /usr/bin/smbd to complain mode.
Warning: profile smbd represents multiple programs
Warning: profile smbd represents multiple programs
$ sudo aa-complain samba-dcerpcd samba-bgqd samba-rpcd samba-rpcd-classic samba-rpcd-spoolss
Setting /etc/apparmor.d/samba-dcerpcd to complain mode.
Setting /etc/apparmor.d/samba-bgqd to complain mode.
Setting /etc/apparmor.d/samba-rpcd to complain mode.
Setting /etc/apparmor.d/samba-rpcd-classic to complain mode.
Setting /etc/apparmor.d/samba-rpcd-spoolss to complain mode.
On my Macbook, I was able to mount the /public folder using my username and password, then I was able to drag a file to the /public folder.
Now, I’m going to edit some of the settings to make it more secure (I’m only using this within my home network, but I still want to enable the firewall and remove the guest account)
EDIT 5 (final one for tonight)
In smb.conf, I changed “public = yes” to “guest ok = no” then restarted all 3 machines. I was still able to access the share with my username and password. So, that’s GREAT!! However, I want to start tightening up the security, one part at a time, and see if there is a specific line in smb.conf or some other action that makes it fail. I’ll report what I find and hopefully it can help someone else.
Have a great night (or morning)