Hello all
I need some help understanding what is failing with my Samba installation.
I compiled Samba 2.0.6 on a Sparc Ultra-II Solaris 2.6, using GCC version
2.8.1. I have read in some of the docs that there may be some support for
shadow passwords but could not find a definition regarding shadow in any of
the compile scripts.
The SMB and NMB processes are running as deamons.
I am unable to browse this server from any of my Windoze machines, NT,
Windozes 98/95.. I get the following error when I do a net view:
System Error 5 has occurred.
Access is Denied
I cannot attach a drive to this from a windows machine, even using the -U
option to the net use command.
I get the following error when trying to attach without a user name
The password is invalid for \\aleve\tmp
Type the password for \\aleve\tmp
My guest user is valid, I created one specifically for Samba called smbguest.
I have gone through the Diagnosis.txt and everything works up to test 8
where it fails to do a net view command.
I can connect from the machine to itself as any Unix user using the
smbclient command.
I can attach to this machine when I change the security level from user to
share but I desire to have user lever security so I can use the Unix
password file for users.
The host I am testing from in this case is named Morpheus. I get the
following info and error in the smblog when I perform the net view:
[2000/01/09 11:38:33, 3] smbd/server.c:exit_server(435)
Server exit (normal exit)
[2000/01/09 11:38:49, 2] smbd/server.c:main(735)
Changed root to /
[2000/01/09 11:38:49, 3] smbd/oplock.c:open_oplock_ipc(86)
open_oplock_ipc: opening loopback UDP socket.
[2000/01/09 11:38:49, 3] lib/util_sock.c:open_socket_in(865)
bind succeeded on port 0
[2000/01/09 11:38:49, 3] smbd/oplock.c:open_oplock_ipc(114)
open_oplock ipc: pid = 1953, global_oplock_port = 32962
[2000/01/09 11:38:49, 3] smbd/process.c:process_smb(615)
Transaction 0 of length 72
[2000/01/09 11:38:49, 2] smbd/reply.c:reply_special(97)
netbios connect: name1=ALEVE name2=MORPHEUS
[2000/01/09 11:38:50, 3] smbd/process.c:process_smb(615)
Transaction 1 of length 174
[2000/01/09 11:38:50, 3] smbd/process.c:switch_message(448)
switch message SMBnegprot (pid 1953)
[2000/01/09 11:38:50, 3] smbd/negprot.c:reply_negprot(341)
Requested protocol [PC NETWORK PROGRAM 1.0]
[2000/01/09 11:38:50, 3] smbd/negprot.c:reply_negprot(341)
Requested protocol [XENIX CORE]
[2000/01/09 11:38:50, 3] smbd/negprot.c:reply_negprot(341)
Requested protocol [MICROSOFT NETWORKS 1.03]
[2000/01/09 11:38:50, 3] smbd/negprot.c:reply_negprot(341)
Requested protocol [LANMAN1.0]
[2000/01/09 11:38:50, 3] smbd/negprot.c:reply_negprot(341)
Requested protocol [Windows for Workgroups 3.1a]
[2000/01/09 11:38:50, 3] smbd/negprot.c:reply_negprot(341)
Requested protocol [LM1.2X002]
[2000/01/09 11:38:50, 3] smbd/negprot.c:reply_negprot(341)
Requested protocol [LANMAN2.1]
[2000/01/09 11:38:50, 3] smbd/negprot.c:reply_negprot(341)
Requested protocol [NT LM 0.12]
[2000/01/09 11:38:50, 3] smbd/negprot.c:reply_negprot(421)
Selected protocol NT LM 0.12
[2000/01/09 11:38:50, 3] smbd/process.c:timeout_processing(854)
end of file from client
[2000/01/09 11:38:50, 2] smbd/server.c:exit_server(408)
Closing connections
[2000/01/09 11:38:50, 0] locking/shmem.c:smb_shm_unregister_process(475)
ERROR smb_shm_unregister_process : couldn't find pid 1953 in file
/usr/local/samba/var/locks/SHARE_MEM_FILE.processes
[2000/01/09 11:38:50, 3] smbd/server.c:exit_server(435)
Server exit (normal exit)
Here is the output from testparm smb.conf:
# testparm smb.conf
Load smb config files from smb.conf
doing parameter syslog = 3
doing parameter log file = /var/adm/smblogs/smblog
Processing section "[tmp]"
doing parameter path = /tmp
doing parameter guest account = smbguest
doing parameter guest ok = Yes
Processing section "[d2]"
doing parameter path = /d2
doing parameter guest account = smbguest
doing parameter guest ok = Yes
pm_process() returned Yes
Loaded services file OK.
# Global parameters
[global]
workgroup = SAMBA
netbios name = ALEVE
netbios aliases server string = Samba 2.0.6
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
password server smb passwd file =
/usr/local/samba/private/smbpasswd
root directory = /
passwd program = /bin/passwd
passwd chat = *new*password* %n\n *new*password* %n\n *changed*
passwd chat debug = No
username map password level = 0
username level = 0
unix password sync = No
restrict anonymous = No
use rhosts = No
log level = 3
syslog = 3
syslog only = No
log file = /var/adm/smblogs/smblog
max log size = 5000
timestamp logs = Yes
debug hires timestamp = No
debug pid = No
debug uid = No
protocol = NT1
read bmpx = No
read raw = Yes
write raw = Yes
nt smb support = Yes
nt pipe support = Yes
nt acl support = Yes
announce version = 4.2
announce as = NT
max mux = 50
max xmit = 65535
name resolve order = lmhosts host wins bcast
max packet = 65535
max ttl = 259200
max wins ttl = 518400
min wins ttl = 21600
time server = No
change notify timeout = 60
deadtime = 0
getwd cache = Yes
keepalive = 300
lpq cache time = 10
max disk size = 0
max open files = 10000
read prediction = No
read size = 16384
shared mem size = 1048576
socket options = TCP_NODELAY
stat cache size = 50
load printers = Yes
printcap name = lpstat
printer driver file = /usr/local/samba/lib/printers.def
strip dot = No
character set mangled stack = 50
coding system client code page = 850
stat cache = Yes
domain groups domain admin group domain guest group
domain admin users domain guest users machine password timeout
= 604800
add user script delete user script logon script
logon path = \\%N\%U\profile
logon drive logon home = \\%N\%U
domain logons = No
os level = 20
lm announce = Auto
lm interval = 60
preferred master = No
local master = Yes
domain master = No
browse list = Yes
dns proxy = Yes
wins proxy = No
wins server wins support = No
wins hook kernel oplocks = Yes
ole locking compatibility = Yes
oplock break wait time = 10
smbrun = /usr/local/samba/bin/smbrun
config file preload lock dir =
/usr/local/samba/var/locks
default service message command dfree command
valid chars remote announce remote browse sync socket
address = 0.0.0.0
homedir map time offset = 0
unix realname = No
NIS homedir = No
panic action comment path alternate
permissions = No
revalidate = No
username guest account = smbguest
invalid users valid users admin users read
list write list force user force group read
only = Yes
create mask = 0744
force create mode = 00
security mask = -1
force security mode = -1
directory mask = 0755
force directory mode = 00
directory security mask = -1
force directory security mode = -1
guest only = No
guest ok = No
only user = No
hosts allow hosts deny status = Yes
max connections = 0
min print space = 0
strict sync = No
sync always = No
print ok = No
postscript = No
printing = sysv
print command = lp -c -d%p %s; rm %s
lpq command = lpstat -o%p
lprm command = cancel %p-%j
lppause command = lp -i %p-%j -H hold
lpresume command = lp -i %p-%j -H resume
queuepause command = lpc stop %p
queueresume command = lpc start %p
printer name printer driver = NULL
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
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
fake oplocks = No
locking = Yes
oplocks = Yes
level2 oplocks = No
oplock contention limit = 2
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 filetimes = No
dos filetime resolution = No
fake directory create times = No
[tmp]
path = /tmp
guest account = smbguest
guest ok = Yes
[d2]
path = /d2
guest account = smbguest
guest ok = Yes
Any help is greatly appreciated....
Dave Bentzen
---------------------------------------------------------------------------
Dave Bentzen Principal Engineer
Itron, Inc Spokane, WA
Dave.Bentzen@itron.com 509.891.3732
Good judgment comes from experience and experience comes from bad judgment.