LinuxQuestions.org
Review your favorite Linux distribution.
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 06-16-2003, 07:54 PM   #1
ikw38
Member
 
Registered: Nov 2002
Location: Dallas
Distribution: RedHat 8
Posts: 270

Rep: Reputation: 30
Angry Samba Won"t Start


OK I went ahead and reinstalled SuSe 8.2 pro. Now I am trying to configure Samba when I open SWAT under Webmin- and click on samba to start it just sits their and won't start.
This is insane to have something this hard to start.
I am running 2.27xx

What in the world is going on that I can not start Samba under ROOT?

I have used the SMB.Conf file I had earlier and here it is:

Date: 2003-06-16

[global]
server string = Samba PDC running %v
workgroup = SMIS
netbios name = Penguin
socket options = SO_KEEPALIVE IPTOS_LOWDELAY TCP_NODELAY
guest account = ikw38
security = user
encrypt passwords = yes
smb passwd file = /ect/samba/smbpaswd
unix password sync = yes
passwd program = /usr/bin/passwd %u
passwd chat = *New*password* %n\n
*Please*retype*new*password* %n\n
*password*successfully*updated*
local master = yes
os level = 99
domain master = Yes
prefered master = yes
domain logons = Yes
logon home = \\%L\%U\
logon drive -H:
logon path = \\%L\profile\%U
time server = Yes
wins support = true


===Shares===
[homes]
comment = Home Directories
browseable = no
writeable = yes
valid users = %S
create mode = 0664
directory mode = 0775
[netlogon]
comment = Network Logon Service
path = /home/samba/netlogon
writeable = no
share modules = no

[profiles]
path = /home/samba/profiles
browseable = no
log file = /var/log/samba/log.%m
log level = 2
max log size = 50
host allow = 127.0.0.1 192.168.1.0/255.255.255.0


[Shared]
comment = shared folder for all users
path = /shared
browseable = yes
writeable = yes

[shared1]
comment = shared for users of group1
path = /shared1
browseable = no
writeable = yes
valid users = root,ikw38,kfw77,scott92,scruffy,max

[homes]
comment = Home Directories
valid users = %S
browseable = No
writable = yes

[profiles]
path = /home/samba/profiles
writeable = yes
browseable = no
create mask = 0600
directory mask = 0700

[CDROM]
comment = Linux CD-ROM
path = /media/cdrom
locking = No
preexec = /bin/mount /media/cdrom
postexec = /bin/umount /media/cdrom

[printers]
guest account = ikw38
create mask = 0600
browseable = No
comment = All Printers
valid users = ikw38
printable = Yes
path = /var/tmp

[print$]
comment = Printer Drivers
path = /var/lib/samba/drivers
write list = @ntadmin root
force group = ntadmin
create mask = 0664
directory mask = 0775


Please help I am getting kinda nuts over this....
Thxs
ikw38
 
Old 06-16-2003, 08:17 PM   #2
rohang
Member
 
Registered: Aug 2002
Location: Sydney, Australia
Distribution: Redhat, Open BSD, SuSe, Debian, CentOS
Posts: 177

Rep: Reputation: 31
what's in your /var/log/messages file? Check for anything about samba in there.
 
Old 06-16-2003, 08:40 PM   #3
ikw38
Member
 
Registered: Nov 2002
Location: Dallas
Distribution: RedHat 8
Posts: 270

Original Poster
Rep: Reputation: 30
un 16 12:32:42 linux smbd[11415]: [2003/06/16 12:32:42, 0] param/params.c:Parameter(367)
Jun 16 12:32:42 linux smbd[11415]: params.c:Parameter() - Invalid parameter name in config. file.
Jun 16 12:32:42 linux smbd[11415]: [2003/06/16 12:32:42, 0] param/params.cm_process(603)
Jun 16 12:32:42 linux smbd[11415]: params.cm_process() - Failed. Error returned from params.carse().
Jun 16 12:43:08 linux smbd[11421]: [2003/06/16 12:43:08, 0] param/params.c:Parameter(367)
Jun 16 12:43:08 linux smbd[11421]: params.c:Parameter() - Invalid parameter name in config. file.
Jun 16 12:43:08 linux smbd[11421]: [2003/06/16 12:43:08, 0] param/params.cm_process(603)
Jun 16 12:43:08 linux smbd[11421]: params.cm_process() - Failed. Error returned from params.carse().
 
