LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   SAMBA PDC add user script error (https://www.linuxquestions.org/questions/linux-networking-3/samba-pdc-add-user-script-error-316224/)

hitotito 04-22-2005 08:26 PM

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

ahwkong 04-22-2005 09:45 PM

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


All times are GMT -5. The time now is 11:47 PM.