LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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 10-08-2002, 08:17 PM   #1
hugosoto
Member
 
Registered: May 2002
Location: us
Distribution: redhat
Posts: 48

Rep: Reputation: 15
samba networking w2k and linux rh8


hi all, I am having problems with samba,
I can not access the linux box from windows 2000 , I see it in network browser , if I doble click on the pc I get this error

\\linux rh is not accesible
the network paht was not found

I use webmin to edit samba , i have a pear to peer network, here is my smb.conf

# This is the main Samba configuration file. You should read the
# smb.conf(5) manual page in order to understand the options listed
# here. Samba has a huge number of configurable options (perhaps too
# many!) most of which are not shown in this example
#
# Any line which starts with a ; (semi-colon) or a # (hash)
# is a comment and is ignored. In this example we will use a #
# for commentry and a ; for parts of the config file that you
# may wish to enable
#
# NOTE: Whenever you modify this file you should run the command "testparm"
# to check that you have not made any basic syntactic errors.
#
#======================= Global Settings =====================================
[global]
log file = /var/log/samba/%m.log
load printers = yes
guest account = pcguest
smb passwd file = /etc/samba/smbpasswd
passwd chat = *New*password* %n\n *Retype*new*password* %n\n *passwd:*all*authentication*tokens*updated*successfully*
obey pam restrictions = yes
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
encrypt passwords = yes
hosts allow = 192.168.1. 192.168.2. 127.
passwd program = /usr/bin/passwd %u
dns proxy = no
server string = Samba Server
printing = lprng
path = /home/hugos/descargas
unix password sync = Yes
workgroup = WORKGROUP
printcap name = /etc/printcap
security = user
max log size = 0
pam password change = yes

[homes]
comment = Home Directories
browseable = no
writable = yes
valid users = %S
create mode = 0664
directory mode = 0775
# If you want users samba doesn't recognize to be mapped to a guest user
map to guest = bad user


# Un-comment the following and create the netlogon directory for Domain Logons
; [netlogon]
; comment = Network Logon Service
; path = /usr/local/samba/lib/netlogon
; guest ok = yes
; writable = no
; share modes = no


# Un-comment the following to provide a specific roving profile share
# the default is to use the user's home directory
;[Profiles]
; path = /usr/local/samba/profiles
; browseable = no
; guest ok = yes


# NOTE: If you have a BSD-style print system there is no need to
# specifically define each individual printer
[printers]
comment = All Printers
path = /var/spool/samba
browseable = no
# Set public = yes to allow user 'guest account' to print
guest ok = no
writable = no
printable = yes

# This one is useful for people to share files
;[tmp]
comment = samba share
path = /home
read only = no
public = yes

# A publicly accessible directory, but read only, except for people in
# the "staff" group
;[public]
comment = Public Stuff
path = /home/hugos/descargas
public = yes
writable = yes
printable = no
; write list = @staff

# Other examples.
#
# A private printer, usable only by fred. Spool data will be placed in fred's
# home directory. Note that fred must have write access to the spool directory,
# wherever it is.
;[fredsprn]
; comment = Fred's Printer
; valid users = fred
; path = /home/fred
; printer = freds_printer
; public = no
; writable = no
; printable = yes

# A private directory, usable only by fred. Note that fred requires write
# access to the directory.
;[fredsdir]
; comment = Fred's Service
; path = /usr/somewhere/private
; valid users = fred
; public = no
; writable = yes
; printable = no

# a service which has a different directory for each machine that connects
# this allows you to tailor configurations to incoming machines. You could
# also use the %U option to tailor it by user name.
# The %m gets replaced with the machine name that is connecting.
;[pchome]
; comment = PC Directories
; path = /usr/local/pc/%m
; public = no
; writable = yes

# A publicly accessible directory, read/write to all users. Note that all files
# created in the directory by users will be owned by the default user, so
# any user with access can delete any other user's files. Obviously this
# directory must be writable by the default user. Another user could of course
# be specified, in which case all files would be owned by that user instead.
;[public]
; path = /usr/somewhere/else/public
; public = yes
; only guest = yes
; writable = yes
; printable = no

