View previous topic :: View next topic |
Author |
Message |
shelly n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 21 May 2005 Posts: 8
|
Posted: Thu Dec 01, 2005 7:44 am Post subject: samba daemon won't start [SOLVED] |
|
|
I'm setting up samba/cups/clamav based on the how-to, all goes well until I go to start the samba server. I get this:
Code: | localhost samba # /etc/init.d/samba start
* samba -> start: smbd ... [ !! ]
* samba -> start: nmbd ... [ ok ]
* Error: stopping services (see system logs)
* samba -> stop: smbd ... [ !! ]
* samba -> stop: nmbd ... |
The smb.conf is pretty much what's in the how-to
Code: | [global]
# Replace MYWORKGROUPNAME with your workgroup/domain
workgroup = HOME
# Of course this has no REAL purpose other than letting
# everyone knows it's not Windows!
# %v prints the version of Samba we are using.
server string = Samba Server %v
# We are going to use cups, so we are going to put it in here ;-)
printcap name = cups
printing = cups
load printers = yes
# We want a log file and we do not want it to get bigger than 50kb.
log file = /var/log/samba/log.%m
max log size = 50
# We are going to set some options for our interfaces...
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
# This is a good idea, what we are doing is binding the
# samba server to our local network.
# For example, if eth0 is our local network device
interfaces = lo eth0
bind interfaces only = yes
# Now we are going to specify who we allow, we are afterall
# very security conscience, since this configuration does
# not use passwords!
hosts allow = 127.0.0.1 192.168.1.0/24
hosts deny = 0.0.0.0/0
# Other options for this are USER, DOMAIN, ADS, and SERVER
# The default is user
security = share
# No passwords, so we're going to use a guest account!
guest account = samba
guest ok = yes
# We now will implement the on access virus scanner.
# NOTE: By putting this in our [Global] section, we enable
# scanning of ALL shares, you could optionally move
# these to a specific share and only scan it.
# For Samba 3.x. This enables ClamAV on access scanning.
vfs object = vscan-clamav
vscan-clamav: config-file = /etc/samba/vscan-clamav.conf
# Now we setup our print drivers information!
[print$]
comment = Printer Drivers
path = /etc/samba/printer # this path holds the driver structure
browseable = yes
read only = yes
# Modify this to "username,root" if you don't want root to
# be the only printer admin)
write list = root
# Now we'll setup a printer to share, while the name is arbitrary
# it should be consistent throughout Samba and CUPS!
[HPDeskJet895C]
comment = HP DeskJet 895C Network Printer
printable = yes
path = /var/spool/samba
public = yes
guest ok = yes
# Modify this to "username,root" if you don't want root to
# be the only printer admin)
printer admin = root
# Now we setup our printers share. This should be
# browseable, printable, public.
[printers]
comment = All Printers
browseable = no
printable = yes
writable = no
public = yes
guest ok = yes
path = /var/spool/samba
# Modify this to "username,root" if you don't want root to
# be the only printer admin)
printer admin = root
# We create a new share that we can read/write to from anywhere
# This is kind of like a public temp share, anyone can do what
# they want here.
[public]
comment = Public Files
browseable = yes
public = yes
create mode = 0766
guest ok = yes
path = /home/samba/public
|
Plus it seems like if the was a conf error, it would at least start the service then give me trouble later no?
I'm not even sure what logs I shoudl be looking at, but the last few lines of /var/logs/messages says:
Code: | Dec 1 02:18:00 localhost PROTO=17 192.168.1.102:137 192.168.1.255:137 L=96 S=0x00 I=4 F=0x4000 T=64
Dec 1 02:18:00 localhost ip_local_deliver: bad skb: PRE_ROUTING LOCAL_IN LOCAL_OUT POST_ROUTING
Dec 1 02:18:00 localhost skb: pf=2 (unowned) dev=eth0 len=249
Dec 1 02:18:00 localhost PROTO=17 192.168.1.102:138 192.168.1.255:138 L=249 S=0x00 I=0 F=0x4000 T=64
Dec 1 02:18:00 localhost rc-scripts: Error: stopping services (see system logs)
Dec 1 02:18:00 localhost nmbd[17775]: [2005/12/01 02:18:00, 0] nmbd/nmbd.c:terminate(56)
Dec 1 02:18:00 localhost nmbd[17775]: Got SIGTERM: going down...
Dec 1 02:18:00 localhost ip_local_deliver: bad skb: PRE_ROUTING LOCAL_IN LOCAL_OUT POST_ROUTING
Dec 1 02:18:00 localhost skb: pf=2 (unowned) dev=eth0 len=249
Dec 1 02:18:00 localhost PROTO=17 192.168.1.102:138 192.168.1.255:138 L=249 S=0x00 I=1 F=0x4000 T=64
|
I've had this running before, it seemed pretty simple. Any thoughts?
Last edited by shelly on Fri Dec 02, 2005 12:53 am; edited 1 time in total |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Demonarch n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
![](images/avatars/gallery/Quake3/quake3_ranger_red.gif)
Joined: 01 Dec 2005 Posts: 12 Location: Tampere, Finland
|
Posted: Thu Dec 01, 2005 7:59 am Post subject: |
|
|
Had the same problem a couple of days ago, also worked fine earlier and then just got messed up.
First of all you might want to try doing and if you haven't done those already. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
shelly n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 21 May 2005 Posts: 8
|
Posted: Fri Dec 02, 2005 12:52 am Post subject: |
|
|
That at least got the service running, we'll see what happens next. Thanks! |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|