LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-18-2003, 10:08 AM   #1
colpaarm
LQ Newbie
 
Registered: Jun 2003
Posts: 22

Rep: Reputation: 15
no hostnames in host allow/deny list error with samba


Hi guys. I'm trying to set up samba as a pdc. I've attempted to follow the instructions within the ibm samba tutorial and I think I did so just fine (I can't post the url because I don't have 5 posts yet). Here's my smb.conf file:

[global]
workgroup = UBERBEAST
netbios name = UBERBEAST
server string = Samba PDC running %v
socket options = TCP_NODELAY IPTOS_LOWDELAY SO_SNDBUF=8192 SO_RCVBUF=8192
os level = 64
preferred master = yes
local master = yes
domain master = yes
security = user
encrypt passwords = yes
domain logons = yes
log file = /var/log/samba/log.%m
log level = 3
max log size = 500
hosts allow = 127.0.0.1 192.168.0.1/255.255.255.0
logon home = \\%L\%U\.profile
logon drive = Q:
logon path = \\%L\profiles\%U
logon script = netlogon.bat
add user script = /usr/sbin/useradd -d /dev/null -g 201 -s /bin/false -M %u
; sync Linux passwords
unix password sync = yes
passwd program = /usr/bin/passwd %u
passwd chat = *New*UNIX*password* %n\n *Retype*new*UNIX*password* %n\n *Enter*new*UNIX*password* %n\n *Retype*new*UNIX*password* %n\n *passwd: *all*

authentication*tokens*updated*successfully*

#===Shares===
[homes]
comment = Home Directories
browseable = no
writeable = yes

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

[netlogon]
path = /home/netlogon
read only = yes
write list = @everyone

I've added the users using smbpasswd. I've restarted the service. Whenever I try to connect an xp machine (not home addition), however, I continually get a message stating that the network path was not found. I set the log level to 3 then checked the log file and I continually see (among other things)

lib/access.c : check_access(318)
check_access: no hostnames in host allow/deny list

I thought it might have something to do with the /etc/hosts.allow file (although this was not mentioned in the tutorial in the above link). However, there's nothing in that file and ftp and sshd work, so samba should work as well. And considering that I have the hosts allow directive set in smb.conf, I'm confused. Now, technically, it says "no hostnames" and I have ip addresses. However, at this point I'm just a little lost. Does anybody have a clue as to what I'm doing wrong? Thanks in advance for any help you can give.
 
Old 07-18-2003, 10:12 AM   #2
tjm
Member
 
Registered: Oct 2002
Posts: 55

Rep: Reputation: 15
odd... in my experience with samba... you don't need the = in hosts allow:

just hosts allow 123.123.456. is ok
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
APF deny list? I_AM Linux - General 1 07-26-2005 09:57 AM
How to setup a host.deny and host.allow for SSH? explorer1979 Linux - Security 2 01-31-2005 05:28 PM
Quick quide to host.allow / deny? dtournas Linux - General 2 06-19-2004 06:17 AM
How do I deny host? Inexactitude Linux - Security 3 02-22-2004 02:00 PM
host.deny is very wierd ForumKid Linux - Security 1 12-26-2001 06:09 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:05 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