# The following two entries demonstrate how to share a directory so that two
# users can place files there that will be owned by the specific users. In this
# setup, the directory should be writable by both users and should have the
# sticky bit set on it to prevent abuse. Obviously this could be extended to
# as many users as required.
;[myshare]
; comment = Mary's and Fred's stuff
; path = /usr/somewhere/shared
; valid users = mary fred
; public = no
; writable = yes
; printable = no
; create mask = 0765
[hugo]
path =/home/hugos/descargas
writable = yes
comment = hugosamba
valid users = administrator root Administrator
public = yes

ca you plase help me out
I am going crzy

thanks
 
Old 10-09-2002, 03:54 AM   #2
peter_robb
Senior Member
 
Registered: Feb 2002
Location: Szczecin, Poland
Distribution: Gentoo, Debian
Posts: 2,458

Rep: Reputation: 48
I don't see a NetBios name entry anywhere...

From the smb help files...

server string (G)
This controls what string will show up in the printer comment box in print manager and next to the IPC connection in net view. It can be any string that you wish to show to your users. It also sets what will appear in browse lists next to the machine name.

netbios name (G)
This sets the NetBIOS name by which a Samba server is known. By default it is the same as the first component of the host's DNS name. If a machine is a browse server or logon server this name (or the first component of the hosts DNS name) will be the name that these services are advertised under.

You are searching for "\\Linux" but you are not advertising the server with that netbios name...
Windoze has the habit of holding names in it's cache for a long time just in case the machine reappears, which is why \\Linux is still listed...
(And don't use spaces in the name)

Regards,
Peter

Last edited by peter_robb; 10-09-2002 at 03:58 AM.
 
Old 10-23-2002, 06:21 AM   #3
pagal
Member
 
Registered: Oct 2002
Distribution: Red Hat Phoebe!
Posts: 92

Rep: Reputation: 15
I have the exact same problem, did you solve it by any chance?
 
Old 10-23-2002, 08:51 AM   #4
lintadsl
LQ Newbie
 
Registered: Oct 2002
Posts: 25

Rep: Reputation: 15
The quick solution would be edit hosts file in the W2k box.
It should be some where winnt\system32\drivers\etc
the entry should be like
linux ipaddress

I assume you don't run DNS or WINS server in your lan which would be a primary solution for this issue.

Regards,
Lintadsl
 
Old 10-23-2002, 07:39 PM   #5
hugosoto
Member
 
Registered: May 2002
Location: us
Distribution: redhat
Posts: 48

Original Poster
Rep: Reputation: 15
issue fixed

I fixed

it was the fire wall, after moving down the sec. level
works just fine
 
Old 10-24-2002, 12:55 AM   #6
pagal
Member
 
Registered: Oct 2002
Distribution: Red Hat Phoebe!
Posts: 92

Rep: Reputation: 15
that's what I thought too...but everytime I change the security level and apply, it goes back to "High" the next time I check it.
(from kde)
 
Old 10-24-2002, 01:42 AM   #7
LinLin
LQ Newbie
 
Registered: Oct 2002
Posts: 3

Rep: Reputation: 0
I guess u did set up ipchain or iptable while u install your linux. So, to work it out, do the following: Type the following:
I hope it work!

service ipchains stop
 
Old 10-31-2002, 10:25 AM   #8
Trinity
LQ Newbie
 
Registered: Oct 2002
Posts: 1

Rep: Reputation: 0
can linux be setup to be the wins server ?

thanks

Jenn
 
Old 11-01-2002, 09:51 PM   #9
J_Szucs
Senior Member
 
Registered: Nov 2001
Location: Budapest, Hungary
Distribution: SuSE 6.4-11.3, Dsl linux, FreeBSD 4.3-6.2, Mandrake 8.2, Redhat, UHU, Debian Etch
Posts: 1,126

Rep: Reputation: 58
Yes, uncomment the following line in smb.conf :

wins support = yes

I had hard times with our brand new win xp HOMEs when not using wins. So I did the same.
 
  


Reply



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
Networking problem with W2k and RedHat 9 Linux shawnpetersonrec Linux - Networking 2 07-25-2005 12:41 AM
networking linux w2k MAC os9 OSX sohan Linux - Networking 2 03-16-2004 08:07 AM
HELP with networking between a PC with Linux RH8 and Windows 98 pabloromero Linux - Networking 10 11-24-2003 02:03 PM
SAMBA bet RH 9 & W2K with Netgear Router - can't see W2K share cevjr Linux - Software 0 07-30-2003 11:44 AM
RH8 vs W2K oldwordsmith Linux - Software 3 05-02-2003 12:52 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 05:29 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration