Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Servers & Networking
FedoraForum Search

Forgot Password? Join Us!

Servers & Networking Discuss any Fedora server problems and Networking issues such as dhcp, IP numbers, wlan, modems, etc.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 23rd February 2009, 12:16 PM
asifjavaid Offline
Registered User
 
Join Date: Feb 2009
Posts: 14
how to config samba on fedora 10

hi all,

i want to configure samba on fedora 10.
here are my settings in smb.conf

[global]
workgroup = MARVELSERVICES
server string = Samba Server Version %v
interfaces = eth0
security = share
log level = 1
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
log file = /var/log/samba/log.%m
max log size = 50
load printers = yes
cups options = raw

[homes]
comment = Home Directories
browseable = no
writable = yes
; valid users = %S
; valid users = MYDOMAIN\%S

[printers]
comment = All Printers
path = /var/spool/samba
browseable = no
guest ok = no
writable = no
printable = yes
[ghafoor-home]
comment = Home Directory of Ghafoor
path = /home/ghafoor/home
browseable = yes
writable = yes
valid users = ghafoor
printable = yes
create mask = 0765


i have restarted the service using
service smb restart

but still unable to access linux from windows.
By doing the following
--Run-->\\192.168.1.1

the responce is "NETWORK PATH NOT FOUND"

the above ipaddress is pinging successfully without any loss of packets but can't access.



please guide me where i am wrong


Your true guidance will be highly appreciated.

--
Many Thanks

--
Regards,
Asif
Reply With Quote
  #2  
Old 23rd February 2009, 12:20 PM
glennzo's Avatar
glennzo Online
Un-Retired Administrator
 
Join Date: Mar 2004
Location: Salem, Mass USA
Posts: 13,934
Start here.
Turn the services on:
Code:
sudo /sbin/chkconfig --level 35 smb on
sudo /sbin/chkconfig --level 35 nmb on
Restart both:
Code:
sudo /sbin/service smb restart
sudo /sbin/service nmb restart
__________________
Glenn
The Bassinator © ®


Laptop: Toshiba Satellite / Intel Core 2 Duo 1.73 GHz / 2GB / 160GB / Intel Mobile 945GM/GMS/GME/943/940GML Integrated Graphics
Desktop: BioStar MCP6PB M2+ / AMD Phenom 9750 Quad Core / 4GB / 1TB SATA / 500GB SATA / EVGA GeForce 8400 GS 1GB
Reply With Quote
  #3  
Old 23rd February 2009, 12:42 PM
darkshadow Offline
Registered User
 
Join Date: Feb 2009
Posts: 42
restart your smb service (service smb restart) and you can check your config file by doing testparam

Fedora

Last edited by darkshadow; 10th March 2009 at 12:32 PM.
Reply With Quote
  #4  
Old 23rd February 2009, 12:50 PM
asifjavaid Offline
Registered User
 
Join Date: Feb 2009
Posts: 14
hi all

I all you suggessted but still facing the problem

NETWORK PATH NOT FOUND

here is result of testparm command.


Loaded services file OK
Server role: ROLE_STANDLONE

--
Thanks
Regards,
Asif
Reply With Quote
  #5  
Old 23rd February 2009, 01:04 PM
beaker_'s Avatar
beaker_ Offline
Registered User
 
Join Date: Nov 2008
Location: Canada
Posts: 2,050
At the terminal, smbclient -L 127.0.0.1
Reply With Quote
  #6  
Old 23rd February 2009, 01:04 PM
glennzo's Avatar
glennzo Online
Un-Retired Administrator
 
Join Date: Mar 2004
Location: Salem, Mass USA
Posts: 13,934
Does your workgroup name reflect the workgroup name on the Windows box?

What folder are you trying to share? I believe that it's difficult to share your home folder. That's the only thing I see in your smb.conf.
__________________
Glenn
The Bassinator © ®


Laptop: Toshiba Satellite / Intel Core 2 Duo 1.73 GHz / 2GB / 160GB / Intel Mobile 945GM/GMS/GME/943/940GML Integrated Graphics
Desktop: BioStar MCP6PB M2+ / AMD Phenom 9750 Quad Core / 4GB / 1TB SATA / 500GB SATA / EVGA GeForce 8400 GS 1GB
Reply With Quote
  #7  
