LinuxQuestions.org
Review your favorite Linux distribution.
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 01-09-2004, 08:37 PM   #1
dave37
Member
 
Registered: Sep 2003
Location: Ottawa, Canada
Distribution: Ubuntu Dapper
Posts: 70

Rep: Reputation: 16
networking with samba between xp and linux


Using Redhat 9. I have Samba installed and "configured". XP machine named Marlenepc on Mshome network. Linux/Xp dual boot machine localhost. Both connected to an SMC home router. Can connect no trouble in expee.

When running linux on localhost cannot connect between the two machines. Have no idea how to try from Linux, but from Marlenepc (expee) it does not see the linux machine localhost.

I have turned off the firewalling on both the linux machine and the expee machine. I need some really basic help here (please be kind, am now familiar with linux but not the networking component). The linux box has users dave, marlene, the windows box has users dave, marlene and both use the same user/password pairs.

I have made sure that samba is running on the linux machine localhost when trying. Below is my smb.conf file. If anyone can help it would be greatly appreciated. Once I can get this done, I can convince the wife to let me load linux on her machine. Also below the output of the testparm for samba

SMB.conf

# Samba config file created using SWAT
# from localhost.localdomain (127.0.0.1)
# Date: 2003/10/13 14:35:09

# Global parameters
[global]
log file = /var/log/samba/%m.log
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_SNDBUF=8192 SO_RCVBUF=8192
wins server = Marlenepc
username map = /etc/samba/smbusers
encrypt passwords = yes
passwd program = /usr/bin/passwd %u
dns proxy = No
netbios name = localhost
writeable = yes
server string = Dave Linux User
printing = cups
path = /mnt/windows
only user = yes
unix password sync = yes
workgroup = Mshome
os level = 20
max log size = 0
pam password change = Yes

[printers]
comment = All Printers
path = /var/spool/samba
printable = Yes
browseable = No

[cdrom1]
path = /mnt/cdrom1
writeable = yes
comment = CD-Writer
guest ok = yes

[windows]
comment = Linux-Windows shared drive
writeable = yes
valid users = adm, dave, marlene
path = /mnt/windows

Samba testparm below:

[root@localhost dave]# testparm /etc/samba/smb.conf
Load smb config files from /etc/samba/smb.conf
Processing section "[printers]"
Processing section "[cdrom1]"
Processing section "[windows]"
Loaded services file OK.
Press enter to see a dump of your service definitions

