blacklisted n00b
Joined: 23 May 2006 Posts: 65
|
Posted: Wed May 31, 2006 8:59 pm Post subject: [solved]problem starting samba |
|
|
Here is what happened:
# /etc/init.d/samba start
* samba -> start: smbd ... [ !! ]
* samba -> start: nmbd ... [ ok ]
* Error: stopping services (see system logs)
* samba -> stop: smbd ... [ !! ]
* samba -> stop: nmbd ... [ !! ]
My smb.conf:
[global]
# Replace MYWORKGROUPNAME with your workgroup/domain
workgroup = MSGROUP
netbios name = wadhwa
# 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
message command = /usr/bin/linpopup "%f" "%m" %s; rm %s
# 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 172. 127.
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
#guest ok = yes
#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!
#[HPDeskJet930C]
#comment = HP DeskJet 930C 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/killer/public
Also here is the log file /var/log/samba/log.smbd:
[2006/06/01 00:35:19, 0] smbd/server.c:main(805)
smbd version 3.0.22 started.
Copyright Andrew Tridgell and the Samba Team 1992-2006
[2006/06/01 00:35:19, 0] printing/print_cups.c:cups_cache_reload(85)
Unable to connect to CUPS server localhost - Connection refused
[2006/06/01 00:35:19, 0] printing/print_cups.c:cups_cache_reload(85)
Unable to connect to CUPS server localhost - Connection refused
[2006/06/01 00:35:19, 0] passdb/pdb_smbpasswd.c:startsmbfilepwent(195)
startsmbfilepwent_internal: file /var/lib/samba/private/smbpasswd did not exist. File successfully created.
[2006/06/01 00:35:19, 1] auth/auth_util.c:make_server_info_sam(876)
User samba in passdb, but getpwnam() fails!
[2006/06/01 00:35:19, 0] smbd/server.c:main(829)
ERROR: failed to setup guest info.
[2006/06/01 00:39:13, 0] smbd/server.c:main(805)
smbd version 3.0.22 started.
Copyright Andrew Tridgell and the Samba Team 1992-2006
[2006/06/01 00:39:13, 0] printing/print_cups.c:cups_cache_reload(85)
Unable to connect to CUPS server localhost - Connection refused
[2006/06/01 00:39:13, 0] printing/print_cups.c:cups_cache_reload(85)
Unable to connect to CUPS server localhost - Connection refused
[2006/06/01 00:39:13, 1] auth/auth_util.c:make_server_info_sam(876)
User samba in passdb, but getpwnam() fails!
[2006/06/01 00:39:13, 0] smbd/server.c:main(829)
ERROR: failed to setup guest info.
[2006/06/01 02:17:24, 0] smbd/server.c:main(805)
smbd version 3.0.22 started.
Copyright Andrew Tridgell and the Samba Team 1992-2006
[2006/06/01 02:17:24, 0] printing/print_cups.c:cups_cache_reload(85)
Unable to connect to CUPS server localhost - Connection refused
[2006/06/01 02:17:24, 0] printing/print_cups.c:cups_cache_reload(85)
Unable to connect to CUPS server localhost - Connection refused
[2006/06/01 02:17:24, 1] auth/auth_util.c:make_server_info_sam(876)
User samba in passdb, but getpwnam() fails!
[2006/06/01 02:17:24, 0] smbd/server.c:main(829)
ERROR: failed to setup guest info.
[2006/06/01 02:25:11, 0] smbd/server.c:main(805)
smbd version 3.0.22 started.
Copyright Andrew Tridgell and the Samba Team 1992-2006
[2006/06/01 02:25:11, 0] printing/print_cups.c:cups_cache_reload(85)
Unable to connect to CUPS server localhost - Connection refused
[2006/06/01 02:25:11, 0] printing/print_cups.c:cups_cache_reload(85)
Unable to connect to CUPS server localhost - Connection refused
[2006/06/01 02:25:11, 1] auth/auth_util.c:make_server_info_sam(876)
User samba in passdb, but getpwnam() fails!
[2006/06/01 02:25:11, 0] smbd/server.c:main(829)
ERROR: failed to setup guest info. |
|