Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

I have installed a Samba server on Ubuntu Server 12.04 so I can store files there from my desktop or laptop or whatever.

/etc/samba/smb.conf:

#======================= Global Settings =====================================
[global]
workgroup = WORKGROUP
server string = Samba Server %v
netbios name = xxx
security = user
map to guest = bad user
dns proxy = no

#============================ Share Definitions ==============================
[Public]
path = xxx
browsable = yes
writable = yes
guest ok = yes
read only = no
create mask = 0660
directory mode = 0770

[Jochem]
path = xxx
browsable = yes
writable = yes
guest ok = no
valid users = jochem
read only = no
create mask = 0660
directory mode = 0770

I added a user: sudo adduser jochem, sudo addgroup smbgrp, sudo adduser jochem smbgrp, sudo smbpasswd -a jochem

Then restarted the service: sudo service smbd restart.

When I open Windows Explorer and go to \\xxx\ I can see 2 folders: Public and Jochem. I can access Public without any problem, can write files to it, read, etc. Then when I want to access Jochem, I get this window:

credentials window

I then fill in my username and password as entered via smbpasswd -a jochem, but then I get an error message.

What is wrong here? I think it might be because I am logging in via my PC's domain JOCHEM-PC, but I've tried xxx\jochem and it doesn't work either..

Any ideas?

share|improve this question
add comment

2 Answers

I noted for myself that I have to set

public = yes

However I don't have Windows any longer and cannot test if that makes the difference, please tell

share|improve this answer
add comment
up vote 0 down vote accepted

I found that this happened because I was already logged in with a different account to the same network but a different shared directory. I left out other directories since posting the whole config was a bit too much, or so I thought..

It appears, as the error says, you can only be connected to the shared directories with one user at the same time.

Adding my account to multiple shares instead of having different accounts for different shares was the solution!

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.