View previous topic :: View next topic |
Author |
Message |
Bleaked n00b
Joined: 02 Feb 2004 Posts: 12 Location: Noosphere
|
Posted: Mon Feb 02, 2004 7:48 pm Post subject: Samba as a PDC |
|
|
Ok, I've been searching Google and the Gentoo Forums for two weeks. The good news is that I am getting closer to solving my problems. Here's my problem:
I have a small network, DSL coming into a Firewalled/Router, and then NATed to my internal network of about 10 computers. It is a very simple, very common setup. The router acts as the DHCP server handing out pre-determined IP's based off of the workstation's MAC addresses. (Basically a static network that uses DHCP - I know this sounds redundant, but it's easier for me, and eliminates many variables when troubleshooting). I have a gentoo box and several workstations that all have various shares that everyone needs access to. There are several NT4 boxes, as well as two W2K and two WinXP's. Right now, when users on one workstation try to access a share on another computer then get a prompt to enter a User Name and Password.
Ideally I would like to have a user sit down at their specified computer, login, and have access to all shares on the network for that session. Please tell me if this will not work, but I setup samba on the gentoo box to act as a PDC. Right now, in windows, when I try to connect to the PDC I get a Username and Password prompt, but the usernames and passwords I setup do not work. I've followed every tutorial out there for correctly setting up users, but to no avail.
So, my two questions are is setting up Samba as a PDC the right choice for clearing up the constant logging in issue between shares? (Note: all machines have eachother's usernames and passwords manually entered which worked for the NT and XP machines, but not the 2000 machines).
And second, can someone please tell me how to properly enter users into the samba system (through useradd, passwd, smbpasswd, etc).
Thank you for any and all help.
::Bleaked: |
|
Back to top |
|
|
adaptr Watchman
Joined: 06 Oct 2002 Posts: 6730 Location: Rotterdam, Netherlands
|
Posted: Mon Feb 02, 2004 9:19 pm Post subject: Re: Samba as a PDC |
|
|
Bleaked wrote: | Ok, I've been searching Google and the Gentoo Forums for two weeks. The good news is that I am getting closer to solving my problems. Here's my problem:
I have a small network, DSL coming into a Firewalled/Router, and then NATed to my internal network of about 10 computers. |
Not quite : the LAN is NATted, not the gateway.
But you didn't want to know that, so let's skip it
Bleaked wrote: | I have a gentoo box and several workstations that all have various shares that everyone needs access to. There are several NT4 boxes, as well as two W2K and two WinXP's. Right now, when users on one workstation try to access a share on another computer then get a prompt to enter a User Name and Password.
Ideally I would like to have a user sit down at their specified computer, login, and have access to all shares on the network for that session. Please tell me if this will not work, but I setup samba on the gentoo box to act as a PDC. |
The most pertinent question is : do you need user-level security?
If you don't, you can ease all this by allowing anyone access when they login, since their actual access rights will still be determined by their Linux permissions.
Bleaked wrote: | Right now, in windows, when I try to connect to the PDC I get a Username and Password prompt, but the usernames and passwords I setup do not work. I've followed every tutorial out there for correctly setting up users, but to no avail. |
Not correctly, then - I can assure you that it does work.
For Win2K and up you have to make machine trust accounts for every machine that wants to participate, in addition to adding users.
This can however be automated by Samba creating trust acconts and users on-the-fly - worth checking out if you have several users behind several workstations.
Bleaked wrote: | So, my two questions are is setting up Samba as a PDC the right choice for clearing up the constant logging in issue between shares? |
If the shares reside on Windows machines then using Samba will not lessen the amount of authorising that needs to be done between these systems; since Samba can at best emulate an NT4 PDC it won't handle the (much more complex) kerberos authentication and authorisation used by Win2K.
Bleaked wrote: | And second, can someone please tell me how to properly enter users into the samba system (through useradd, passwd, smbpasswd, etc). |
You could emerge superuseradd - this is a small wrapper around useradd that makes adding a Linux user a bit easier.
Next - when you've given them a password - you have to add them to Samba in the usual way, and for a Win2K or WinXP user, you have to add an account for each machine as well.
This machine account has to be the NetBIOS machine name with a "$" appended on the end.
You then add this account to Samba with the -M option, but without the "$"!
Have you studied the official "Using Samba" documentation ?
Samba is one of the most complex servers in existence, but getting it to work can be very very rewarding _________________ >>> emerge (3 of 7) mcse/70-293 to /
Essential tools: gentoolkit eix profuse screen |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|