# Global parameters
[global]
coding system =
client code page = 850
code page directory = /usr/share/samba/codepages
workgroup = MSHOME
netbios name = LOCALHOST
netbios aliases =
netbios scope =
server string = Dave Linux User
interfaces =
bind interfaces only = No
security = USER
encrypt passwords = Yes
update encrypted = No
allow trusted domains = Yes
hosts equiv =
min passwd length = 5
map to guest = Never
null passwords = No
obey pam restrictions = Yes
password server =
smb passwd file = /etc/samba/smbpasswd
root directory =
pam password change = Yes
passwd program = /usr/bin/passwd %u
passwd chat = *New*password* %n\n *Retype*new*password* %n\n *passwd:*all*authentication*tokens*updated*successfully*
passwd chat debug = No
username map = /etc/samba/smbusers
password level = 0
username level = 0
unix password sync = Yes
restrict anonymous = No
lanman auth = Yes
use rhosts = No
admin log = No
log level = 0
syslog = 1
syslog only = No
log file = /var/log/samba/%m.log
max log size = 0
timestamp logs = Yes
debug hires timestamp = No
debug pid = No
debug uid = No
protocol = NT1
large readwrite = Yes
max protocol = NT1
min protocol = CORE
read bmpx = No
read raw = Yes
write raw = Yes
nt smb support = Yes
nt pipe support = Yes
nt status support = Yes
announce version = 4.9
announce as = NT
max mux = 50
max xmit = 16644
name resolve order = lmhosts host wins bcast
max ttl = 259200
max wins ttl = 518400
min wins ttl = 21600
time server = No
unix extensions = No
change notify timeout = 60
deadtime = 0
getwd cache = Yes
keepalive = 300
lpq cache time = 10
max smbd processes = 0
max disk size = 0
max open files = 10000
name cache timeout = 660
read size = 16384
socket options = TCP_NODELAY SO_SNDBUF=8192 SO_RCVBUF=8192
stat cache size = 50
use mmap = Yes
total print jobs = 0
load printers = Yes
printcap name = /etc/printcap
disable spoolss = No
enumports command =
addprinter command =
deleteprinter command =
show add printer wizard = Yes
os2 driver map =
strip dot = No
mangling method = hash
character set =
mangled stack = 50
stat cache = Yes
domain admin group =
domain guest group =
machine password timeout = 604800
add user script =
delete user script =
logon script =
logon path = \\%N\%U\profile
logon drive =
logon home = \\%N\%U
domain logons = No
os level = 20
lm announce = Auto
lm interval = 60
preferred master = Auto
local master = Yes
domain master = Auto
browse list = Yes
enhanced browsing = Yes
dns proxy = No
wins proxy = No
wins server = Marlenepc
wins support = No
wins hook =
kernel oplocks = Yes
lock spin count = 3
lock spin time = 10
oplock break wait time = 0
add share command =
change share command =
delete share command =
config file =
preload =
lock dir = /var/cache/samba
pid directory = /var/run/samba
utmp directory =
wtmp directory =
utmp = No
default service =
message command =
dfree command =
valid chars =
remote announce =
remote browse sync =
socket address = 0.0.0.0
homedir map = auto.home
time offset = 0
NIS homedir = No
source environment =
panic action =
hide local users = No
host msdfs = No
winbind uid =
winbind gid =
template homedir = /home/%D/%U
template shell = /bin/false
winbind separator = \
winbind cache time = 15
winbind enum users = Yes
winbind enum groups = Yes
winbind use default domain = No
comment =
path = /mnt/windows
alternate permissions = No
username =
guest account = nobody
invalid users =
valid users =
admin users =
read list =
write list =
printer admin =
force user =
force group =
read only = No
create mask = 0744
force create mode = 00
security mask = 0777
force security mode = 00
directory mask = 0755
force directory mode = 00
directory security mask = 0777
force directory security mode = 00
force unknown acl user = 00
inherit permissions = No
inherit acls = No
guest only = No
guest ok = No
only user = Yes
hosts allow =
hosts deny =
status = Yes
nt acl support = Yes
profile acls = No
block size = 1024
max connections = 0
min print space = 0
strict allocate = No
strict sync = No
sync always = No
write cache size = 0
max print jobs = 1000
printable = No
postscript = No
printing = cups
print command = lpr -r -P%p %s
lpq command = lpq -P%p
lprm command = lprm -P%p %j
lppause command =
lpresume command =
queuepause command =
queueresume command =
printer name =
use client driver = No
default devmode = No
printer driver =
printer driver file = /etc/samba/printers.def
printer driver location =
default case = lower
case sensitive = No
preserve case = Yes
short preserve case = Yes
mangle case = No
mangling char = ~
hide dot files = Yes
hide unreadable = No
delete veto files = No
veto files =
hide files =
veto oplock files =
map system = No
map hidden = No
map archive = Yes
mangled names = Yes
mangled map =
browseable = Yes
blocking locks = Yes
csc policy = manual
fake oplocks = No
locking = Yes
oplocks = Yes
level2 oplocks = Yes
oplock contention limit = 2
posix locking = Yes
strict locking = No
share modes = Yes
copy =
include =
exec =
preexec close = No
postexec =
root preexec =
root preexec close = No
root postexec =
available = Yes
volume =
fstype = NTFS
set directory = No
wide links = Yes
follow symlinks = Yes
dont descend =
magic script =
magic output =
delete readonly = No
dos filemode = No
dos filetimes = No
dos filetime resolution = No
fake directory create times = No
vfs object =
vfs options =
msdfs root = No

[printers]
comment = All Printers
path = /var/spool/samba
printable = Yes
browseable = No

[cdrom1]
comment = CD-Writer
path = /mnt/cdrom1
guest ok = Yes

