LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-19-2014, 03:57 AM   #1
thirstonlinux
Member
 
Registered: Jul 2011
Posts: 62

Rep: Reputation: Disabled
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
 
Old 07-19-2014, 05:21 AM   #2
T3RM1NVT0R
Senior Member
 
Registered: Dec 2010
Location: Internet
Distribution: Linux Mint, SLES, CentOS, Red Hat
Posts: 2,385

Rep: Reputation: 477Reputation: 477Reputation: 477Reputation: 477Reputation: 477
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?
 
Old 07-19-2014, 08:42 PM   #3
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,317
Blog Entries: 28

Rep: Reputation: 6140Reputation: 6140Reputation: 6140Reputation: 6140Reputation: 6140Reputation: 6140Reputation: 6140Reputation: 6140Reputation: 6140Reputation: 6140Reputation: 6140
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?

Last edited by frankbell; 07-19-2014 at 08:43 PM.
 
Old 07-21-2014, 04:00 AM   #4
thirstonlinux
Member
 
Registered: Jul 2011
Posts: 62

Original Poster
Rep: Reputation: Disabled
Firewall ports they are open for tcp.
And yes did you the smbpasswd
 
Old 07-21-2014, 04:56 AM   #5
T3RM1NVT0R
Senior Member
 
Registered: Dec 2010
Location: Internet
Distribution: Linux Mint, SLES, CentOS, Red Hat
Posts: 2,385

Rep: Reputation: 477Reputation: 477Reputation: 477Reputation: 477Reputation: 477
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.
 
Old 07-21-2014, 09:23 AM   #6
thirstonlinux
Member
 
Registered: Jul 2011
Posts: 62

Original Poster
Rep: Reputation: Disabled
sure, I will mention the changes I have done in the config file.
 
  


Reply

Tags
samba



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Samba/Cups print sharing problems (/var/spool/samba files) Gates1026 Linux - General 9 06-23-2013 01:33 AM
samba file permission & build_sam_account issue in samba cnt Linux - Server 5 08-10-2011 01:19 PM
SAMBA FILE SHARING ISSUE WINDOW XP application hangs frequently salimshahzad Linux - Newbie 1 01-21-2011 04:02 PM
CentOS /Samba server- XP Windows client file sharing issue 3phoenix Linux - Server 7 11-06-2009 11:05 AM
sharing internet but samba doesnt work, turn filewall off samba works but net isnt Jungle_King Linux - Networking 2 05-08-2009 07:00 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:32 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration