[plug] Just a point in the right area

Ben Jensz jensz at wn.com.au
Fri Mar 8 14:08:11 WST 2002


Hi David,

Answers below:

>
> 1. I've got SAMBA up and running and sharing the unix home directories to
> who logs on with a windows machine. but I've found some weird probems.
>
> I login as eg. David on windows, and under my samba box I see a share for
> 'david' (the home dir on the unix box) now under windows win95 I double
> click it to access it, and it comes up with a 'enter the password in for
> that share' even tho my windows/unix passwd is the same. I just enter it
in,
> and it goes in. (should have to do tho?
> But then accessing the same thing using w2k/xp its a little different.
> I get on w2k, a enter user/pass box, on win95 its just a passwd box.
> and on the xp machine I get a login box, but I can't change the username,
> its preset to SERVERNAME/Guest but I can enter a passwd. I'm guessing that
> only sending the SERVERNAME/Guest (password to the unix/samba box)?

There are differences between authentication on Win95 and 2K/XP machines in
regards to Samba.  To use 2K/XP you have to use encrypted passwords which
uses a separate password file from the Unix system password (see smbpasswd).
With Win95, yes it will only allow you to use a password to access the
shared resource, using the username of the user currently logged onto the
Win95 machine.  I know that with XP you have to change something in the
registry to get it to authenticate against a Samba server properly, I don't
know whether this is the case with Win2K or not as I haven't tried 2K with
Samba, but in XP open up regedit and do a search for "requiresignorseal" and
set any instances of it that you find to "0", there should be 4 instances of
it (the first one is a folder, disregard that one).

BTW, I'm assuming you're using XP Pro and not Home Edition...

> 2. The other thing is I wouldn't mind learning about setting up DHCPd,
DNS,
> and gateway so the unix box can be the gateway machine to the internet.
> (like internet sharing on windows2k/xp, wingate setups!)
>

For DHCP, I would suggest reading:
http://www.linuxdocs.org/HOWTOs/mini/DHCP/

For DNS (with Bind):  http://www.linuxdocs.org/HOWTOs/DNS-HOWTO-1.html (some
changes need to be made for Bind 9.x though)

And in regards to sharing your internet connection on your Linux box, if
you're using a 2.2 kernel, see ipchains:

http://www.linuxdocs.org/HOWTOs/DNS-HOWTO-1.html

.. or if you're using a 2.4 kernel, read the iptables man page (man
iptables).

BTW, Google is your friend :).

HTH :)


/ Ben

p.s. Welcome to PLUG :)



More information about the plug mailing list