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.
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
# 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
# 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.
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?
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.
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)
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.
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.
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.