LinuxQuestions.org
Help answer threads with 0 replies.
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 03-28-2004, 11:20 PM   #1
digital bots
Member
 
Registered: Feb 2002
Distribution: Slack 10.1
Posts: 215

Rep: Reputation: 30
Networking windows to linux


Hey guys i finally got my samba file server working on my cl2.5 machine. So far the only problem i have is the fact that the file transfur rate is way to slow. I sent over a couple of files to the linux machine from windows. Then when i try to access them in windows it takes almost a full min to open up where if i was doing it from a windows to windows machine it would only be a couple of secounds. So what i wanna know is how can i fix this issue. Because on my linux machine the files work great it only works slow when my windows machine networks into the linux one.


also 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
#
# For a step to step guide on installing, configuring and using samba,
# read the Samba HOWTO Collection.
#
# 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 level = 1 # Default is 0
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
read raw = yes # Default
write raw = yes # Default
oplocks = yes # Default
max xmit = 65535 # Default
dead time = 15 # Default is 0
getwd cache = yes
lpq cache = 30

# This is where you make the computers name simular to a netbios name of a win machine.
netbios name = ggx

# workgroup = NT-Domain-Name or Workgroup-Name, eg: LINUX2
workgroup = ccsustudent

# server string is the equivalent of the NT Description field
server string = Linux pc Samba Server

# Security mode. Defines in which mode Samba will operate. Possible
# values are share, user, server, domain and ads. Most people will want
# user level security. See the HOWTO Collection for details.
security = user

# Allow Encrypted Passwords
encrypted passwords = Yes

# Uncomment this if you want a guest account, you must add this to /etc/passwd
# otherwise the user "nobody" is used
; guest account = pcguest

# this tells Samba to use a separate log file for each machine
# that connects
log file = /var/log/samba.%m

# Put a capping on the size of the log files (in Kb).
max log size = 50

# Most people will find that this option gives better performance.
# See the chapter 'Samba performance issues' in the Samba HOWTO Collection
# and the manual pages for details.
# You may want to add the following on a Linux system:
# SO_RCVBUF=8192 SO_SNDBUF=8192
socket options = TCP_NODELAY

# Domain Master specifies Samba to be the Domain Master Browser. This
# allows Samba to collate browse lists between subnets. Don't use this
# if you already have a Windows NT domain controller doing this job
domain master = yes

# Preferred Master causes Samba to force a local browser election on startup
# and gives it a slightly higher chance of winning the election
; preferred master = yes

# Enable this if you want Samba to be a domain logon server for
# Windows95 workstations.
domain logons = yes

# DNS Proxy - tells Samba whether or not to try to resolve NetBIOS names
# via DNS nslookups. The default is NO.
dns proxy = no
map to guest = Bad User
restrict anonymous = no
guest ok = yes
domain master = no
preferred master = no
max protocol = NT
ldap ssl = No
server signing = Auto

# These scripts are used on a domain controller or stand-alone
# machine to add or delete corresponding unix accounts
; add user script = /usr/sbin/useradd %u
; add group script = /usr/sbin/groupadd %g
; add machine script = /usr/sbin/adduser -n -g machines -c Machine -d /dev/null -s /bin/false %u
; delete user script = /usr/sbin/userdle %u
; delete user from group script = /usr/sbin/deluser %u %g
; delete group script = /usr/sbin/groupdel %g


#============================ Share Definitions ==============================
[homes]
comment = Home Directories
read only = no

# 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


# This one is useful for people to share files
[tmp]
comment = Temporary file space
path = /tmp
read only = no
guest ok = yes

[mp3]
comment = harrys mp3 share
path = /shares/mp3
read only = no
guest ok = yes

Last edited by digital bots; 03-28-2004 at 11:51 PM.
 
Old 03-29-2004, 05:46 PM   #2
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
All I can think of is to check the log files. You may also want to try without the socket options. Did you check to see if networking is slowing it down?
 
Old 03-30-2004, 06:32 AM   #3
digital bots
Member
 
Registered: Feb 2002
Distribution: Slack 10.1
Posts: 215

Original Poster
Rep: Reputation: 30
Quote:
Originally posted by DavidPhillips
All I can think of is to check the log files. You may also want to try without the socket options. Did you check to see if networking is slowing it down?
I am not sure were to get those settings at. I did add my windows machine to my linux machines host file.
 
Old 03-30-2004, 09:21 AM   #4
ugge
Senior Member
 
Registered: Dec 2000
Location: Gothenburg, SWEDEN
Distribution: OpenSUSE 10.3
Posts: 1,028

Rep: Reputation: 45
The log file to check would be
/var/log/messages
check for errors around the time you try to connect. You could monitor the log file using the command
tail -f /var/log/messages
This will show the last entries in the log and will continuously show new entries written to the log.
ctrl+c to abort.

Is it only the connection part that is slow or is the actual transfer slow too?
If it's only the connection phase then I would suspect a name resolution issue.
Are you using DNS or /etc/hosts for name resolution?
Which order are your machine looking. (less /etc/nsswitch.conf should read hosts: files dns)
 