[windows]
comment = Linux-Windows shared drive
valid users = adm, dave, marlene
[root@localhost dave]# [root@localhost dave]# testparm /etc/samba/smb.conf
bash: [root@localhost: command not found
[root@localhost dave]# Load smb config files from /etc/samba/smb.conf
bash: Load: command not found
[root@localhost dave]# Processing section "[printers]"
bash: Processing: command not found
[root@localhost dave]# Processing section "[cdrom1]"
bash: Processing: command not found
[root@localhost dave]# Processing section "[windows]"
bash: Processing: command not found
[root@localhost dave]# Loaded services file OK.
bash: Loaded: command not found
[root@localhost dave]# Press enter to see a dump of your service definitions
bash: Press: command not found
[root@localhost dave]#
[root@localhost dave]# # Global parameters
[root@localhost dave]# [global]
bash: [global]: command not found
[root@localhost dave]# coding system =
bash: coding: command not found
[root@localhost dave]# client code page = 850
Sorry - The Fax2Send Server is down!
[root@localhost dave]# code page directory = /usr/share/samba/codepages
bash: code: command not found
[root@localhost dave]# workgroup = MSHOME
bash: workgroup: command not found
[root@localhost dave]# netbios name = LOCALHOST
bash: netbios: command not found
[root@localhost dave]# netbios aliases =
bash: netbios: command not found
[root@localhost dave]# netbios scope =
bash: netbios: command not found
[root@localhost dave]# server string = Dave Linux User
bash: server: command not found
[root@localhost dave]# interfaces =
bash: interfaces: command not found
[root@localhost dave]# bind interfaces only = No
[root@localhost dave]# securty USER
bash: securty: command not found
[root@localhost dave]# encrypt passwrds Yes
bash: encrypt: command not found
[root@localhost dave]# update encrypted
bash: update: command not found
[root@localhost dave]# allw trusted dmans Yes
bash: allw: command not found
[root@localhost dave]# hsts equv
bash: hsts: command not found
[root@localhost dave]# mn passwd length 5
bash: mn: command not found
[root@localhost dave]# map t guest ever
bash: map: command not found
[root@localhost dave]# null passwrds
bash: null: command not found
[root@localhost dave]# bey pam restrctns Yes
bash: bey: command not found
[root@localhost dave]# passwrd server
bash: passwrd: command not found
[root@localhost dave]# smb passwd fle /etc/samba/smbpasswd
bash: smb: command not found
[root@localhost dave]# rt drectry
bash: rt: command not found
[root@localhost dave]# pam passwrd change Yes
bash: pam: command not found
[root@localhost dave]# passwd prgram /usr/bn/passwd %u
passwd: Only one user name may be specified.
[root@localhost dave]# passwd chat *ew*passwrd
 
Old 01-09-2004, 09:00 PM   #2
miaviator278
Member
 
Registered: Dec 2003
Location: Al-Diwania, Iraq (deployed)
Distribution: Slackware ONLY
Posts: 237

Rep: Reputation: 30
i wish i knew where there was a how-to on localhost, if no one know's i may be tempted write one after a lot of research.

for starters, everywhere in those files where a machine or network is refered to as localhost or localdomain, change it to the computer name (say marlenlinux) or something and the domain to the windows workgroup name (workgroup or mshome problably).

localhost is not a computer name, it is the default route to access the computer you are physically using. if you try to reference localhost you will get just that.

some other notes,
be sure the machines can ping each other lin > win / win > lin
try accesing win drives in linux.

if this isn't specific enough, or just helpless rambling, sorry. either way, keep posting.
 
Old 01-09-2004, 09:28 PM   #3
dave37
Member
 
Registered: Sep 2003
Location: Ottawa, Canada
Distribution: Ubuntu Dapper
Posts: 70

Original Poster
Rep: Reputation: 16
Ok, I can't ping. If I ping from expee, 192.168.2.22 all packets lost/no response. If I ping from windbloze to linux, same.

I guess I'll have to start there. I know that watching the idiot lights on my router I can see the two trying, so physical connection is ok. The expee box has all firewalling turned off, as does the linux box. I am behind a home router, checked the settings, seem ok. I can ping between the boxes when they're both running winbloze.

Any ideas?

Thanks

Last edited by dave37; 01-09-2004 at 09:30 PM.
 
Old 01-09-2004, 09:31 PM   #4
Onemessedupjedi
Member
 
Registered: Sep 2003
Location: Oregon
Distribution: Slackware 9.1
Posts: 194

Rep: Reputation: 30
Did redhat make that file for you or did you build it yourself?(I would assume no because of the created by SWAT tag) I only ask because it has a lot more content in it then the default one that came with mandrake...(networking is the only reason I decided to use it I hate it sometimes, but it has nice pre-built networking stuff.)


anyways, as miavaviator said you need to change any localhost names and from my experience with easy distros it seems that your domain name is localhost by default so you need to change that. I don't know how to do that in redhat though.

and really why I posted. I would really suggest that you not mount the windows directory as write. It'll ruin the NTFS partition and possibly the drive(I really don't know about the drive though). Even if you enabled enable NTFS write in a 2.6 kernel it doesn't like it when you change a file's size if I remember an article on it.
 
Old 01-10-2004, 06:20 PM   #5
miaviator278
Member
 
Registered: Dec 2003
Location: Al-Diwania, Iraq (deployed)
Distribution: Slackware ONLY
Posts: 237

Rep: Reputation: 30
man hostname
will tell you how to do it (or for non cli users go to lq's man page links)
 
Old 01-10-2004, 06:32 PM   #6
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,704

Rep: Reputation: 5897Reputation: 5897Reputation: 5897Reputation: 5897Reputation: 5897Reputation: 5897Reputation: 5897Reputation: 5897Reputation: 5897Reputation: 5897Reputation: 5897
For some reason RH configures the hostname to localhost.

If you want to change the hostname edit the /etc/sysconfig/network file.
You need to be logged in a root.

You can set the name for the windows network to anything by adding /changing

netbios name=

in the smb.conf file.

Be sure to restart samba for any changes to take effect.
 
  


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
how to setup samba for winxp/linux networking Ay-Karamba! Linux - Networking 2 08-27-2005 08:04 PM
networking linux with samba djgerbavore Linux - Networking 2 06-09-2005 08:47 PM
Linux and Windows Networking - SAMBA vadertech Linux - Networking 4 12-20-2002 01:34 AM
samba networking w2k and linux rh8 hugosoto Linux - Networking 8 11-01-2002 09:51 PM
Linux-Networking Configuring Samba and Firewall Pradeep Linux - Networking 0 11-26-2001 10:26 PM

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

All times are GMT -5. The time now is 10:50 PM.

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