Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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
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.
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
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.