Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 11th December 2011, 11:34 PM
JTHolmstrom Offline
Registered User
 
Join Date: Dec 2011
Location: Saskatoon
Posts: 3
linuxfirefox
Samba configuration issue

I am having some issues configuring Samba on Fedora 16. I had it working fine on Fedora 14, but when I did a clean install of 16 and transferred by smb.conf setting over to the new install nothing has worked. I have scoured the forums but nothing is making this work. Here is some relevant info:

System - Asus motherboard, ~2 yrs old, 8GB RAM
Firewall - disabled
SELinux - disabled
both smb.service and nmb.service have been enabled and show up in /etc/systemd/system/multi-user-target.wants
I can ping my computer from other computers on the lan, but none of the shares show up

smb.conf:

#======================= Global Settings =====================================

[global]


workgroup = mdkgroup
server string = Main server
usershare allow guests = Yes
usershare max shares = 100
usershare owner only = False


hosts allow = 127. 192.168.2.

# --------------------------- Logging Options -----------------------------


# log files split per-machine:
log file = /var/log/samba/log.%m
# maximum size of 50KB per log file, then rotate:
max log size = 50

# ----------------------- Standalone Server Options ------------------------


security = user
; passdb backend = tdbsam


# -----------------------Printer Options -----------------------------------
; load printers = yes
cups options = raw

; printcap name = /etc/printcap
# obtain a list of printers automatically on UNIX System V systems:
; printcap name = lpstat
; printing = cups

# --------------------------- File System Options ---------------------------

; encrypt passwords = yes
guest ok = yes
guest account = jim
; store dos attributes = yes


#============================ Share Definitions ==============================

[homes]
comment = Home Directories
browseable = yes
writable = yes
valid users = jim

[printers]
comment = All Printers
path = /var/spool/samba
browseable = no
; guest ok = no
; writable = No
printable = yes


[music]
comment = Music folder
path = /home/jim/Music
read only = no
browseable = yes
guest ok = yes

[Pictures]
path = /home/jim/Pictures
read only = no
browseable = yes
guest ok = yes
comment = Pictures folder
---------------------------------------------------------

Output from testparm:

[root@linux ~]# testparm
Load smb config files from /etc/samba/smb.conf
rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384)
Processing section "[homes]"
Processing section "[printers]"
Processing section "[music]"
Processing section "[Pictures]"
Loaded services file OK.
Server role: ROLE_STANDALONE
Press enter to see a dump of your service definitions

[global]
workgroup = MDKGROUP
server string = Main server
guest account = jim
log file = /var/log/samba/log.%m
max log size = 50
usershare allow guests = Yes
usershare max shares = 100
usershare owner only = No
idmap config * : backend = tdb
guest ok = Yes
hosts allow = 127., 192.168.2.
cups options = raw

[homes]
comment = Home Directories
valid users = jim
read only = No

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

[music]
comment = Music folder
path = /home/jim/Music
read only = No

[Pictures]
comment = Pictures folder
path = /home/jim/Pictures
read only = No


---------------------------------------------------------

Any help is appreciated.
Reply With Quote
  #2  
Old 12th December 2011, 07:18 PM
hmmsjan Offline
Registered User
 
Join Date: Jun 2009
Location: Alkmaar The Netherlands
Posts: 197
linuxfirefox
Re: Samba configuration issue

Dear JTHolmstrong,

Firewall and Selinux are the first things where I think of, but you have disabled them.

Could you verify with /sbin/iptables -L that the firewall is really off and the default policy is set to ACCEPT?

Are the processes smbd and nmbd really running?

Can you access the machine with smbclient?

Some error info in the syslog or the samba logs?

The subnet used is still 192.168.2?

Your config file gives a working samba here and smbclient to localhost and eth0 (after adaptation to my subnet) lists the shares.


Good luck!
__________________
H.Janssen
Alkmaar
The Netherlands
Reply With Quote
  #3  
Old 13th December 2011, 01:00 AM
JTHolmstrom Offline
Registered User
 
Join Date: Dec 2011
Location: Saskatoon
Posts: 3
linuxfirefox
Re: Samba configuration issue

