LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 04-22-2005, 09:26 PM   #1
hitotito
LQ Newbie
 
Registered: Jan 2005
Location: California
Posts: 5

Rep: Reputation: 0
SAMBA PDC add user script error


Hi,

I am pretty new to linux networking.... say about a few weeks.
I've set up DNS and fileserver using SMB, and now trying to configure PDC also using SMB. (Using FC3 with SELinux activated)

Everything went well until the end, where I want to add windows XP Pro Box to my newly configured domain... (say testdomain).

It gave me an error saying:
The user name could not be found.

After looking into the problem, I found out that following command is causing the error in :

add user script = useradd -d /dev/null -g 100 -s /bin/false -M testmachine

This should add :
testmachine$:x:502:100::/dev/null:/bin/false

instead it leaves the "$" out, look like
testmachine:x:502:100::/dev/null:/bin/false

Because of this error, I cannot add machine unless I edit passwd file.

what is the right command to add Machine ID into passwd file?

Thanks in advance

Tosh
 
Old 04-22-2005, 10:45 PM   #2
ahwkong
Member
 
Registered: Aug 2004
Location: Australia
Distribution: Fedora
Posts: 282

Rep: Reputation: 30
I think you have to add the $ to the machine yourself.

-M in useradd means: "The user home directory will not be created, even if the system wide settings from /etc/login.defs is to create home dirs."

this command is to create user in the linux system. Not to be confused with smbpasswd
 
  


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
Help: Samba as PDC Issue - logging on with new user leisure Linux - Software 1 08-01-2005 12:06 PM
What add user script you use for Samba 3.0.3-5? subaruwrx Linux - Networking 3 07-19-2004 12:19 PM
Restricting which workstations a user may use with samba PDC peterab85 Linux - Networking 1 09-22-2003 12:33 PM
Samba 2.2.7a fails to call add user script on Red Hat 9 DrFooMod2 Linux - Networking 4 07-17-2003 10:33 PM
Samba: how to create a logon script file when i add a system user. heero82 Linux - Software 2 06-19-2003 09:29 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 03:45 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
Open Source Consulting | Domain Registration