LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 07-12-2005, 01:02 AM   #1
santosh0805
LQ Newbie
 
Registered: Jul 2005
Location: Dubai, U.A.E.
Posts: 1

Rep: Reputation: 0
Question useradd:'invalid user name' error when creating a machine account on RedHat Linux ES4


I tried the following command on RedHat Linux Enterprise Server 4 to add a machine account so that I can access the Samba domain on the server from the XP PC.
useradd -d /dev/null -g 100 -m xp_machine_name$

The above command works on RedHAt Linux ES3, but on ES4 it is giving the foll error......
useraddd: invalid user name 'xp_machine_name$'

Finally I had to used the machine account created on RedHAt Linux Enterprise Server 3 by copying the /etc/passwd, group, shadow, gshadow & the /etc/samba/smbpasswd onto the ES4 server & joining the XP PC to the Samba Domain running on ES4.
 
Old 07-12-2005, 08:39 AM   #2
homey
Senior Member
 
Registered: Oct 2003
Posts: 3,057

Rep: Reputation: 56
I haven't done this for a while but here's my notes from the ibm site....

# /usr/sbin/useradd -g machines -d /dev/null -c "machine id" -s /bin/false machine_name$

# passwd -l machine_name$
Changing password for user machine_name$
Locking password for user machine_name$

The first command creates the user machine_name (don't forget the dollar-sign; it's required and identifies the entry as a trust account)), as a member of the group machines (-g), with no home directory (-d /dev/null), a descriptive entry (-c; for example, "Tom's Notebook"), and no shell access (-s /bin/false). The second command creates a "secret" for the machine to authenticate against.

With the UNIX account created, we can now add the machine to /etc/samba/smbpasswd as shown below:

# smbpasswd -a -m machine_name
Added user machine_name$
 
  


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
creating user account similar to root neerajchaudhari Linux - Newbie 4 08-26-2005 06:35 AM
RedHat Linux user account setup pschaefertx Linux - General 1 03-22-2005 06:29 AM
creating user account on all nodes of a cluster Michele Spinolo Linux - Networking 2 01-28-2005 08:11 AM
Am having problems creating a machine account from XP WS to Samba 3 Domain Controller robertomason Linux - Wireless Networking 3 03-13-2004 04:37 PM
creating user account Robin01 Linux - Newbie 2 01-25-2004 01:17 PM


All times are GMT -5. The time now is 03:34 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration