LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   issue sharing samba (https://www.linuxquestions.org/questions/linux-newbie-8/issue-sharing-samba-4175511578/)

thirstonlinux 07-19-2014 03:57 AM

issue sharing samba
 
I am trying to configure a samba share but it is not working properly. Please help...

I have two VMs server.learn.com and client.learn.com
IPs resp 192.168.0.100, 192.168.0.200

Their entries are added in each /etc/hosts file. Able to ping from each side.

when I do smbclient -L 192.168.0.100 , it asked for roots password and throw an error " session setup failed: NT_STATUS_LOGON_FAILURE"

when I do sbmclient //192.168.0.100/common -U tester, it asked for testers password and threw an error " tree connect failed: NT_STATUS_ACCESS_DENIED".

Share name is common. shared /common directory with context samba_share_t.

I dont know where is the mistake is

T3RM1NVT0R 07-19-2014 05:21 AM

For smb there is a separate file for authentication. Which password are using for tester user? Is it the one which it use to login to the system or the one you created using smbpasswd?

frankbell 07-19-2014 08:42 PM

Also, are the directories configured as shared in their directory properties? This is a separate action from setting up the shares in samba.

Also, are the TCP ports open both ways in the firewalls?

thirstonlinux 07-21-2014 04:00 AM

Firewall ports they are open for tcp.
And yes did you the smbpasswd

T3RM1NVT0R 07-21-2014 04:56 AM

There are 2 different errors that you mentioned in your original post. The first one with root user and the next one with tester. Did user tester have access to this location as the error says permission denied. Also, can you share your config file. Put it in code for better readability.

thirstonlinux 07-21-2014 09:23 AM

sure, I will mention the changes I have done in the config file.


All times are GMT -5. The time now is 12:55 AM.