0

I have 2 machines with 20.04. On machine A, I have Samba set up and then used Local Network Share on a folder, with a few subfolders. The shared folder is visible under Network in machine B. When I click on it, it asks 3 values 1. user name 2. domain ( which is already filled as WORKGROUP ) 3. Password. I tried using various combinations. ie, an user ID and password from machine A and a user ID and password from machine B ( both admins ). In both cases, there is an error message like " Permission Denied ".

To make things easier, I tried allowing Guest Access. When tried to access the shared folder from machine B , it gives the same " Permission Denied " error. To be sure, I logged out from both machines and tried to access the shared folder without success. Any help will be great.

user227495
  • 4,309

2 Answers2

3

When I click on it, it asks 3 values 1. user name 2. domain ( which is already filled as WORKGROUP ) 3. Password. I tried using various combinations. ie, an user ID and password from machine A

Two different passwords in Linux. There is the local machine A username and password. Then there is the samba password for that local user. You need to add the local user to the samba password database. For example to add myself:

sudo smbpasswd -a morbius

THe issue with guest access is something else. We need to see more information. If you really want guest access please edit your original post and add the output of the following commands:

testparm -s

net usershare info --long

Morbius1
  • 8,437
0

I had to do the following.

  • right click the drive in question.
  • go to properties
  • go to security
  • add 'Everyone' to the list of 'Group or names' and give it full control
  • apply, ok, ok,

For good measure I also clicked the 'Advanced' button in the Security tab and changed the ownership of the disk from 'System' to myself.

douwe
  • 51