Old 23rd February 2009, 01:17 PM
asifjavaid Offline
Registered User
 
Join Date: Feb 2009
Posts: 14
yes workgroup name is reflect the workgroup on the windows box.

smbclient -L 127.0.01

is running successfully.

I am facing a proble while accessing linux folders which i want to share from windows.
Reply With Quote
  #8  
Old 23rd February 2009, 01:19 PM
beaker_'s Avatar
beaker_ Offline
Registered User
 
Join Date: Nov 2008
Location: Canada
Posts: 2,050
What do you meen running successfully?

smbclient -L 127.0.0.1

Did it list your shares, prompt you for a password, or refuse connection?
Reply With Quote
  #9  
Old 23rd February 2009, 01:28 PM
asifjavaid Offline
Registered User
 
Join Date: Feb 2009
Posts: 14
yes smbclient -L 127.0.0.1

does list my shares, and prompt for password, within the same machine linux machine.
Reply With Quote
  #10  
Old 23rd February 2009, 01:31 PM
beaker_'s Avatar
beaker_ Offline
Registered User
 
Join Date: Nov 2008
Location: Canada
Posts: 2,050
check your firewall (both windows & Linux), put selinux into permissive mode (for now), and are you certain of the ipaddress. You're implying eith0 is 192.168.1.1.

Sorry try smbclient -L 192.168.1.1 anyway.
Reply With Quote
  #11  
Old 23rd February 2009, 01:38 PM
asifjavaid Offline
Registered User
 
Join Date: Feb 2009
Posts: 14
yes
selinux was at disabled mode.
I have set the selinux to permissive mode.
My linux machine is on eith0 192.168.1.1

I want to access it from windows but fails to access.
NETWROK PATH NOT FOUND.


but this Ipaddress is ping successfully.
Reply With Quote
  #12  
Old 23rd February 2009, 02:00 PM
beaker_'s Avatar
beaker_ Offline
Registered User
 
Join Date: Nov 2008
Location: Canada
Posts: 2,050
That's ok. We just keep working outward, starting with linux, then moving over to windows.

Confirm you can see your shares with konqueror, in the address bar type smb://127.0.0.1, then try smb://192.168.1.1. Can you see your shares?

Or at the terminal try 'nautilus smb://127.0.0.1', then try 'nautilus smb://192.168.1.1'.



----
Sorry for the late edit. You could jump conclusions and try adding these smb.conf

interfaces = lo eth0 192.168.1.1/24
hosts allow = 127.0.0.1 192.168.1.0/24

Last edited by beaker_; 23rd February 2009 at 02:24 PM.
Reply With Quote
  #13  
Old 23rd February 2009, 03:08 PM
asifjavaid Offline
Registered User
 
Join Date: Feb 2009
Posts: 14
I have trying in konqueror smb://192.168.1.1
only home folder is displaying but no my ghafoor folder?
Reply With Quote
  #14  
Old 23rd February 2009, 03:41 PM
asifjavaid Offline
Registered User
 
Join Date: Feb 2009
Posts: 14
hi all

yes
now i am getting all my share folders in konqueror smb://192.168.1.1

but cannot access them from windows

please guide me

your true guidance is highly appreciated
Reply With Quote
  #15  
Old 23rd February 2009, 03:46 PM
beaker_'s Avatar
beaker_ Offline
Registered User
 
Join Date: Nov 2008
Location: Canada
Posts: 2,050
comment out

[ghafoor-home]
comment = Home Directory of Ghafoor
path = /home/ghafoor/home
browseable = yes
writable = yes
valid users = ghafoor
# printable = yes
# create mask = 0765


then restart samba (service smb restart) and try again with konqueror.

Last edited by beaker_; 23rd February 2009 at 03:49 PM.
Reply With Quote
Reply

Tags
config, fedora, 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
system-config-samba crashes in Fedora 11 jmarg Using Fedora 8 3rd February 2010 05:54 PM


Current GMT-time: 08:38 (Saturday, 25-05-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