LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 06-21-2012, 08:39 AM   #1
dheerajreddy
LQ Newbie
 
Registered: Jun 2012
Posts: 2

Rep: Reputation: Disabled
need urgent help regarding samba server on fedora 16


I have installed samba server on fedora 16. I shared home folder using [homes] stanza. When I tried to access it from remote windows machine I could see the home folder but could not access it. It says access denied.I am pasting the content of my smb.conf file. Please help!!






# Samba config file created using SWAT
# from UNKNOWN (127.0.0.1)
# Date: 2012/06/21 16:56:29

[global]
workgroup = ASIA
server string = Samba Server Version %v
log file = /var/log/samba/log.%m
max log size = 50
max protocol = SMB2
idmap config * : backend = tdb
cups options = raw

[printers]
comment = All Printers
path = /var/spool/samba
printable = Yes
print ok = Yes
browseable = No

[homes]
comment = Home Directories
browseable = no
writeable = yes
valid users = %s
create mask = 0777
directory mask = 0777
 
Old 06-21-2012, 12:37 PM   #2
maccas17
Member
 
Registered: May 2010
Location: UK
Distribution: RHEL6
Posts: 70

Rep: Reputation: 11
You should read the sticky for the forum - putting urgent is not a good idea (its only urgent to you - an by the looks of it I'm afraid your issue is not really life or death urgent, at least to me!)

Is SELinux or your firewall enabled?

Code:
sestatus
service iptables status
If you think one of these might be the culprit then temporarily disable it and confirm:

Code:
setenforce 0

service iptables stop
Then you should know if you need to do either/both of the below.

To configure SELinux:

Code:
setsebool -P samba_enable_home_dirs=1
Restart samba:

Quote:
service smb restart
and/or

Firewall; ports 137, 138, 139, & 445 need to be allowed access which you can do by adding the following to /etc/sysconfig/iptables (before the log and drop lines):

Code:
-A RH-Firewall-1-INPUT -s 192.168.1.0/24 -m state --state NEW -p tcp --dport 137 -j ACCEPT
-A RH-Firewall-1-INPUT -s 192.168.1.0/24 -m state --state NEW -p tcp --dport 138 -j ACCEPT
-A RH-Firewall-1-INPUT -s 192.168.1.0/24 -m state --state NEW -p tcp --dport 139 -j ACCEPT
-A RH-Firewall-1-INPUT -s 192.168.1.0/24 -m state --state NEW -p tcp --dport 445 -j ACCEPT
Then:

Code:
service iptables restart
Hope this helps.
 
Old 06-22-2012, 12:16 AM   #3
dheerajreddy
LQ Newbie
 
Registered: Jun 2012
Posts: 2

Original Poster
Rep: Reputation: Disabled
Hi,
Actually I had to configure the samba server by today. That is the reason I posted it as urgent.Anyways, I am sorry and I will go through the sticky. I tried the solution you told, selinux was set to permissive and I disabled the iptables. The situation is a little better I guess, I could see the home directory and once I click on it, It asks for a login and even though I enter the correct credentials, It throws an access denied message as in the attachment.

Thanks.
Attached Thumbnails
Click image for larger version

Name:	Capture.PNG
Views:	13
Size:	10.8 KB
ID:	9928  
 
Old 06-22-2012, 01:53 AM   #4
tshikose
Member
 
Registered: Apr 2010
Location: Kinshasa, Democratic Republic of Congo
Distribution: RHEL, Fedora, CentOS
Posts: 525

Rep: Reputation: 95
Hi,

Samba uses different password than the one set by passwd (that update files such as /etc/passwd, /etc/shadow).
Use the command
Code:
smbpasswd -a bob
to set Samba passw ord for user named bob.

Besides, I strongly recommend you to follow the advices given by maccas17.
Keep SELinux and iptables enabled.
What he gave you should work. Maybe you will need to read some man pages and adapt it to your situation.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Urgent Help Please......Fedora 8 Mail Server Crash !! farrukhndm Linux - Server 13 01-14-2009 09:41 AM
Configuring Samba for Fedora Directory Server Exutable Linux - Server 0 11-28-2007 07:11 PM
Connecting Fedora to a Ubuntu Samba server harisund Linux - Networking 1 08-01-2006 05:44 AM
Fedora Directory Server + Samba lynos Linux - General 1 02-21-2006 05:59 PM
Fedora Core 2 samba server eladla Linux - Networking 3 07-21-2004 01:57 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 04:35 PM.

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