<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: creating a user account from the command line in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/creating-a-user-account-from-the-command-line/m-p/4912972#M45861</link>
    <description>Thank you all</description>
    <pubDate>Mon, 18 Jul 2005 09:49:24 GMT</pubDate>
    <dc:creator>linuxtolinux</dc:creator>
    <dc:date>2005-07-18T09:49:24Z</dc:date>
    <item>
      <title>creating a user account from the command line</title>
      <link>https://community.hpe.com/t5/operating-system-linux/creating-a-user-account-from-the-command-line/m-p/4912968#M45857</link>
      <description>hello,&lt;BR /&gt;i am using red hat 8.0 and i am trying to create a new user account from the command line using (useradd -p password username ).I have a problem in the password field : when i checked my /etc/shadow list, the password for the user username doesn't appear encrypted and also when i tried to login using this account i couldn't.Noting that i didn't encounter any problems if i use the gui or using ( useradd username and then passwd username from the command line).Is there somthing wrong in useradd -p password username or somthing else.....(the man useradd shows this format)&lt;BR /&gt;&lt;BR /&gt;regards:&lt;BR /&gt;naji&lt;BR /&gt;</description>
      <pubDate>Sun, 17 Jul 2005 05:19:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/creating-a-user-account-from-the-command-line/m-p/4912968#M45857</guid>
      <dc:creator>linuxtolinux</dc:creator>
      <dc:date>2005-07-17T05:19:55Z</dc:date>
    </item>
    <item>
      <title>Re: creating a user account from the command line</title>
      <link>https://community.hpe.com/t5/operating-system-linux/creating-a-user-account-from-the-command-line/m-p/4912969#M45858</link>
      <description>The '-p' argument expects an encrypted password, not an unencrypted bareword.&lt;BR /&gt;&lt;BR /&gt;So you either have to encrypt the password first, or use 2 commands to add the user, the 'useradd', followed by a 'passwd' command, i.e.:&lt;BR /&gt;&lt;BR /&gt;useradd username&lt;BR /&gt;echo unencrypted-password | passwd --stdin username&lt;BR /&gt;&lt;BR /&gt;Hope this helps.</description>
      <pubDate>Sun, 17 Jul 2005 06:18:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/creating-a-user-account-from-the-command-line/m-p/4912969#M45858</guid>
      <dc:creator>Stuart Browne</dc:creator>
      <dc:date>2005-07-17T06:18:35Z</dc:date>
    </item>
    <item>
      <title>Re: creating a user account from the command line</title>
      <link>https://community.hpe.com/t5/operating-system-linux/creating-a-user-account-from-the-command-line/m-p/4912970#M45859</link>
      <description>-p option of useradd expects the encrypted password and not a plain text password. so unless you have your password in an encrypted form, -p option is not useful. login program expects the password to be in an encrypted form to validate if not, it simply rejects the login.&lt;BR /&gt;&lt;BR /&gt;use passwd command to give password for a user after adding him. &lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Gopi</description>
      <pubDate>Sun, 17 Jul 2005 06:20:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/creating-a-user-account-from-the-command-line/m-p/4912970#M45859</guid>
      <dc:creator>Gopi Sekar</dc:creator>
      <dc:date>2005-07-17T06:20:02Z</dc:date>
    </item>
    <item>
      <title>Re: creating a user account from the command line</title>
      <link>https://community.hpe.com/t5/operating-system-linux/creating-a-user-account-from-the-command-line/m-p/4912971#M45860</link>
      <description>When you are using "-p password" to useradd it expects the  encrypted  password,  as  returned by crypt(3). Here is one way to generate it:&lt;BR /&gt;&lt;BR /&gt;# grub-md5-crypt&lt;BR /&gt;Password:                           &amp;lt;== type the account password here&lt;BR /&gt;Retype password:                    &amp;lt;== and type it again here&lt;BR /&gt;$1$JXyMo/$ZhK4zu4rKW9JrH83oNHJ22    &amp;lt;== this is the encrypted password in MD5 format&lt;BR /&gt;&lt;BR /&gt;Because of the special characters that it will generate you have to single quote it when using it in useradd. For example"&lt;BR /&gt;&lt;BR /&gt;# useradd -p '$1$JXyMo/$ZhK4zu4rKW9JrH83oNHJ22' account&lt;BR /&gt;&lt;BR /&gt;HTH,&lt;BR /&gt;Ross&lt;BR /&gt;</description>
      <pubDate>Mon, 18 Jul 2005 06:24:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/creating-a-user-account-from-the-command-line/m-p/4912971#M45860</guid>
      <dc:creator>Ross Minkov</dc:creator>
      <dc:date>2005-07-18T06:24:25Z</dc:date>
    </item>
    <item>
      <title>Re: creating a user account from the command line</title>
      <link>https://community.hpe.com/t5/operating-system-linux/creating-a-user-account-from-the-command-line/m-p/4912972#M45861</link>
      <description>Thank you all</description>
      <pubDate>Mon, 18 Jul 2005 09:49:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/creating-a-user-account-from-the-command-line/m-p/4912972#M45861</guid>
      <dc:creator>linuxtolinux</dc:creator>
      <dc:date>2005-07-18T09:49:24Z</dc:date>
    </item>
  </channel>
</rss>

