LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 05-02-2007, 09:11 PM   #1
uchuanng
LQ Newbie
 
Registered: May 2007
Posts: 11

Rep: Reputation: 0
Question Fail to add the new pc for the domain controller


I was face the problem, when i telnet to Linux server i try to add the new pc for the domain controller, i use the below command.

useradd -g machines -d /dev/null -c "Trusted Machines" -s /bin/false nhc081$

but the error message display

unknown group machines.
 
Old 05-02-2007, 09:52 PM   #2
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 677Reputation: 677Reputation: 677Reputation: 677Reputation: 677Reputation: 677
Did you get this example from the Samba3-Howto guide?
You may have skipped the part about creating a Unix group for the Machine Trusted Account group. There example used the group "machines" with a GID of 100.

Also check on the server, because maybe a different group name is used.
Another thing to check, is for a "add machine script =" entry in smb.conf. This entry will be essentially the same as the command you are using to manually add the machine. If you have this script it is better to try to join the domain from the windows machine (using the Domain Administrators password) and let Samba automatically create the Unix/Linux account for the machine. This way you don't have to make sure that you log on right away.

I would recommend reading chapter 6 of the Samba 3 Howto and Reference guide. You may have a samba-doc package that supplies it, such as in /usr/share/doc/packages/samba/Samba3-Howto.pdf. On some distro's the samba package supplies a postscript version. Otherwise, go to the Samba.org website and download a copy.
 
Old 05-02-2007, 10:45 PM   #3
uchuanng
LQ Newbie
 
Registered: May 2007
Posts: 11

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by jschiwal
Did you get this example from the Samba3-Howto guide?
You may have skipped the part about creating a Unix group for the Machine Trusted Account group. There example used the group "machines" with a GID of 100.

Also check on the server, because maybe a different group name is used.
Another thing to check, is for a "add machine script =" entry in smb.conf. This entry will be essentially the same as the command you are using to manually add the machine. If you have this script it is better to try to join the domain from the windows machine (using the Domain Administrators password) and let Samba automatically create the Unix/Linux account for the machine. This way you don't have to make sure that you log on right away.

I would recommend reading chapter 6 of the Samba 3 Howto and Reference guide. You may have a samba-doc package that supplies it, such as in /usr/share/doc/packages/samba/Samba3-Howto.pdf. On some distro's the samba package supplies a postscript version. Otherwise, go to the Samba.org website and download a copy.
Thanks for help.
i got 1 more question how to entry in smb.conf in the "add machines script=" can you write to the full script to me?
 
Old 05-02-2007, 11:28 PM   #4
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 677Reputation: 677Reputation: 677Reputation: 677Reputation: 677Reputation: 677
Here is an example from a Red Hat 3 configuration that Samba 3: Howto and Reference uses:
Code:
[global]
        ...
	add machine script = /usr/sbin/useradd -d /var/lib/nobody -g 100 -s /bin/false -M %u
        ...
In their example, the group "machines" is uses and it has a GID of 100.
This example is very close to yours. The "-M %u" is a dynamic variable which depends on the machine that is trying to be added.

Do you have a "machines" group added?
I would again highly recommend reading that chapter in the Samba 3 book. There is a new edition of "Using Samba" out that is very good as well. This book is in the book stores.
 
Old 05-03-2007, 12:37 AM   #5
melvinong
Member
 
Registered: May 2007
Posts: 47

Rep: Reputation: 15
hi!guru...nice to meet u...

How to check whether the group "machines" is exist in the domain?

If no exist,how to create the group "machines"?

Is that any effect to those existing PC which previously created under group "machines" after create the group "machines"?
 
Old 05-04-2007, 01:43 AM   #6
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 677Reputation: 677Reputation: 677Reputation: 677Reputation: 677Reputation: 677
Quote:
Originally Posted by melvinong
How to check whether the group "machines" is exist in the domain?
The machines group is a linux group. Check if it exists in /etc/group. Also scan through the samba3-Howto manual for examples of the net command. It is used for various things like listing Admin groups.
Quote:
If no exist,how to create the group "machines"?
You can use the "groupadd" command, or your distro's users & groups gui config program. It may be created by samba, for example, you might be using samba swat to configure smb.conf. You could run the wizard to create a stand-alone pdc. It might create the group for you. Look at the "add machine" entry of smb.conf for which group it is.
Quote:
Is that any effect to those existing PC which previously created under group "machines" after create the group "machines"?
If this group doesn't exist, then there are no members. If there are members, it must already exist.

Note that there are other backends that you might use as well. For example, for "security = ad", the "add machine script =" value will use an ldap script instead.
 
Old 05-04-2007, 02:32 AM   #7
melvinong
Member
 
Registered: May 2007
Posts: 47

Rep: Reputation: 15
manually add group "machines"

Can i manually add in the group "machines" in /etc/group?
Any side effect, because "groupadd" command not working....

Last edited by melvinong; 05-04-2007 at 02:35 AM.
 
Old 05-04-2007, 05:27 AM   #8
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 677Reputation: 677Reputation: 677Reputation: 677Reputation: 677Reputation: 677
You need to be root to run the command. If you use sudo, precede the command with the directory, as in sudo /sbin/groupadd or sudo /usr/groupadd, whichever the case may be. You can also use the try "locate groupadd" or use your distro's gui "groups & Users" config program. Your distro may call the script something else as well. You will need to read your distro's documentation if "groupadd" isn't available.

Be sure you follow the instructions in the Samba3-Howto or the Samba3-byExample book. There are several steps to configuring a Samba Standalone PDC. Using swat may make the process easier as well.

(I thought you had Mandriva in your profile earlier, otherwise this next statement won't make sense)
Also, make sure that you have the wizdrake package installed. It may have a wizard for configuring a samba server.

Last edited by jschiwal; 05-04-2007 at 06:46 PM.
 
Old 05-08-2007, 07:16 PM   #9
melvinong
Member
 
Registered: May 2007
Posts: 47

Rep: Reputation: 15
Network Connection Failed

I have install linux redhat 9.0 to the new PC, but after finish install, i tyr to ping to other PC, no reply at all, WHY?
anyone can help me solve this problem?
 
Old 05-08-2007, 07:24 PM   #10
melvinong
Member
 
Registered: May 2007
Posts: 47

Rep: Reputation: 15
I have install linux redhat 9.0 to the new PC, but after finish install, i tyr to ping to other PC, no reply at all, WHY?
anyone can help me solve this problem?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
SIlicon Image 3112 PCI SATA controller; connecting harddrives makes boot fail infinity42 Linux - Hardware 3 12-31-2005 05:39 AM
fail to add speedstep-ich module elvislu Linux - Laptop and Netbook 3 04-03-2005 04:15 AM
Using Linux as a domain controller for a W2K3 domain. Passive Linux - Networking 3 01-28-2005 06:01 PM
Fail to add user accout manully acbenny Linux - General 10 08-06-2004 06:25 PM
Do you need a Domain controller in a NIS domain? synthol6 AIX 3 07-01-2004 12:20 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 06:50 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration