Click to See Complete Forum and Search --> : Samba wont start
BadFishBrewer
09-12-2002, 12:20 PM
I just installed Red Hat 7.3 Linux using the server selection.
I have tried to run samba but i get "command not found"
i typed "whereis samba" and got back:
Samba: /etc/samba /usr/share/samba /usr/share/man/man7/samba.7.gz
So how do i get samba to start?
Thanks
The learning but very newbie..:D
froggy3132000
09-12-2002, 12:37 PM
u said u tried to run samba, what did u do?
have you edited your smb.conf file?
try: /etc/init.d/smb restart
BadFishBrewer
09-12-2002, 02:16 PM
Hey Thanks,
Ok, so i typed /etc/init.d/smb restart
and i got the following:
shutting down SMB services: [Failed]
shutting down NMB services: [Failed]
Starting SMB Services
Starting NMB Services
[root@linuxserver /]# 10.10.10.2 sent an invalid ICMP error to a broadcast
10.10.10.2 sent an invalid ICMP error to a broadcast
10.10.10.2 sent an invalid ICMP error to a broadcast
10.10.10.2 sent an invalid ICMP error to a broadcast
10.10.10.2 sent an invalid ICMP error to a broadcast
10.10.10.2 sent an invalid ICMP error to a broadcast
10.10.10.2 sent an invalid ICMP error to a broadcast
10.10.10.2 sent an invalid ICMP error to a broadcast
10.10.10.2 sent an invalid ICMP error to a broadcast
10.10.10.2 sent an invalid ICMP error to a broadcast
NET: 11 messages suppressed
10.10.10.2 sent an invalid ICMP error to a broadcast
10.10.10.2 sent an invalid ICMP error to a broadcast
then it continued to give me the broadcast message
every time i did anything. So i typed /etc/init.d/smb stop
and it stopped.
:confused:
froggy3132000
09-12-2002, 04:44 PM
edit your /etc/samba/smb.conf file
there are plenty of examples on the net and this site if you need it
after you do that restart samba.
BadFishBrewer
09-13-2002, 10:10 AM
Cool, should i use vi to edit the smb.conf file??
froggy3132000
09-13-2002, 03:20 PM
use the text editor of your choice
it does not matter
BadFishBrewer
09-19-2002, 12:59 PM
OK, so this is want i've done now.
I did some more reading and searching on this site.
and did the following:
i configured smb.conf
i added it to my domain.
used all the defaults
then i typed /etc/init.d/smb restart
and i get the same error.
[root@linuxserver /]# 10.10.10.2 sent an invalid ICMP error to a broadcast
10.10.10.2 sent an invalid ICMP error to a broadcast
10.10.10.2 sent an invalid ICMP error to a broadcast
10.10.10.2 sent an invalid ICMP error to a broadcast
10.10.10.2 sent an invalid ICMP error to a broadcast
10.10.10.2 sent an invalid ICMP error to a broadcast
10.10.10.2 sent an invalid ICMP error to a broadcast
10.10.10.2 sent an invalid ICMP error to a broadcast
10.10.10.2 sent an invalid ICMP error to a broadcast
10.10.10.2 sent an invalid ICMP error to a broadcast
NET: 11 messages suppressed
10.10.10.2 sent an invalid ICMP error to a broadcast
10.10.10.2 sent an invalid ICMP error to a broadcast
However, i can see linuxserver when i open network places on my win 200 computer. I just get
\\linuxserver not accessible
network path was not found
So i think i am make progress, and i am starting to understand this thing a little more now everyday.
Thanks to everyone
froggy3132000
09-19-2002, 02:40 PM
can you ping from machine to machine?
add your win2k box in your /etc/hosts file.
BadFishBrewer
09-19-2002, 06:01 PM
I editted the /etc/host file and added:
ipaddress computername
i also pinged from both machine, and i could ping both, although
i could not resolve the machine names.
i then started ipchains, iptables, smb
I still get the error from above, and i can't access linuxserver from network places.
One thing, in the error message
[root@linuxserver /]# 10.10.10.2 sent an invalid ICMP error to a broadcast
10.10.10.2 sent an invalid ICMP error to a broadcast
10.10.10.2 sent an invalid ICMP error to a broadcast
10.10.10.2 sent an invalid ICMP error to a broadcast
10.10.10.2 sent an invalid ICMP error to a broadcast
10.10.10.2 sent an invalid ICMP error to a broadcast
10.10.10.2 sent an invalid ICMP error to a broadcast
10.10.10.2 sent an invalid ICMP error to a broadcast
10.10.10.2 sent an invalid ICMP error to a broadcast
10.10.10.2 sent an invalid ICMP error to a broadcast
NET: 11 messages suppressed
10.10.10.2 sent an invalid ICMP error to a broadcast
10.10.10.2 sent an invalid ICMP error to a broadcast
were is the ip address 10.10.10.2 coming from??
thats not the address of this machine.
my machines address is more like
10.78.xxx.xx
also i did
adduser myuserid
passwd myuseridpassword
also i added
smb user and password, which match up with my NT network ID and password.
thanks
Dutch Mafia-boy.
09-19-2002, 11:26 PM
http://dcfonline.sfu.ca/ying/linux/samba/part3.html
Remeber....inetd has been replaced with xinetd in Redhat 7.2/7.3....so the proper way to restart the xinetd daemon is:
service xinetd restart
BadFishBrewer
09-20-2002, 03:40 PM
ok, i stopped /etc/init.d/smb
and i stopped
services ipchains
services iptables
and i started
/etc/xinetd
now i cant see my linux server in network places
cowanrl
09-20-2002, 05:19 PM
Samba is not controlled by xinetd. The proper way to start/stop it is via the /etc/init.d/smb script. You can use the command:
service smb start | stop | restart | status
It would be helpful if you posted your /etc/samba/smb.conf file here for our reading enjoyment.
About your error messages:
Do you have the setting "wins server = yes" in your smb.conf file? If so, remark it out and see if that stops it.
Also
Execute:
/sbin/ifconfig
and take a look at the bcast address listing. In your case it sould be something like 10.78.xxx.255 but it really depends on your netmask. What is your ip address and netmask? Don't worry, we can't get to your 10 net address
It's also possible that there might be a router sohewhere on your network forwarding broadcasts. You'd have to talk to your network admin about that(or is that you?)
BadFishBrewer
09-20-2002, 05:34 PM
So i vi /etc/init.d/smb
and add the line
service smb start | stop | restart | status
:confused:
also my ip and netmask are
10.78.253.14 255.255.0.0
froggy3132000
09-20-2002, 05:43 PM
no
/etc/init.d/smb (start|stop|restart)
post your smb.conf file and your output of ifconfig.
froggy3132000
09-20-2002, 05:45 PM
just run something like this
ifconfig > "anything".txt
and post that text file
cowanrl
09-20-2002, 05:54 PM
In Red Hat, executing:
service smb restart (or any service for that matter, like httpd or dhcpd)
is the same as executing:
/etc/init.d/smb restart
I think "service smb" is easier to remember/type than /etc/init.d/smb.
Just a matter of personal preference.
BadFishBrewer
09-23-2002, 11:13 AM
just run something like this
ifconfig > "anything".txt
and post that text file
Ok, so i did
ifconfig > myconfigfile.txt
and saved it to /root
then i mounted my floppy,
mount /dev/fd0 /mnt/floppy
i then inserted a floppy into the drive.
i then typed,
cp /root/myconfigfile.txt /mnt/floppy
i then got the following error,
cp: cannot create regular file '/mnt/floppy/myconfigfile.txt': read-only file system
Q: i used a regular PC formated floppy disk, is there something
i have to do to make it readable by linux??
once i do this i will then post my smb.conf file here....
Thanks for all your time and effort.
:D
hanzerik
09-23-2002, 11:36 AM
Insert the floppy before you try to mount it :)
mount -t vfat /dev/fd0 /mnt/floppy
ifconfig > /mnt/floppy/netconfig.txt
cat /etc/samba/smb.conf > /mnt/floppy/smbconf.txt
And like the guys said before, post whats in your smb.conf file, so we can see if there are any errors.
BadFishBrewer
09-23-2002, 12:43 PM
Insert the floppy before you try to mount it
mount -t vfat /dev/fd0 /mnt/floppy
ifconfig > /mnt/floppy/netconfig.txt
cat /etc/samba/smb.conf > /mnt/floppy/smbconf.txt
SO i did what you said and it seemed to work, i could see the file on the floppy. However, when i removed the floppy ( it seem to have stopped writting) i got the following error and now i can't find the files.
floppy0: disk absent or changed during operation
end_request: I/O error, dev 02:00 (floppy), sector 99
is there something i need to do to the floppy or the mounted fs?
must i unmount ?? before i remove the floppy?
sorry about getting off track a bit but i need to do this first as so to move forward. I am writing all this down in my Admin log note book as to never have to ask again.
Again thank you for all the help.
:D
hanzerik
09-23-2002, 12:58 PM
You should umount it before you remove the floppy.
umount /dev/fd0
But before you do that type: sync to make sure what should be written on the floppy really is. Then unmount it.
BadFishBrewer
09-23-2002, 01:30 PM
You should umount it before you remove the floppy.
umount /dev/fd0
But before you do that type: sync to make sure what should be written on the floppy really is. Then unmount it.
Of course, it worked......:D
ok, so here is a copy of both the ifconfig and smb.conf
IFCONFIG:
eth0 Link encap:Ethernet HWaddr 00:E0:29:71:97:7A
inet addr:10.78.253.14 Bcast:10.78.255.255 Mask:255.255.0.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1173 errors:0 dropped:0 overruns:0 frame:0
TX packets:4 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:482781 (471.4 Kb) TX bytes:240 (240.0 b)
Interrupt:11 Base address:0x9f00
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:8 errors:0 dropped:0 overruns:0 frame:0
TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:560 (560.0 b) TX bytes:560 (560.0 b)
Thanks
BadFishBrewer
09-23-2002, 01:32 PM
And this is the
SMB.CONF
[global]
# workgroup = NT-Domain-Name or Workgroup-Name
workgroup = et
# server string is the equivalent of the NT Description field
server string = SambaServer
# This option is important for security. It allows you to restrict
# connections to machines which are on your local network. The
# following example restricts access to two C class networks and
# the "loopback" interface. For more examples of the syntax see
# the smb.conf man page
hosts allow = 192.168.1. 192.168.2. 127.
hosts allow = 10.78.0.1/255 10.78.1.1.255 10.78.253.1/255
# if you want to automatically load your printer list rather
# than setting them up individually then you'll need this
printcap name = /etc/printcap
load printers = yes
# It should not be necessary to spell out the print system type unless
# yours is non-standard. Currently supported print systems include:
# bsd, sysv, plp, lprng, aix, hpux, qnx
printing = lprng
# Uncomment this if you want a guest account, you must add this to /etc/passwd
# otherwise the user "nobody" is used
guest account = nobody
# this tells Samba to use a separate log file for each machine
# that connects
log file = /var/log/samba/%m.log
# Put a capping on the size of the log files (in Kb).
max log size = 0
# Security mode. Most people will want user level security. See
# security_level.txt for details.
security = server
# Use password server option only with security = server
# The argument list may include:
# password server = My_PDC_Name [My_BDC_Name] [My_Next_BDC_Name]
# or to auto-locate the domain controller/s
# password server = *
password server = et-pdc
# Password Level allows matching of _n_ characters of the password for
# all combinations of upper and lower case.
; password level = 8
; username level = 8
# You may wish to use password encryption. Please read
# ENCRYPTION.txt, Win95.txt and WinNT.txt in the Samba documentation.
# Do not enable this option unless you have read those documents
encrypt passwords = yes
smb passwd file = /etc/samba/smbpasswd
# The following is needed to keep smbclient from spouting spurious errors
# when Samba is built with support for SSL.
; ssl CA certFile = /usr/share/ssl/certs/ca-bundle.crt
# The following are needed to allow password changing from Windows to
# update the Linux sytsem password also.
# NOTE: Use these with 'encrypt passwords' and 'smb passwd file' above.
# NOTE2: You do NOT need these to allow workstations to change only
# the encrypted SMB passwords. They allow the Unix password
# to be kept in sync with the SMB password.
unix password sync = Yes
passwd program = /usr/bin/passwd %u
passwd chat = *New*password* %n\n *Retype*new*password* %n\n *passwd:*all*authentication*tokens*updated*success fully*
# You can use PAM's password change control flag for Samba. If
# enabled, then PAM will be used for password changes when requested
# by an SMB client instead of the program listed in passwd program.
# It should be possible to enable this without changing your passwd
# chat parameter for most setups.
pam password change = yes
# Unix users can map to different SMB User names
; username map = /etc/samba/smbusers
# Using the following line enables you to customise your configuration
# on a per machine basis. The %m gets replaced with the netbios name
# of the machine that is connecting
; include = /etc/samba/smb.conf.%m
# This parameter will control whether or not Samba should obey PAM's
# account and session management directives. The default behavior is
# to use PAM for clear text authentication only and to ignore any
# account or session management. Note that Samba always ignores PAM
# for authentication in the case of encrypt passwords = yes
obey pam restrictions = yes
# Most people will find that this option gives better performance.
# See speed.txt and the manual pages for details
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
# Configure Samba to use multiple interfaces
# If you have multiple network interfaces then you must list them
# here. See the man page for details.
; interfaces = 192.168.12.2/24 192.168.13.2/24
# Configure remote browse list synchronisation here
# request announcement to, or browse list sync from:
# a specific host or from / to a whole subnet (see below)
; remote browse sync = 192.168.3.25 192.168.5.255
# Cause this host to announce itself to local subnets here
; remote announce = 192.168.1.255 192.168.2.44
# Browser Control Options:
# set local master to no if you don't want Samba to become a master
# browser on your network. Otherwise the normal election rules apply
; local master = no
# OS Level determines the precedence of this server in master browser
# elections. The default value should be reasonable
; os level = 33
# 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
# if you enable domain logons then you may want a per-machine or
# per user logon script
# run a specific logon batch file per workstation (machine)
; logon script = %m.bat
# run a specific logon batch file per username
; logon script = %U.bat
# Where to store roving profiles (only for Win95 and WinNT)
# %L substitutes for this servers netbios name, %U is username
# You must uncomment the [Profiles] share below
; logon path = \\%L\Profiles\%U
# Windows Internet Name Serving Support Section:
# WINS Support - Tells the NMBD component of Samba to enable it's WINS Server
; wins support = yes
# WINS Server - Tells the NMBD components of Samba to be a WINS Client
# Note: Samba can be either a WINS Server, or a WINS Client, but NOT both
; wins server = w.x.y.z
# WINS Proxy - Tells Samba to answer name resolution queries on
# behalf of a non WINS capable client, for this to work there must be
# at least one WINS Server on the network. The default is NO.
; wins proxy = yes
# DNS Proxy - tells Samba whether or not to try to resolve NetBIOS names
# via DNS nslookups. The built-in default for versions 1.9.17 is yes,
# this has been changed in version 1.9.18 to no.
dns proxy = no
# Case Preservation can be handy - system default is _no_
# NOTE: These can be set on a per share basis
; preserve case = no
; short preserve case = no
# Default case is normally upper case for all DOS files
; default case = lower
# Be very careful with case sensitivity - it can break things!
; case sensitive = no
#============================ Share Definitions ==============================
[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 = Temporary file space
path = /tmp
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/samba
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
;[public]
; path = /usr/somewhere/else/public
; public = yes
; only guest = yes
; writable = yes
; printable = no
;[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
froggy3132000
09-23-2002, 02:32 PM
uncomment the remote annouce for your network(s)
uncomment ONE or the OTHER:
wins support or wins server
and add the corresponding info
BadFishBrewer
09-23-2002, 05:30 PM
Well, i uncommented the remote announce and added information.
also uncommented winsserver and added the ip for the wins server.
I then started /etc/samba/smb or service smb start
and still get the
10.10.10.2 sent an invalid ICMP error to a broadcast
I then check netstat -nr
and found the following:
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
10.78.0.0 0.0.0.0 255.255.0.0 U 40 0 0 eth0
127.0.0.0 0.0.0.0 255.0.0.0 U 40 0 0 lo
0.0.0.0 10.78.254.2 0.0.0.0 UG 40 0 0 eth0
Does this mean anything???
:confused:
froggy3132000
09-23-2002, 05:46 PM
u have two networks?
what is your network configuration like? how many machines?
it sound like you have a broadcast domain whic is not forwarding the requests.
double check your ip addressing scheme and make sure are all nics are good.
froggy3132000
09-23-2002, 05:48 PM
it sounds like one of the interfaces is losing connectivity.
jumpedintothefire
09-24-2002, 12:56 AM
>>hosts allow = 10.78.0.1/255 10.78.1.1.255 10.78.253.1/255
try:
hosts allow = 10.78.
or
hosts allow = 10.78.0. 10.78.1. 10.78.253.
>>inet addr:10.78.253.14 Bcast:10.78.255.255 Mask:255.255.0.0
Thats your ip...
Are you sure that you need a 255.255.0.0 netmask for your network?
>>10.10.10.2 sent an invalid ICMP error to a broadcast??
That is not you... right?
Looks like, to me, that the machine at this address is misconfigured..... Or your netmask is wrong...
>>froggy3132000
I just see eth0....
BadFishBrewer
09-24-2002, 12:17 PM
OK, so first off, i can now access the Linuxserver and see a folder with my user name and i can access a folder named tmp.:D
This is what i did.
First after reading your replies about the two networks i did a little research on the network that i work on and found out the following:
1) the network i am on has its own DHCP server and the scope does not include the Linuxservers IP
2) the static IP for the linuxserver was assigned from another DHCP server form our mother company.
so i changed the static IP from
10.78.253.14
to
10.78.1.123
and now i can access the server.
however i am still going to make those chages to the host allow table.
Thanks
BadFishBrewer
09-24-2002, 04:46 PM
Ok, so here is something. I am still getting that error:
10.10.10.2 sent an invalid ICMP error to a broadcast
and netstat -nr still shows:
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
10.78.0.0 0.0.0.0 255.255.0.0 U 40 0 0 eth0
127.0.0.0 0.0.0.0 255.0.0.0 U 40 0 0 lo
0.0.0.0 10.78.254.2 0.0.0.0 UG 40 0 0 eth0
However as long as i have
service iptables stop
service ipchains stop
then i can access the linux box thur network places on my
win2k box.
so what do you think??
thanks again.
hanzerik
09-24-2002, 08:17 PM
do this:
iptables -L > tables.txt
And post the info that is in the file.
BadFishBrewer
10-08-2002, 12:46 PM
Sorry it took so long to reply, was on a business trip.
So i typed
iptables -L > tables.txt
and got the following error:
iptables V1.2.5: can't initialize iptables table 'filter' : iptables who?
(do you need to insmod?) perhaps iptables or your kernel needs to be upgraded
So what'ca think??