Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

I used a simple guide to share one of my folders on the local network, but I can't access it from a Windows machine

I used this guide on itsfoss.com to share a folder on my Ubuntu 20.04 laptop. I then followed the guide on to try and access this folder on the Windows machine, yielding a "You do not have permission to access the folder. Contact the network administrator to request access"-message.

If I just go to \\ in the Windows explorer I can actually see the shared folder, but I get the same message when I doubleclick it.

I only used the first part of the tutorial, titled "Method 1. Share folders on local network without password". So I haven’t done anything samba-related.

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

And I know that there are a lot of similar questions with the answer "you need to install samba", but according to the guide on itsfoss.com, that shouldn’t be necessary.

Is that guide incomplete, or is my Ubuntu-laptop misconfigured?

EDIT: Output from net usershare info --long

$ net usershare info --long
[Acer]
path=/media/steen/Acer
comment=
usershare_acl=Everyone:R,Unix User\steen:F,
guest_ok=y

And the rights on that path are drwxrwxrwx.

EDIT: Detailed procedure:

  1. I opened Nautilus
  2. I located the folder Acer in /media/steen/
  3. I right clicked the folder and chose "Local network share"
  4. In the dialog, I clicked "Share this folder" and "Guest access"
  5. I clicked "Create share"
  6. On the Windows machine, I opened Explorer and entered "\192.168.0.32" in the address bar
  7. I was then shown a shared folder with the name "Acer".
  8. I doubleclicked the folder and got the error message.

>Solution :

The problem isn’t samba. It’s Linux permissions on the /media/steen folder. It only allows the user steen to traverse the /media/steen folder to get to what is mounted under it. This is by design.

Fastest way out of this is to:

** Edit /etc/samba/smb.conf and right under the workgroup = WORKGROUP line add this one:

force user = steen

** Save the file then restart samba:

sudo service smbd restart
Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading