<?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: add user using ksh in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/add-user-using-ksh/m-p/4041481#M29415</link>
    <description>Why did the "expert" make you remove the useradd command?&lt;BR /&gt;Did he give a compelling reason like a discovered and unpatched exploit?&lt;BR /&gt;Or is this part of an excercise in a Linux sysadmin class?&lt;BR /&gt;Of course, you can add, remove and modify user accounts manually at the shell if you know which files all to edit and care for file locking.&lt;BR /&gt;But, if it isn't for an excercise, it is better to use commands like useradd, which can well be used in scripts, if you have to manipulate a 1000 accounts.&lt;BR /&gt;Think about how important files /etc/passwd and /etc/shadow are.&lt;BR /&gt;You don't want to lock out your users because of format errors or unsynched states.&lt;BR /&gt;Though I haven't got an RHES5 box I assume the package the useradd command belongs to hasn't changed.&lt;BR /&gt;On my RHES4 it is in the shadow-utils package, which you can reinstall:&lt;BR /&gt;&lt;BR /&gt;# uname -srv;cat /etc/redhat-release; rpm -qf /usr/sbin/useradd&lt;BR /&gt;Linux 2.6.9-5.ELsmp #1 SMP Wed Jan 5 19:30:39 EST 2005&lt;BR /&gt;Red Hat Enterprise Linux WS release 4 (Nahant)&lt;BR /&gt;shadow-utils-4.0.3-41.1&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Wed, 25 Jul 2007 08:41:32 GMT</pubDate>
    <dc:creator>Ralph Grothe</dc:creator>
    <dc:date>2007-07-25T08:41:32Z</dc:date>
    <item>
      <title>add user using ksh</title>
      <link>https://community.hpe.com/t5/operating-system-linux/add-user-using-ksh/m-p/4041476#M29410</link>
      <description>Hi All,&lt;BR /&gt;&lt;BR /&gt;I m using RHEL5. I got a interesting query from an expert. Query was as follow...&lt;BR /&gt;&lt;BR /&gt;# rm -rf `Type useradd` &lt;BR /&gt;and also newusers command&lt;BR /&gt;&lt;BR /&gt;Now add user using ksh shell ?&lt;BR /&gt;&lt;BR /&gt;How can we do it? Pls suggest. Is there any command or i have to put that user entry in every file like /etc/passwd, /etc/group, and other related files&lt;BR /&gt;&lt;BR /&gt;Thanks in advance&lt;BR /&gt;MKS&lt;BR /&gt;</description>
      <pubDate>Sun, 22 Jul 2007 06:57:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/add-user-using-ksh/m-p/4041476#M29410</guid>
      <dc:creator>monu_1</dc:creator>
      <dc:date>2007-07-22T06:57:32Z</dc:date>
    </item>
    <item>
      <title>Re: add user using ksh</title>
      <link>https://community.hpe.com/t5/operating-system-linux/add-user-using-ksh/m-p/4041477#M29411</link>
      <description>Given that 'useradd' is just a nice way to:&lt;BR /&gt;&lt;BR /&gt;- modify /etc/passwd&lt;BR /&gt;- modify /etc/shadow&lt;BR /&gt;- modify /etc/group (maybe)&lt;BR /&gt;- make a new home directory&lt;BR /&gt;- cp /etc/skel/* to new home directory&lt;BR /&gt;&lt;BR /&gt;Sure, it's easy to do with a plain shell, but 'useradd' exists to make it easier.&lt;BR /&gt;&lt;BR /&gt;If you've removed it, re-install it from it's package.  There's *NO GOOD REASON* to remove it.</description>
      <pubDate>Sun, 22 Jul 2007 07:28:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/add-user-using-ksh/m-p/4041477#M29411</guid>
      <dc:creator>Stuart Browne</dc:creator>
      <dc:date>2007-07-22T07:28:29Z</dc:date>
    </item>
    <item>
      <title>Re: add user using ksh</title>
      <link>https://community.hpe.com/t5/operating-system-linux/add-user-using-ksh/m-p/4041478#M29412</link>
      <description>you can reinstall " shadow-utils" package.</description>
      <pubDate>Mon, 23 Jul 2007 02:16:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/add-user-using-ksh/m-p/4041478#M29412</guid>
      <dc:creator>Vitaly Karasik_1</dc:creator>
      <dc:date>2007-07-23T02:16:58Z</dc:date>
    </item>
    <item>
      <title>Re: add user using ksh</title>
      <link>https://community.hpe.com/t5/operating-system-linux/add-user-using-ksh/m-p/4041479#M29413</link>
      <description>MKS,&lt;BR /&gt;&lt;BR /&gt;Did u execute the above mentioned command?</description>
      <pubDate>Mon, 23 Jul 2007 22:00:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/add-user-using-ksh/m-p/4041479#M29413</guid>
      <dc:creator>skt_skt</dc:creator>
      <dc:date>2007-07-23T22:00:24Z</dc:date>
    </item>
    <item>
      <title>Re: add user using ksh</title>
      <link>https://community.hpe.com/t5/operating-system-linux/add-user-using-ksh/m-p/4041480#M29414</link>
      <description>Hello Santosh!&lt;BR /&gt;&lt;BR /&gt;Yes i have go through above suggetion. But i was looking for any command or other stuf&lt;BR /&gt;&lt;BR /&gt;Thanks &lt;BR /&gt;MKS</description>
      <pubDate>Tue, 24 Jul 2007 04:58:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/add-user-using-ksh/m-p/4041480#M29414</guid>
      <dc:creator>monu_1</dc:creator>
      <dc:date>2007-07-24T04:58:49Z</dc:date>
    </item>
    <item>
      <title>Re: add user using ksh</title>
      <link>https://community.hpe.com/t5/operating-system-linux/add-user-using-ksh/m-p/4041481#M29415</link>
      <description>Why did the "expert" make you remove the useradd command?&lt;BR /&gt;Did he give a compelling reason like a discovered and unpatched exploit?&lt;BR /&gt;Or is this part of an excercise in a Linux sysadmin class?&lt;BR /&gt;Of course, you can add, remove and modify user accounts manually at the shell if you know which files all to edit and care for file locking.&lt;BR /&gt;But, if it isn't for an excercise, it is better to use commands like useradd, which can well be used in scripts, if you have to manipulate a 1000 accounts.&lt;BR /&gt;Think about how important files /etc/passwd and /etc/shadow are.&lt;BR /&gt;You don't want to lock out your users because of format errors or unsynched states.&lt;BR /&gt;Though I haven't got an RHES5 box I assume the package the useradd command belongs to hasn't changed.&lt;BR /&gt;On my RHES4 it is in the shadow-utils package, which you can reinstall:&lt;BR /&gt;&lt;BR /&gt;# uname -srv;cat /etc/redhat-release; rpm -qf /usr/sbin/useradd&lt;BR /&gt;Linux 2.6.9-5.ELsmp #1 SMP Wed Jan 5 19:30:39 EST 2005&lt;BR /&gt;Red Hat Enterprise Linux WS release 4 (Nahant)&lt;BR /&gt;shadow-utils-4.0.3-41.1&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 25 Jul 2007 08:41:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/add-user-using-ksh/m-p/4041481#M29415</guid>
      <dc:creator>Ralph Grothe</dc:creator>
      <dc:date>2007-07-25T08:41:32Z</dc:date>
    </item>
  </channel>
</rss>

