Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


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

Rep: Reputation: 0
SAMBA PDC add user script error


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 :

instead it leaves the "$" out, look like

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

Old 04-22-2005, 09:45 PM   #2
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


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

All times are GMT -5. The time now is 04:31 AM.

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