1

This is my third attempt to do a simple share of an external hard drive between two Ubuntu 18 computers. I have worked with half a dozen help documents on the web and none of them worked and they all had different instructions.

I would prefer to use the samba GUI and the option to right click on a folder and share it but even with samba users set I get nothing. Setting the share to allow all users does nothing.

I have uninstalled and reinstalled samba to get a clean version. The only thing that has happened so far is that the shares are visible on the second computer but get an error that it cannot log on to windows share.

Is there a tutorial available?

Loffler
  • 19

1 Answers1

3

It is likely not a samba issue but a Linux permissions issue.

When you attach an external USB storage device to your system it automounts to a mount point at /media/your-user-name/XXX. The problem is Linux sets /media/your-user-name with special permissions ( acl ) that prevents anyone other than "your-user-name" from traversing the folder to get to XXX.

If you set your share allowing guest access the client will never gain access.

THere are a number of ways around this but if this is a home network just edit /etc/samba/smb.conf and right under the workgroup = WORKGROUP line add this one using your local login user name:

force user = your-user-name

Then restart smbd:

sudo service smbd restart
Morbius1
  • 8,437