Old 06-16-2003, 08:40 PM   #4
ikw38
Member
 
Registered: Nov 2002
Location: Dallas
Distribution: RedHat 8
Posts: 270

Original Poster
Rep: Reputation: 30
Somthing about invalid paremainter?
Help?
 
Old 06-16-2003, 09:09 PM   #5
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,749

Rep: Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928
The command testparm will check the syntax of your smb.conf file. Post errors if you need help.

You can access shares and see how samba is functioning using the smbclient command.

Did you check the /var/log/samba logs?
 
Old 06-16-2003, 09:16 PM   #6
ikw38
Member
 
Registered: Nov 2002
Location: Dallas
Distribution: RedHat 8
Posts: 270

Original Poster
Rep: Reputation: 30
inux:~ # testparm
Load smb config files from /etc/samba/smb.conf
Processing section "[homes]"
Loaded services file OK.
Press enter to see a dump of your service definitions

# Global parameters
[global]
coding system =
client code page = 850
code page directory = /usr/share/samba/codepages
workgroup = SMIS
netbios name = PENGUIN
netbios aliases =
netbios scope =
server string = Samba PDC running %v
interfaces =
bind interfaces only = No
security = USER
encrypt passwords = No
update encrypted = No
allow trusted domains = Yes
hosts equiv =
min passwd length = 5
map to guest = Never
null passwords = No
obey pam restrictions = No
password server =
smb passwd file = /ect/samba/smbpaswd
root directory =
pam password change = No
passwd program = /usr/bin/passwd %u
passwd chat = *New*password* %n\n
passwd chat debug = No
username map =
password level = 0
username level = 0
unix password sync = Yes
restrict anonymous = No
lanman auth = Yes
use rhosts = No
admin log = No
log level = 0
syslog = 1
syslog only = No
log file =
max log size = 5000
timestamp logs = Yes
debug hires timestamp = No
debug pid = No
debug uid = No
protocol = NT1
large readwrite = Yes
max protocol = NT1
min protocol = CORE
read bmpx = No
read raw = Yes
write raw = Yes
nt smb support = Yes
nt pipe support = Yes
nt status support = Yes
announce version = 4.9
announce as = NT
max mux = 50
max xmit = 16644
name resolve order = lmhosts host wins bcast
max ttl = 259200
max wins ttl = 518400
min wins ttl = 21600
time server = Yes
unix extensions = No
change notify timeout = 60
deadtime = 0
getwd cache = Yes
keepalive = 300
lpq cache time = 10
max smbd processes = 0
max disk size = 0
max open files = 10000
name cache timeout = 660
read size = 16384
socket options = SO_KEEPALIVE IPTOS_LOWDELAY TCP_NODELAY
stat cache size = 50
use mmap = Yes
total print jobs = 0
load printers = Yes
printcap name = /etc/printcap
disable spoolss = No
enumports command =
addprinter command =
deleteprinter command =
show add printer wizard = Yes
os2 driver map =
strip dot = No
mangling method = hash
character set =
mangled stack = 50
stat cache = Yes
domain admin group =
domain guest group =
machine password timeout = 604800
add user script =
delete user script =
logon script =
logon path = \\%L\profile\%U
logon drive =
logon home = \\%L\%U logon drive -H:
domain logons = Yes
os level = 99
lm announce = Auto
lm interval = 60
preferred master = Yes
local master = Yes
domain master = Yes
browse list = Yes
enhanced browsing = Yes
dns proxy = Yes
wins proxy = No
wins server =
wins support = Yes
wins hook =
kernel oplocks = Yes
lock spin count = 3
lock spin time = 10
oplock break wait time = 0
add share command =
change share command =
delete share command =
config file =
preload =
lock dir = /var/lib/samba
pid directory = /var/run/samba
utmp directory =
wtmp directory =
utmp = No
default service =
message command =
dfree command =
valid chars =
remote announce =
remote browse sync =
socket address = 0.0.0.0
homedir map = auto.home
time offset = 0
NIS homedir = No
source environment =
panic action =
hide local users = No
host msdfs = No
winbind uid =
winbind gid =
template homedir = /home/%D/%U
template shell = /bin/false
winbind separator = \
winbind cache time = 15
winbind enum users = Yes
winbind enum groups = Yes
winbind use default domain = No
acl compatibility =
comment =
path =
alternate permissions = No
username =
guest account = ikw38
invalid users =
valid users =
admin users =
read list =
write list =
printer admin =
force user =
force group =
read only = Yes
create mask = 0744
force create mode = 00
security mask = 0777
force security mode = 00
directory mask = 0755
force directory mode = 00
directory security mask = 0777
force directory security mode = 00
force unknown acl user = 00
inherit permissions = No
inherit acls = No
guest only = No
guest ok = No
only user = No
hosts allow =
hosts deny =
status = Yes
nt acl support = Yes
profile acls = No
block size = 1024
max connections = 0
min print space = 0
strict allocate = No
strict sync = No
sync always = No
write cache size = 0
max print jobs = 1000
printable = No
postscript = No
printing = bsd
print command = lpr -r -P%p %s
lpq command = lpq -P%p
lprm command = lprm -P%p %j
lppause command =
lpresume command =
queuepause command =
queueresume command =
printer name =
use client driver = No
default devmode = No
printer driver =
printer driver file = /etc/samba/printers.def
printer driver location =
default case = lower
case sensitive = No
preserve case = Yes
short preserve case = Yes
mangle case = No
mangling char = ~
hide dot files = Yes
hide unreadable = No
delete veto files = No
veto files =
hide files =
veto oplock files =
map system = No
map hidden = No
map archive = Yes
mangled names = Yes
mangled map =
browseable = Yes
blocking locks = Yes
csc policy = manual
fake oplocks = No
locking = Yes
oplocks = Yes
level2 oplocks = Yes
oplock contention limit = 2
posix locking = Yes
strict locking = No
share modes = Yes
copy =
include =
exec =
preexec close = No
postexec =
root preexec =
root preexec close = No
root postexec =
available = Yes
volume =
fstype = NTFS
set directory = No
wide links = Yes
follow symlinks = Yes
dont descend =
magic script =
magic output =
delete readonly = No
dos filemode = No
dos filetimes = No
dos filetime resolution = No
fake directory create times = No
vfs object =
vfs options =
msdfs root = No
msdfs proxy =