Old 03-30-2004, 02:00 PM   #5
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
ifconfig will show if you have excessive errors on the networking. There should also be some log files in /var/log/samba.
 
Old 03-30-2004, 10:46 PM   #6
digital bots
Member
 
Registered: Feb 2002
Distribution: Slack 10.1
Posts: 215

Original Poster
Rep: Reputation: 30
i think i found out why i can not get in i checked out my samba.wingzero log (wingzero is my winxp pc's name) and i found this.
[2004/03/29 21:17:18, 1] smbd/service.c:make_connection_snum(698)
wingzero (192.168.1.101) connect to service mp3 initially as user harold (uid=1000, gid=100) (pid 1562)
[2004/03/29 21:19:00, 0] lib/util_sock.c:read_socket_data(342)
read_socket_data: recv failure for 4. Error = Connection reset by peer
[2004/03/29 21:19:00, 1] smbd/service.c:close_cnum(880)
wingzero (192.168.1.101) closed connection to service mp3
[2004/03/30 23:28:27, 0] smbd/negprot.c:reply_nt1(289)
reply_nt1: smb signing is incompatible with share level security !
[2004/03/30 23:28:27, 0] rpc_server/srv_util.c:get_domain_user_groups(371)
get_domain_user_groups: primary gid of user [harold] is not a Domain group !
get_domain_user_groups: You should fix it, NT doesn't like that
[2004/03/30 23:28:27, 0] rpc_server/srv_util.c:get_alias_user_groups(219)
get_alias_user_groups: gid of user harold doesn't exist. Check your /etc/passwd and /etc/group files
[2004/03/30 23:37:42, 0] smbd/negprot.c:reply_nt1(289)
reply_nt1: smb signing is incompatible with share level security !
[2004/03/30 23:37:44, 1] smbd/service.c:make_connection_snum(698)
wingzero (192.168.1.105) connect to service mp3 initially as user harold (uid=1000, gid=100) (pid 2710)

It seems that its not logging in correctly to the linux pc. The problem is that my winxp machine my log in name is harold levy. So it must be killing the access to it. Also i did a ifconfig and i had no conficts. So outside of trying to create a harold levy account and add it to samba what else could i do. Because i think i tried that already and it didnt work.
 
Old 03-31-2004, 12:35 AM   #7
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
Oh, I thought it was just slow. So it cannot connect at all?
 
Old 03-31-2004, 03:17 AM   #8
Onemessedupjedi
Member
 
Registered: Sep 2003
Location: Oregon
Distribution: Slackware 9.1
Posts: 194

Rep: Reputation: 30
you have a couple things listed twice with different answers. Double check it, edit it so that you have only one of each option in global and then try it.
 
Old 03-31-2004, 06:46 AM   #9
digital bots
Member
 
Registered: Feb 2002
Distribution: Slack 10.1
Posts: 215

Original Poster
Rep: Reputation: 30
to dave: Yea i thought it was just slow but it seems that my samba settings let me view the files but not download them. Because after reading that log file it seems to have messages like this
[2004/03/30 23:37:42, 0] smbd/negprot.c:reply_nt1(289)
reply_nt1: smb signing is incompatible with share level security !
and i dont know if i am reading this correctly but does this mean i dont have the rights to download the files.

to onemessedupjedi I think its no longer a networking issue because ifconfig shows no errors or drops so now i have to figure out what i need to do from a security standpoint to get the username harold levy access to that share.
 
Old 03-31-2004, 10:59 AM   #10
ugge
Senior Member
 
Registered: Dec 2000
Location: Gothenburg, SWEDEN
Distribution: OpenSUSE 10.3
Posts: 1,028

Rep: Reputation: 45
It looks as though you have a problem with the username on the linux box.
Do you have a user harlod?
Login names with spaces ain't allowed in linux.
 
Old 03-31-2004, 11:00 AM   #11
ugge
Senior Member
 
Registered: Dec 2000
Location: Gothenburg, SWEDEN
Distribution: OpenSUSE 10.3
Posts: 1,028

Rep: Reputation: 45
I also notices that you have set net logons, but that you ain't sharing the netlogon directory.
 
Old 03-31-2004, 12:55 PM   #12
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
If your trying to do domain logins you need a machine account, and the admin will need to join the user to the domain. I think you still need to turn off the domain login encryption service on the windows box.

Normally I set all machine share type to be the same, either share level or user level.
 
  


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 with Windows RWWMATT Linux - Networking 1 06-19-2005 03:24 AM
Networking with windows/installing windows chepkutwo Linux - Networking 1 09-08-2004 08:30 AM
networking with windows exigent Linux - Networking 1 02-19-2004 07:01 AM
Networking with Windows XP and printing to Windows XP shared printer AlanButler Red Hat 1 10-27-2003 06:07 AM
networking on windows AlexXx Linux - Networking 12 03-15-2003 11:14 PM

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

All times are GMT -5. The time now is 10:22 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