Can't access samba home shares

Asked by Deep Kumar Halwai


I have setup ubuntu as my samba server. It is a VM. I can access the shared folders and home shared folders if I set guest ok = yes under [homes]. However, when I want to login with a username/password authentication, I get an error saying I do not have access to the resources. If anybody can help, I will be grateful. Following is my samba config.

  workgroup = WORKGROUP
  server string = %h Samba Server
  netbios name = UBNTU
  security = user
  comment = Home Directories
  browseable = yes
  writable = yes
  guest ok = yes
  read only = no
  create mask = 0760
  directory mask = 0760
      comment = Ubuntu File Server Share
      path = /srv/samba/share
      browsable = yes
      guest ok = yes
      read only = no
      create mask = 0755

Thank you.

Question information

English Edit question
Ubuntu samba Edit question
No assignee Edit question
Solved by:
Deep Kumar Halwai
Last query:
Last reply:
Revision history for this message
Emre AYTAÇ (eaytac) said :

Have you added the users to samba passwords file? For example the username is bob; first assign this user a samba password, then try to connect the share with this username and SAMBA password, not system password. Assigning this user a samba password;

smbpasswd -a bob

after that type your password twice, then try to connect your share. Hope this helps...

Revision history for this message
Emre AYTAÇ (eaytac) said :

P.s. A user's system password and samba password may be different, it is your choice.

Revision history for this message
Deep Kumar Halwai (kumar981) said :


I have tried that. I created a unix user. Then I created a samba user and its password is the same as the password on windows client. It doesn't work irrespective of whether the passwords are the same or not. Firewall is disabled.
Just can't figure what is wrong.

Revision history for this message
Emre AYTAÇ (eaytac) said :

It should work. You should try to execute testparm command and check if there any errors or not. And also please have a look at /var/log/samba directory. if there is a file like ip_number.log or log_ip_number, please open the file and check for error strings. If possible please share the log files with us (you may use

Also have you check the /srv/samba/share directory permission? Your samba user have permission to read the directory?

Revision history for this message
Deep Kumar Halwai (kumar981) said :

Thanks. I found out the problem. It was the windows client. I had shared the home folders and another 'share' folder. Windows was not allowing me to make a second connection. Here are the links which discuss the same.

Thanks for guiding me through this.