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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
04-25-2003, 10:34 PM
|
#1
|
Member
Registered: Apr 2003
Location: North Hollywood Ca
Distribution: RedHat FreeBSD
Posts: 130
Rep:
|
samba and ip masquerading = iptable/routing conflict?
New day old isssue. I have an xp pro client recieving an internet connection from a rh9 server who id masquerading eth0's dynamic internet feed. eth1 (linux) to hub on to xp pro. We all ping host names and xp can use winvnc and see all files on the server. however samba is not functional. netwk neighborhood detcts no server shares. Could the iptable script that is use for forwarding have effected sambas ability to be seen. or (hopefully) is there some smb.conf entry off or lacking?
please help. I had a mcse buddy look @ it today. he thinks its the servers issue (of course he does). I m not sure though.
oh yea m$ hosts and lmhosts are conifiged as are the reg hacks + patch applied.
thanx
|
|
|
04-25-2003, 10:39 PM
|
#2
|
Member
Registered: Apr 2003
Location: North Hollywood Ca
Distribution: RedHat FreeBSD
Posts: 130
Original Poster
Rep:
|
# Samba config file. a jacob hack
# from UNKNOWN (127.0.0.1)
# Date: 2003/04/25 19:22:06
# server 192.168.1.1
#M$ 192.168.1.2
# Global parameters
[global]
workgroup = OURHOUSE
netbios name = LINUX
netbios aliases = linux$
server string = linux PDC
interfaces = eth1
bind interfaces only = Yes
encrypt passwords = Yes
update encrypted = Yes
hosts equiv = /etc/hosts.equiv
null passwords = 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*
passwd chat debug = Yes
unix password sync = Yes
log file = /var/log/samba/log.%m
max log size = 50
name resolve order = lmhosts host hosts wins bcast
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
add user script = /usr/sbin/useradd -d /dev/null -g 100 -s /bin/false -M %u
logon script = /usr/local/samba/lib/netlogon/STARTUP.BAT
logon home = \\linux$\%U\.profile
domain logons = Yes
os level = 64
preferred master = Yes
domain master = Yes
wins support = Yes
guest account = SMBGUEST
admin users = randi jacob root
write list = randi jacob root
printer admin = randi jacob root
hosts allow = linux randi linux$
[netlogon]
path = /usr/local/samba/lib/netlogon
admin users = root jacob randi
write list = jacob root randi
printer admin = jacob root randi
read only = No
guest ok = Yes
hosts allow = 192.168.1.1 192.168.1.2/255.255.255.0 randi linux linux$
[public]
comment = Public Stuff
path = /home/public
admin users = randi,root
write list = jacob
force group = users
read only = No
create mask = 0775
force create mode = 0775
directory mask = 0775
force directory mode = 0775
guest ok = Yes
hide dot files = No
[homes]
comment = Home Directories
path = /home
valid users = %S
read only = No
create mask = 0600
directory mask = 0700
guest ok = Yes
[jacob]
path = /home/jacob
admin users = randi,jacob,root
read only = No
inherit permissions = Yes
guest ok = Yes
hide dot files = No
map system = Yes
map hidden = Yes
mangled names = No
locking = No
[profiles]
path = /etc/samba/profiles/
read only = No
create mask = 0600
directory mask = 0700
profile acls = Yes
[shared]
path = /shared
read only = No
guest ok = Yes
[randi]
path = /home/randi
admin users = randi,jacob,root
write list = root jacob
read only = No
guest ok = Yes
[documents]
path = /home/public/documents
guest ok = Yes
[commands]
path = /home/public/commands
guest ok = Yes
|
|
|
04-25-2003, 10:46 PM
|
#3
|
Member
Registered: Apr 2003
Location: North Hollywood Ca
Distribution: RedHat FreeBSD
Posts: 130
Original Poster
Rep:
|
SMB/CIFS clients, when they start up, may wish to locate an SMB/CIFS server. That is, they wish to know what IP number a specified host is using.
alnong those lines...
Amongst other services, nmbd will listen for such requests, and if its own NetBIOS name is specified it will respond with the IP number of the host it is running on. Its "own NetBIOS name" is by default the primary DNS name of the host it is running on, but this can be overridden with the -n option (see OPTIONS below). Thus nmbd will reply to broadcast queries for its own name(s). Additional names for nmbd to respond on can be set via parameters in the smb.conf(5) configuration file.
is this my problem? hmmm
|
|
|
04-26-2003, 12:32 PM
|
#4
|
Senior Member
Registered: Feb 2002
Location: Szczecin, Poland
Distribution: Gentoo, Debian
Posts: 2,458
Rep:
|
Do you have WINS resolution active in the XP clients?
You won't see any browse list from the server until after each client has logged on to the PDC and the WINS server and delivered their share lists.
What do you get in the client if you "net view \\server" or "net view \\192.168.1.1" ?
Last edited by peter_robb; 04-26-2003 at 12:33 PM.
|
|
|
04-26-2003, 03:19 PM
|
#5
|
Member
Registered: Apr 2003
Location: North Hollywood Ca
Distribution: RedHat FreeBSD
Posts: 130
Original Poster
Rep:
|
well i got it working. but as is the case in so many of my new "projects" im not so clear about what it is that I did or the specific factor causing the problem. I believe that this M$ formatted logon.bat did the trick though. Its funny because i have read a tremendous number of smb.conf templetes and i had not seen any reference to the critical nature of this entry. perhaps this was a semi unique case it that the routing and iptables on the server where tweaked because of its role as ip masquerader or NAT.
At any rate I am trying to put all of the pieces together today so that I better understand various configurations and approaches to troubleshooting. thank for your help. without folks willing to help id be floundering.
@echo off
echo "Configuring time and date.."
NET TIME \\NETBIOSNAMESAMBASERVER\ /SET /YES
echo "setting up Network drives.."
NET USE Z: \\NETBIOSNAMESAMBASERVER\PUBLIC
NET USE P: \\NETBIOSNAMESERVER\HOMES
|
|
|
04-26-2003, 04:11 PM
|
#6
|
Senior Member
Registered: Feb 2002
Location: Szczecin, Poland
Distribution: Gentoo, Debian
Posts: 2,458
Rep:
|
When you do a 'net use' or 'net view', it forces a share transaction and then caches them locally in the client.
We get similar problems getting browse lists through vpn tunnels.
Talk directly and presto, the magic list suddenly appears...
Placing the WINS on the gateway usually fixes these problems though.
|
|
|
All times are GMT -5. The time now is 04:31 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|