[homes]
valid users = %S
read only = No
browseable = No
Here is the results of TESTPARM
and I do not have a var/log/samba??
Thxs
ikw38
 
Old 06-16-2003, 09:17 PM   #7
ikw38
Member
 
Registered: Nov 2002
Location: Dallas
Distribution: RedHat 8
Posts: 270

Original Poster
Rep: Reputation: 30
And it still won't start???
WOW I never run into anything this stuborn in a while...
 
Old 06-17-2003, 11:20 AM   #8
ikw38
Member
 
Registered: Nov 2002
Location: Dallas
Distribution: RedHat 8
Posts: 270

Original Poster
Rep: Reputation: 30
any suggestions here?? really need to get this going
 
Old 06-17-2003, 11:32 AM   #9
jchristman
Member
 
Registered: Mar 2003
Distribution: Fedora Core 3
Posts: 125

Rep: Reputation: 15
why do you have 2 [profiles]
in the config
 
Old 06-17-2003, 11:37 AM   #10
jchristman
Member
 
Registered: Mar 2003
Distribution: Fedora Core 3
Posts: 125

Rep: Reputation: 15
In your globals
exactly what does this do? login drive -H:
 
Old 06-17-2003, 11:53 AM   #11
ikw38
Member
 
Registered: Nov 2002
Location: Dallas
Distribution: RedHat 8
Posts: 270

Original Poster
Rep: Reputation: 30
Thanks for the quick reply,
I was attemping to setup the SMB.CONF file like it showed me in the tutorial on the web site that was given to me through this medium.
I would apreciate any corrections you see that are needed.
As you can see this was my first attemp to ever do this.
The second script you see was trying to confid gure it through SWAT-which I am unsure as to what really happened here. It looks like a mess at that.

All I want to is get my network to log into the Linux server.
I have one XP box, one 98 and a part time linux client I will be installing very soon as soon as I get Vendozes done.

Please any suggestion or a sugested SMB file would be great.
Thank you for your time,
ikw38
 
Old 06-17-2003, 12:08 PM   #12
jchristman
Member
 
Registered: Mar 2003
Distribution: Fedora Core 3
Posts: 125

