LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Trying To Use Samba First Time Error Message "[Folder name] not accessible You might not have permission to use this network resource" (https://www.linuxquestions.org/questions/linux-newbie-8/trying-to-use-samba-first-time-error-message-%5Bfolder-name%5D-not-accessible-you-might-not-have-permission-to-use-this-network-resource-4175596859/)

beginnermind 01-05-2017 12:25 PM

Trying To Use Samba First Time Error Message "[Folder name] not accessible You might not have permission to use this network resource"
 
Dear Forum,

I am using Samba for the first time trying to create a share folder between my Ubuntu 14.04.3 and my Windows 7 Home Premium

I am following the instructions in this guide here:
http://www.howtogeek.com/176471/how-...ows-and-linux/

Unfortunately, when I click on the finished shortcut in Windows 7 after typing in my user name and password I am given an error message that "[folder name] is not accessible You might not have permission to use this network resource"

smb.conf checks out fine

[Share]
path = /home/joe/Desktop/Share
; available = yes
writeable = yes
; browseable = yes
guest ok = yes

Samba pdbedit shows user is there also

joe:1000:Joe
root:0:root

Any suggestions would be really helpful -- thanks!

rtmistler 01-05-2017 12:34 PM

Have you tried adding valid users=joe to that smb.conf?

beginnermind 01-05-2017 12:41 PM

Hi rtmistler,

I did smbpasswd -a joe and changed my password a couple times

I'm not quite sure where to edit smb.conf directly to add users I'll try and look.

I even turned off specific users and made guest ok still don't know why it isn't working.

Thanks-

beginnermind 01-05-2017 12:44 PM

Sorry I just saw what you meant.

Yeah, I did "valid users = Joe" previously then I turned off specific users and made guest okay but still not working

thanks-

urbanwks 01-05-2017 12:47 PM

Make sure your samba domain for the Linux machine is the same as the domain your Windows machine is assigned to.

If it isn't, when logging into the samba server from Windows make sure your user name is linuxdomain/joe, where linuxdomain=whatever your smb domain is on the Linux machine. You can set the domain in smb.conf, if I recall correctly.

beginnermind 01-05-2017 12:50 PM

Quote:

Originally Posted by urbanwks (Post 5650827)
Make sure your samba domain for the Linux machine is the same as the domain your Windows machine is assigned to.

If it isn't, when logging into the samba server from Windows make sure your user name is linuxdomain/joe, where linuxdomain=whatever your smb domain is on the Linux machine. You can set the domain in smb.conf, if I recall correctly.

Hi urbanwks,

Can you explain to me where to check that?

Thanks!

urbanwks 01-05-2017 12:55 PM

Perhaps "workgroup" would have been a better term than domain. Anyway, in smb.conf:

Code:

[global]
    workgroup = beginnermind

In the [global] section of smb.conf (add it if you don't have one), add the above. Name the workgroup whatever you like. Be sure to restart samba.

On the windows machine when it asks for your credentials, use the following:

user: beginnermind/joe
pass: [whatever your password is]

You should be able to check the domain/workgroup on Windows in Control Panel->System. If the two match, you shouldn't have to include the "beginnermind/" (or whatever) in the user ID, just the "joe".

c0wb0y 01-05-2017 01:04 PM

Try creating a 'Map Drive' instead from Windows machine. I found it a lot easier to work with.

Now, if nothing happens still, go back to Ubuntu and open a terminal and try this:

Code:

testparm
file /home/joe/Desktop/Share
grep '^\s*workgroup' /etc/samba/smb.conf


beginnermind 01-05-2017 01:14 PM

Quote:

Originally Posted by urbanwks (Post 5650834)
Perhaps "workgroup" would have been a better term than domain. Anyway, in smb.conf:

Code:

[global]
    workgroup = beginnermind

In the [global] section of smb.conf (add it if you don't have one), add the above. Name the workgroup whatever you like. Be sure to restart samba.

On the windows machine when it asks for your credentials, use the following:

user: beginnermind/joe
pass: [whatever your password is]

You should be able to check the domain/workgroup on Windows in Control Panel->System. If the two match, you shouldn't have to include the "beginnermind/" (or whatever) in the user ID, just the "joe".

Hi urbanwks,

I went into smb.conf and made sure that workgroup = WORKGROUP (all caps) which matches both my Windows 7 machine and what it says in Samba.

My Windows machine also has Linux as a dual boot (it's a still a separate comp from the Ubuntu comp I am trying to share files with) I don't know if that is a factor but when I ask to "switch users" I don't really get any options to change user names.

Still getting the same error though--

beginnermind 01-05-2017 01:19 PM

Quote:

Originally Posted by c0wb0y (Post 5650838)
Try creating a 'Map Drive' instead from Windows machine. I found it a lot easier to work with.

Now, if nothing happens still, go back to Ubuntu and open a terminal and try this:

Code:

testparm
file /home/joe/Desktop/Share
grep '^\s*workgroup' /etc/samba/smb.conf


Hi c0wb0y,

Thanks for your help I got the following error message from terminal:

Load smb config files from file
rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384)
Error loading services.

urbanwks 01-05-2017 01:28 PM

Quote:

Originally Posted by beginnermind (Post 5650843)
Hi urbanwks,

I went into smb.conf and made sure that workgroup = WORKGROUP (all caps) which matches both my Windows 7 machine and what it says in Samba.

My Windows machine also has Linux as a dual boot (it's a still a separate comp from the Ubuntu comp I am trying to share files with) I don't know if that is a factor but when I ask to "switch users" I don't really get any options to change user names.

Still getting the same error though--

I'm not sure if I completely understand, but from my experience you shouldn't have any options to choose a different username on the Win authentication dialog... you should just be able to type "WORKGROUP/joe" in the user name box.

I might not be able to help any further but if you post your entire smb.conf, someone might be able to spot something.

c0wb0y 01-05-2017 02:26 PM

It seems samba is not running. Can you confirm by issuing this:
Code:

ss -4tln -o state listening '( sport = :445 )'

beginnermind 01-05-2017 02:58 PM

Hi!

I got:

Recv-Q Send-Q Local Address:Port Peer Address:Port
0 50 *:445 *:*

I'm running into problems copying and pasting the whole smb.conf using clipboard meanwhile

Thanks for your help-

beginnermind 01-05-2017 03:00 PM

Recev-Q
0

Send-Q
50

Local Address:Port
*:445

Peer Address:Port
*:*

c0wb0y 01-05-2017 03:41 PM

Ok, so samba is running then, but testparm is spitting an error message. Did you try restarting samba?
Can you try to create a Map network drive from Windows? Also, check the samba logs at /var/log/samba.

And it would be very helpful if you can post smb.conf


All times are GMT -5. The time now is 02:28 AM.