Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
HELP W/ SAMBA PLEASE
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
sardiskan
Tux's lil' helper
Tux's lil' helper


Joined: 07 Oct 2004
Posts: 115
Location: Montgomery

PostPosted: Thu Oct 28, 2004 7:47 pm    Post subject: HELP W/ SAMBA PLEASE Reply with quote

I am trying to get my gentoo box to be a PDC for my domain. Everying seems to work fine, except that when a win comptuer tries to join the domain, it will be rejected unless I go through and add the machine account to the linux box. I would have to run this command for every box.

Code:
linux / # /usr/bin/useradd -g machines -d /dev/null -c "machine id" -s /bin/false machine_name$
linux / # passwd -l machine_name$


After I do this process I can join the win machine to the domain but according to the resource I'm reading I should be able to add this to the smb.conf file and the machine will get added automagically when it attempts to join:

Code:
linux / # add user script = /usr/bin/useradd -d /dev/null -g machines -s /bin/false -M %u


I have this in my smb.conf file but unless I have run the previous commands first, no win computer will join the domain.

Does anyone have any ideas?

Thanks,
Jason
_________________
Unless a grain of wheat falls to the ground and dies, it remains only a single seed.
Back to top
View user's profile Send private message
stamperb
Tux's lil' helper
Tux's lil' helper


Joined: 03 Mar 2004
Posts: 100

PostPosted: Fri Oct 29, 2004 3:22 pm    Post subject: Reply with quote

I'm stuck with the exact same situation. Everything else works awesome but the auto creation of the machine accounts. Must be looking at the same document from ibm :-). I'm activly seraching and if i find anything i'll post here.
Thanks,
Back to top
View user's profile Send private message
stamperb
Tux's lil' helper
Tux's lil' helper


Joined: 03 Mar 2004
Posts: 100

PostPosted: Fri Oct 29, 2004 3:51 pm    Post subject: Reply with quote

OK i think i have something here. Found it a few threads down in my search.
1. rather than add user script use add machine script.
2. the -M doesn't seem to be necisarry. Might be a gentoo thing??

Man adduser says:
-M RedHat added the CREATE_HOME option in login.defs in their ver-
sion of shadow-utils (which makes -m the default, with new -M
option to turn it off). Unfortunately, this changes the way
useradd works (it can be run by scripts expecting some standard
behaviour), compared to other Unices and other Linux distribu-
tions, and also adds a lot of confusion.

so in total (i've not had a chance to give this a shot yet but will tonight when i get home.

add machine script = /usr/sbin/useradd -s /bin/false -d /dev/null -g machines %u

I found this here
https://forums.gentoo.org/viewtopic.php?t=211074&highlight=samba+pdc
The only thing he doesn't do is add the -g machines which is a group add for the new user and shouldn't make any difference. I'll attempt this tonight when i get home from work and see if that fixes the problem.
Back to top
View user's profile Send private message
sardiskan
Tux's lil' helper
Tux's lil' helper


Joined: 07 Oct 2004
Posts: 115
Location: Montgomery

PostPosted: Fri Oct 29, 2004 4:37 pm    Post subject: Thanks Reply with quote

Hey cool, I'll give that a try, thanks for your assistance.
_________________
Unless a grain of wheat falls to the ground and dies, it remains only a single seed.
Back to top
View user's profile Send private message
stamperb
Tux's lil' helper
Tux's lil' helper


Joined: 03 Mar 2004
Posts: 100

PostPosted: Sat Oct 30, 2004 1:21 am    Post subject: Reply with quote

Couple more notes.
1 - hopefully you can rename this thread to solved!! I've made this change on my setup and it worked the machine accounts using the line above get created just fine.

2 - My setup uses roaming profiles. When logging in i get the desktop.ini opening up in the notepad window. Its no big deal but annoying. So i've added:
hide files = /desktop.ini/
To my Profiles share in the smb.conf. This seems to solve that issue.

3 - the next issue was with the net groupmap stuff:
The Samba 3 by example says to use:
net groupmap modify ntgroup="Domain Admins" unixgroup=root

Makes since but if i do this for whatever reason when i add a user to the Root group they cannot login to the domain on the windows pc's.

Instead i created a group called admins and ran:
net groupmap modify ntgroup="Domain Admins" unixgroup=admins

When i log in w/ anyone who is a part of the admins group i have the ability to go in and change the domain/computername stuff. If the user does not have the admin group they don't get that option. Just my visible difference here. I'm not sure if this is correct or not but at this point i'm not concerened its working.

I played around messing with settings and deleting accounts and re-creating accounts enough that i think the above holds true.

Windows is anything but SMART so when these changes are made (the net groupmap stuff) i believe removing and re-adding the machines to the domain may be in order.

I eventually will hope to post a how-to on the gentoo-wiki page on the Samba PDC + Gentoo.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
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