Rep: Reputation: 15
ikw38,

below is a working sample of the smb.conf file
just copy it out of here into your smb.conf file and add the shares and permisions to the files needed. If you need help making the changes just let me know.

J

=================================================
smb.conf - copy everything below this section into new file.
=================================================


#======================= Global Settings =====================================
[global]

# workgroup = NT-Domain-Name or Workgroup-Name
workgroup = WORKGROUP

# server string is the equivalent of the NT Description field
server string = Samba Server
; hosts allow = 192.168.1. 192.168.2. 127.
printcap name = /etc/printcap
load printers = no
printing = lprng
; guest account = pcguest
log file = /var/log/samba/%m.log
max log size = 0
security = user
; password server = <NT-Server-Name>

# Password Level allows matching of _n_ characters of the password for
# all combinations of upper and lower case.
; password level = 8
; username level = 8

encrypt passwords = yes
smb passwd file = /etc/samba/smbpasswd
; ssl CA certFile = /usr/share/ssl/certs/ca-bundle.crt
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*successfully*
pam password change = yes

# Unix users can map to different SMB User names
; username map = /etc/samba/smbusers
; 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
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
; local master = no
; os level = 33
; domain master = yes
; 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.




[share1]
comment = Information Technology
valid users = user1,user2,@it
write list = user1,user2,@it
create mode = 0774
writable = yes
directory mode = 0775
path = /share1

#[public]
# path = /usr/somewhere/else/public
# public = yes
# only guest = yes
# writable = yes
# printable = no
 
Old 06-17-2003, 12:17 PM   #13
ikw38
Member
 
Registered: Nov 2002
Location: Dallas
Distribution: RedHat 8
Posts: 270

Original Poster
Rep: Reputation: 30
Thanks j will give it a go..... No need for me to worry about stoppping the service cuase it won't start- how about the NMBD should I stop it to be safe???

THxs...
 
Old 06-17-2003, 12:22 PM   #14
jchristman
Member
 
Registered: Mar 2003
Distribution: Fedora Core 3
Posts: 125

Rep: Reputation: 15
no there is no need

once you have the file in place and setup

just start it
probably best to do this from command line though
do the following.

chkconfig smb on // This will tell samba to allways start on reboot
service smb stop
service smb start
 
Old 06-17-2003, 04:04 PM   #15
ikw38
Member
 
Registered: Nov 2002
Location: Dallas
Distribution: RedHat 8
Posts: 270

Original Poster
Rep: Reputation: 30
OK Mates I have done the above and have somewhat better results. Now I can get the service started ok
but when I try to join the Domain I get this stupid error from M$

Note: This information is intended for a network administrator. If you are not your network's administrator, notify the administrator that you received this information, which has been recorded in the file C:\WINDOWS\debug\dcdiag.txt.

The domain name SMIS might be a NetBIOS domain name. If this is the case, verify that the domain name is properly registered with WINS.

If you are certain that the name is not a NetBIOS domain name, then the following information can help you troubleshoot your DNS configuration.

The following error occurred when DNS was queried for the service location (SRV) resource record used to locate a domain controller for domain SMIS:

The error was: "DNS name does not exist."
(error code 0x0000232B RCODE_NAME_ERROR)

The query was for the SRV record for _ldap._tcp.dc._msdcs.SMIS

Common causes of this error include the following:

- The DNS SRV record is not registered in DNS.

- One or more of the following zones do not include delegation to its child zone:

SMIS
. (the root zone)

I have it set up in my SMB.CONF under workgroup =SMIS
Samba Server is my Server string and
NT logon server= Samba Server


Can someone help me out here I know I am very close to closing this chapter... I hope....
 
  


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
big problem! tried a live cd, windows won t start anymore lek General 2 09-03-2005 11:44 AM
slack won`t start. ftbreak Linux - Newbie 5 02-04-2005 10:27 PM
Cds Won"t Play On Other Devices Otis Linux - Newbie 2 07-19-2004 12:41 AM
Backspace" key won`t work in Red Hat 8.0 dj1038 Linux - Laptop and Netbook 1 09-07-2003 03:56 AM
Mandrake 9.0 won´t start anymore! ferrantepunto Linux - Software 2 11-19-2002 10:23 AM

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

All times are GMT -5. The time now is 12:56 AM.

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