Here is the output from /sbin/iptables -L

[root@linux ~]# /sbini/iptables -L
-bash: /sbini/iptables: No such file or directory
[root@linux ~]# /sbin/iptables -L
Chain INPUT (policy ACCEPT)
target prot opt source destination
ACCEPT all -- anywhere anywhere state RELATED,ESTABLISHED
ACCEPT icmp -- anywhere anywhere
ACCEPT all -- anywhere anywhere
ACCEPT tcp -- anywhere anywhere state NEW tcp dpt:bacula-dir
ACCEPT tcp -- anywhere anywhere state NEW tcp dpt:bacula-fd
ACCEPT tcp -- anywhere anywhere state NEW tcp dpt:bacula-sd
ACCEPT tcp -- anywhere anywhere state NEW tcp dpt:bacula-fd
ACCEPT udp -- anywhere anywhere state NEW udp dpt:netbios-ns
ACCEPT udp -- anywhere anywhere state NEW udp dpt:netbios-dgm
ACCEPT tcp -- anywhere anywhere state NEW tcp dpt:netbios-ssn
ACCEPT tcp -- anywhere anywhere state NEW tcp dpt:microsoft-ds
ACCEPT udp -- anywhere anywhere state NEW udp dpt:netbios-ns
ACCEPT udp -- anywhere anywhere state NEW udp dpt:netbios-dgm
ACCEPT tcp -- anywhere anywhere state NEW tcp dpt:ssh
REJECT all -- anywhere anywhere reject-with icmp-host-prohibited

Chain FORWARD (policy ACCEPT)
target prot opt source destination
REJECT all -- anywhere anywhere reject-with icmp-host-prohibited

Chain OUTPUT (policy ACCEPT)
target prot opt source destination

--------------------------------------------------------

- system-config-services shows both smbd and nmbd running

From /var/log/samba/log.smbd

[2011/12/11 17:07:13, 0] smbd/server.c:1045(main)
smbd version 3.6.1-75.fc16 started.
Copyright Andrew Tridgell and the Samba Team 1992-2011
[2011/12/11 17:07:13.322956, 0] smbd/server.c:1101(main)
standard input is not a socket, assuming -D option
------------------------------------------------------

From /var/log/samba/log.nmbd

*****
[2011/12/10 16:29:48, 0] nmbd/nmbd_become_lmb.c:397(become_local_master_stage2)
*****

Samba name server LINUX is now a local master browser for workgroup MDKGROUP on subnet 192.168.2.58

*****
-----------------------------------------------------

I cannot access my machine using smbclient on either my other fedora 16 laptop or my android tablet.

----------------------------------------------------

The subnet is still 192.168.2. as this is set through my router which has not changed in the last year.

Hope this helps with any diagnosis.
Reply With Quote
  #4  
Old 13th December 2011, 01:53 AM
RHamel Offline
Registered User
 
Join Date: Sep 2004
Location: Denver, Colorado
Posts: 554
linuxfirefox
Re: Samba configuration issue

Try restarting
Code:
systemctl restart smb.service
systemctl restart nmb.service
systemctl restart winbind.service
Reply With Quote
  #5  
Old 13th December 2011, 03:19 AM
JTHolmstrom Offline
Registered User
 
Join Date: Dec 2011
Location: Saskatoon
Posts: 3
linuxfirefox
Re: Samba configuration issue --solved?

without restarting or making any changes it now works across all windows, Android, and Fedora machines on the subnet.

I have no idea what happened that changed the outcome.

Thanks for the input, I will keep it on file in case everything goes south again.
Reply With Quote
Reply

Tags
configuration, samba

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
samba configuration magicalshashank Servers & Networking 2 25th April 2011 06:14 PM
Samba configuration abhijitsarangi Servers & Networking 4 26th July 2010 02:35 PM
samba (mis-)configuration ?! miel Servers & Networking 17 20th August 2009 10:18 PM
Samba Configuration mohan_rahul Using Fedora 0 17th January 2007 05:26 PM


Current GMT-time: 00:58 (Thursday, 20-06-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat