View Full Version : how to config samba on fedora 10
asifjavaid
23rd February 2009, 12:16 PM
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
glennzo
23rd February 2009, 12:20 PM
Start here.
Turn the services on:
sudo /sbin/chkconfig --level 35 smb on
sudo /sbin/chkconfig --level 35 nmb on
Restart both:
sudo /sbin/service smb restart
sudo /sbin/service nmb restart
darkshadow
23rd February 2009, 12:42 PM
restart your smb service (service smb restart) and you can check your config file by doing testparam ;)
Fedora (http://www.linux-archive.org/fedora-development/)
asifjavaid
23rd February 2009, 12:50 PM
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
beaker_
23rd February 2009, 01:04 PM
At the terminal, smbclient -L 127.0.0.1
glennzo
23rd February 2009, 01:04 PM
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.
asifjavaid
23rd February 2009, 01:17 PM
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.
beaker_
23rd February 2009, 01:19 PM
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?
asifjavaid
23rd February 2009, 01:28 PM
yes smbclient -L 127.0.0.1
does list my shares, and prompt for password, within the same machine linux machine.
beaker_
23rd February 2009, 01:31 PM
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.
asifjavaid
23rd February 2009, 01:38 PM
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.
beaker_
23rd February 2009, 02:00 PM
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
asifjavaid
23rd February 2009, 03:08 PM
I have trying in konqueror smb://192.168.1.1
only home folder is displaying but no my ghafoor folder?
asifjavaid
23rd February 2009, 03:41 PM
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
beaker_
23rd February 2009, 03:46 PM
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.
beaker_
23rd February 2009, 03:56 PM
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.
Sorry I misread your last reply. From windows at the command prompt; net view \\192.168.1.1
aabate58
23rd February 2009, 06:06 PM
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
I access shares from a linux box using the "user" security model.
Here's my conf file which is working fine for me. Of course, make sure you create samba users if you go this way. Also, make sure your fw is allowing incoming samba requests. Samba configured my firewall to allow:
137, 138 UDP
139, 445 TCP
Hope this helps.
-Al
[global]
workgroup = <myworkgroup>
server string = <linux hostname>
log file = /var/log/samba/log.%m
max log size = 50
security = user
passdb backend = tdbsam
local master = no
wins server = <wins server>
load printers = no
cups options = raw
username map = /etc/samba/smbusers
[homes]
comment = Home Directories
browseable = no
writable = yes
[shares]
path = /somedir/someshare
writeable = yes
valid users = smbuser1, smbuser2, etc...
asifjavaid
24th February 2009, 08:11 AM
hi yahoo!
I have solved my problem and got success to configure.
Many thanks alot for all of you for excellent guidence.
Asif
Daur
24th February 2009, 12:32 PM
solved but how ??
asifjavaid
24th February 2009, 12:35 PM
The firewall was making a problem
using the following command
system-config-firewall.
I have change some settings related to samba and http and got success. And rest of all configuration is ok.
--
Regards,
Asif
Daur
24th February 2009, 01:01 PM
Thanks asif
this also solved my problem..
damn sometimes minor things become a huge problem in linux :)
asifjavaid
24th February 2009, 01:03 PM
yes thats right you are.
Congratulations! on your success!
Daur
24th February 2009, 01:10 PM
i cant see other network machines in my workgroup ?
Windows Network Share show the Workgroup, and when i open it, it only displays my Linux machine..
no other machines which are attached to this workgroup..
any idea ??
asifjavaid
24th February 2009, 01:17 PM
workgroup of which mahine windows or linux?
On my side we can see other network mahines in our workgroup of windows as well linux too. like this
"asif on Samba Server Version 3.2.8-0.26.fc10 (192.168.1.102)" ----> this the name of linux machine which is visible in windows machine as well with others.
If it is not on your side then may there must be a problem in your windows network side or in samba configuration.
Have you asign the windows workgroup name in [global] section of smb.conf
see my settings in above. I am assigning workgroup = MARVELSERVICES in [global] section.
okay?
Daur
24th February 2009, 01:27 PM
in Windows Machine i can see all the attached Network machines..
but in Linux, i cant see the attached network machines..
There in linux i can only see my own Linux machine..
yes the Workgroup are same..
even it share the files well..
can ping each other..
In Linux i access windows machine by their ips
exaple: smb:\\192.168.1.2 (192.168.1.2 is my windows machine IP)
In Linux i browse windows machine by using this command (smb:\\ IP_Address)..
i have to remember ips of all the attached windows machines..
In Linux, When i go to the Windows network (in Linux), it displays the Workgroup, But when i open the workgroup, it only shows my Linux machine, Not other windows machine..
Simply,In Linux i cant browse Windows machines, in Windows network.
Daur
24th February 2009, 01:36 PM
well now it started showing all the machine..
i dont know wt i did.. :D
only restarted my pc :)
OralDeckard
11th March 2009, 05:47 PM
Sorry. Didn't catch that the problem was solved.
beaker_
11th March 2009, 06:09 PM
Glad to see you solved it. If you haven't already discovered, then look at the samba extensions. I like the recycle bin, clamav, and extended logs. I also veto the recycle bin so regular users can't reach it (it's for future mess ups).
vBulletin® v3.8.7, Copyright ©2000-2013, vBulletin Solutions, Inc.