Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Samba, WINS and Dom logon on Psyche

Status
Not open for further replies.

Noip

IS-IT--Management
Apr 25, 2002
240
0
0
MU
Hi,

I've just setup a RedHat 8.0 box with 1 NIC.
I have no domain controller, some box on a common workgroup (win 9x) with static IPs on 192.168.2.0 network

I would like the Linux box to act as a samba server. This is my primary objective. If I could make it as a WINS server it will be very nice and if it could act as a logon server then it would simply be perfect!

What I have done so far:
smb.conf (I have ADD)
---Global Settings---
workgroup=wgp
host allow 192.168.2. 127.
remote browse sync = 192.168.2.
remote announce = 192.168.2.
local master = yes
domain master = yes
domain logons = yes
wins support = yes
----Share Definitions---
[main]
path=/share
browseable=yes
writable=yes
createmask=644
valid users= user0

Network settings:

I can ping the linux box from the win9x.
But 'net view \\linuxip' on a win9x PC return error53 i.e computer canot be located
'net view /workgroup:linuxwgp' return "computer sharing resource in this wgp cannot be located.

'smbclient -L 127.0.0.1' on the linux box return the shares and evrything seemed fine.

'mount -t smbfs -o user0 //127.0.0.1/main /mnt/share' on the linux box result in a successful mounted dir @ /mnt/share
As mentioned in the share definition 'main' --> /share
what is strange is that nothing is stored in /share but when mounted as above, I see some folders i.e amanda, kde-root,...
in /mnt/share

Any input will be much appreciated!

Thanks!
 
OK Need to ask some obvious questions here but do you have:

netbios name = 'some server name'
security = share (to start with)

accounts set up? i.e
useradd -c "Dave James" -m -g users -p H3lloW0rld davet
smbpassword -a davet - then confirm password.

Change the following lines:

Remote browse sync = <empty string>
Remote announce = <empty string>
Wins support = no
Add
guest ok = yes

Comment out (;)

Valid users = 'whatever'

Now try a net use t: \\servername\share

Once this works we can deal with domain PDC /Wins

Regards,

Simon
 
Thanks Simon,

what did u mean by
1. <netbios name = 'some server name'>? where to state that?
2. <security = share>? in smb.conf?

yes account is setup

I have made the appropriate changes in smb.conf as per your post.

Still can't browse the domain on the win9x clients

"net use t: \\servername\share" on the other hand gives no output
 
Apologies my first post contains a couple of errors.

security = is important as it tells samba how to authenticate clients and should be in smb.conf

Samba has two basic security modes - share and user level. This determines how clients authenticate. There is one share mode and four user modes.

My original post was wrong actually as we really want
security = user

netbios name allows us to specify a different netbios name for the machine. It defaults to the host portion of the FQDN - should really be set to a value of 15 characters or less and can be different to DNS.

Ensure the following:

The windows client has its workgroup set up as wgp
You log onto the machine with the username/password specified in smbpassword

Then try a net use again pointing to the netbios name specified.

EG
If the following were set and [main] is your share:
Netbios name = orion

@ client: net use t: \\orion\main

Try this and let me know.

Regards,

Simon
 
Thanks simon,

in smb.conf, i've adjusted where applicable to:
security = user
Netbios name = smbserv

i've log onto the win9x machine with the username/password specified in smbpassword

workgroup of win9x machine: wgp
on the win9x client
# net use t: \\smbserv\main
or
# net use t: \\smbservip\main (where smbservip is the ip of smbserv)
return "computer cannot be found"

on linux
# smbclient -L 127.0.0.1
returned:
Sharename Type Comment
--------- ---- -------
main Disk /share
IPC$ IPC IPC Service (Samba Server)
ADMIN$ Disk IPC Service (Samba Server)

and as I've explained earlier i can mount the share folder locally and the authentication is working fine i.e
# mount -t smbfs -o username=user0 //127.0.0.1/main /mnt/share
and then <Enter password>
I can see the stuff in /mnt/share

I think it is a prob of security
 
Yes it was!!!!!!,

just after I posted, I went to 'Text Mode Setup Utility' and disable firewall, now everything's fine.
 
Glad you got it up.

If you need more Domain/Wins info then give me a shout

Simon
 
Thanks Simon

I have played around with smb.conf and now my win9x clients are logging onto the linux domain.

I have comment out in smb.conf:
wins support = yes

and asked my win9x clients to use it, it may be a stupid question but how will I ensure that the WINS is resolving the hosts names. I mean how will I know when browsing the network on the win9x that it is not netbios that is responsible for name resolution.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top