LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 02-10-2006, 12:44 PM   #1
wampire
LQ Newbie
 
Registered: Feb 2006
Posts: 16

Rep: Reputation: 0
Samba configuration ? help me


hieverybody I have a problem about samba.I edited smb.conf file but I cant see linux machine on windows.Can you help me?

# smb.conf is the main Samba configuration file. You find a full commented
# version at /usr/share/doc/packages/samba/examples/smb.conf.SUSE if the
# samba-doc package is installed.
# Date: 2005-09-13
[global]
workgroup = tux
netbios name = wampiretux
server string = Wampire cennetler grubu puhaha
interfaces = 192.168.1.200/255.255.255.0



log level = 5
log file = /var/log/samba/%U
time server = Yes
smb passwd file = /etc/samba/smbpasswd
hosts allow = 192.168.1.0/255.255.255.0
hosts deny = 0.0.0.0/0.0.0.0
username map = /etc/samba/smbusers
passwd chat = *new*password* %n\n *new*password* %n\n *changed*
printing = cups
printcap name = cups
printcap cache time = 750
cups options = raw
map to guest = Bad User
include = /etc/samba/dhcp.conf
logon path = \\%L\profiles\.msprofile
logon home = \\%L\%U\.9xprofile
logon drive = P:
add machine script = /usr/sbin/useradd -c Machine -d /var/lib/nobody -s /bin/false %m$
domain logons = Yes
domain master = Yes
local master = Yes
os level = 65
wins support = Yes
veto files = /*.eml/*.nws/riched20.dll/*.{*}/
preferred master = Yes
security = user
idmap gid = 10000-20000
idmap uid = 10000-20000
passdb backend = smbpasswd

[cdrom]
comment = Linux CD-ROM
path = /media/cdrom
locking = No
[test]
comment = Test directory
browseable = yes
read only = yes
guest ok = yes
path = /export/samba/test
[homes]
comment = Home Directories
valid users = %S
browseable = No
read only = No
inherit acls = Yes
[profiles]
comment = Network Profiles Service
path = %H
read only = No
store dos attributes = Yes
create mask = 0600
directory mask = 0700

## Share disabled by YaST
# [users]
# comment = All users
# path = /home
# read only = No
# inherit acls = Yes
# veto files = /aquota.user/groups/shares/

## Share disabled by YaST
# [groups]
# comment = All groups
# path = /home/groups
# read only = No
# inherit acls = Yes

## Share disabled by YaST
# [printers]
# comment = All Printers
# path = /var/tmp
# printable = Yes
# create mask = 0600
# browseable = No
[print$]
comment = Printer Drivers
path = /var/lib/samba/drivers
write list = @ntadmin root
force group = ntadmin
create mask = 0664
directory mask = 0775

[netlogon]
comment = Network Logon Service
path = /var/lib/samba/netlogon
write list = root
 
Old 02-10-2006, 01:35 PM   #2
Dmjmusser
Member
 
Registered: Nov 2005
Location: Detroit, Michigan -- USA
Distribution: Fedora Core
Posts: 90

Rep: Reputation: 15
Well, let's first eliminate some basics:
  • Can you ping the machine by its Netbios name?
  • If not, can you even ping it by its IP address?
  • Is the server located on the other side of a firewall, which would prevent you from seeing the machine in Network Neighborhood?
  • If you can ping the machine by its Netbios name and/or IP address but cannot see it in network Neighborhood, can you access it by going to \\servername or \\ipaddress?

Just trying to figure out if this is really a Samba issue, or if it's more related to your network setup. I ask these things because in my setup, my computer is on our LAN, behind a firewall and with an internal IP address; while my Samba server is located on the other side of my firewall (and behind a second firewall) with a public IP address. So I can't see the server in Network Neighborhood, even if the workgroup name is the same (double-check that in your setup, too). However, I can still access the computer by its IP address and the computer name (though I don't think the Samba Netbios name will resolve over my firewall), and I just map the necessary drives so I'm set.

Also check the IPs of your computers trying to access this server. Looks like no one without an IP address of 192.168.1.XXX will be able to access this server.

~Myles

Last edited by Dmjmusser; 02-10-2006 at 01:37 PM.
 
Old 02-10-2006, 01:36 PM   #3
tangle
Senior Member
 
Registered: Apr 2002
Location: Smithville, TN
Distribution: Slackware
Posts: 1,745

Rep: Reputation: 71
Did you set the WINS server to your Linux box on the XP machine?
 
Old 02-11-2006, 04:33 AM   #4
wampire
LQ Newbie
 
Registered: Feb 2006
Posts: 16

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by Dmjmusser
Well, let's first eliminate some basics:
  • Can you ping the machine by its Netbios name?
  • If not, can you even ping it by its IP address?
  • Is the server located on the other side of a firewall, which would prevent you from seeing the machine in Network Neighborhood?
  • If you can ping the machine by its Netbios name and/or IP address but cannot see it in network Neighborhood, can you access it by going to \\servername or \\ipaddress?


~Myles
I can' ping by its netbios names but I can ping by its ip adress and I tried to connect linux macjine \\dns adres on windows it isnt okey.and I can't see linux machine on windows bu I tried //dns adres then it ask me username and password.It is my linux machine //dns adress. not \\dns adress

Last edited by wampire; 02-11-2006 at 05:04 AM.
 
Old 02-11-2006, 09:40 AM   #5
wampire
LQ Newbie
 
Registered: Feb 2006
Posts: 16

Original Poster
Rep: Reputation: 0
I hope nobody knows solving this problem
 
Old 02-11-2006, 10:49 AM   #6
nevils_nonsense
LQ Newbie
 
Registered: Feb 2006
Location: Okinawa, Japan
Distribution: Debian
Posts: 7

Rep: Reputation: 0
Have you tried to explore your linux machine from windows with \\ipaddress? If this shows the shares or asks for a password, you are headed in the right direction. It is possible that the Windows machine is not resolving the netbios or dns name. You could then just edit your WINS server settings.

Good luck and please work on your spelling and grammar, it is very distracting.
 
Old 02-11-2006, 11:20 AM   #7
ExplodingTurnip
LQ Newbie
 
Registered: May 2005
Location: Los Angeles, CA USA
Distribution: Slackware, Knoppix
Posts: 23

Rep: Reputation: 15
I would start by commenting out the "hosts deny" line and then (from a Windows box) use "nbtstat" to see if the shares become available.

It also looks like you're trying to run a domain controller which will require you to create Samba user accounts on the Linux box.
 
Old 02-11-2006, 12:13 PM   #8
wampire
LQ Newbie
 
Registered: Feb 2006
Posts: 16

Original Poster
Rep: Reputation: 0
Where can I find about samba documents?But I am using SUSE 10.0linux. and Windows don't access \\dns to linux machine
 
Old 02-11-2006, 07:24 PM   #9
thekillerbean
Member
 
Registered: Jan 2002
Distribution: Ubuntu 12.04.2 (Precise)
Posts: 89

Rep: Reputation: 16
There is very good documentation for smb.conf in the man pages. Type the following at the prompt:
Code:
$ man smb.conf
The "$" is the prompt and need not be typed - it may be different for your system.

Hope this helps a little.

Cheers,
kb.
 
Old 02-11-2006, 11:38 PM   #10
Dmjmusser
Member
 
Registered: Nov 2005
Location: Detroit, Michigan -- USA
Distribution: Fedora Core
Posts: 90

Rep: Reputation: 15
Checking out samba.org would probably help. I found the HOWTO and the Learn By Example sections very helpful.

~Myles
 
Old 02-12-2006, 09:38 AM   #11
wampire
LQ Newbie
 
Registered: Feb 2006
Posts: 16

Original Poster
Rep: Reputation: 0
thanks everybody
 
  


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
Samba Configuration BlandoCal Linux - Networking 10 10-29-2008 04:31 PM
Samba configuration milon Linux - Newbie 2 09-26-2004 10:01 AM
Samba Configuration EzehM Linux - Networking 6 06-24-2004 03:46 PM
Samba configuration littlegreenman Linux - Networking 14 09-10-2003 12:55 PM
Need your help on SAMBA configuration vwhk Linux - Software 4 01-14-2002 07:12 AM


All times are GMT -5. The time now is 11:18 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration