<?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 Login Script in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/login-script/m-p/3867949#M25318</link>
    <description>&lt;BR /&gt;Hi &lt;BR /&gt;&lt;BR /&gt; I am too new to scripting ..&lt;BR /&gt;&lt;BR /&gt; I would like to enable a script to achive &lt;BR /&gt;&lt;BR /&gt; whenever a user login it should ask new or old user.&lt;BR /&gt;&lt;BR /&gt; If its new user he should be able to create a account on the system&lt;BR /&gt;&lt;BR /&gt; If he is old user he should login to system&lt;BR /&gt;&lt;BR /&gt; Need of a script to run on FC5 (Fedora Core 5)&lt;BR /&gt;&lt;BR /&gt;Dinesh</description>
    <pubDate>Fri, 22 Sep 2006 07:21:16 GMT</pubDate>
    <dc:creator>Dineshkumar</dc:creator>
    <dc:date>2006-09-22T07:21:16Z</dc:date>
    <item>
      <title>Login Script</title>
      <link>https://community.hpe.com/t5/operating-system-linux/login-script/m-p/3867949#M25318</link>
      <description>&lt;BR /&gt;Hi &lt;BR /&gt;&lt;BR /&gt; I am too new to scripting ..&lt;BR /&gt;&lt;BR /&gt; I would like to enable a script to achive &lt;BR /&gt;&lt;BR /&gt; whenever a user login it should ask new or old user.&lt;BR /&gt;&lt;BR /&gt; If its new user he should be able to create a account on the system&lt;BR /&gt;&lt;BR /&gt; If he is old user he should login to system&lt;BR /&gt;&lt;BR /&gt; Need of a script to run on FC5 (Fedora Core 5)&lt;BR /&gt;&lt;BR /&gt;Dinesh</description>
      <pubDate>Fri, 22 Sep 2006 07:21:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/login-script/m-p/3867949#M25318</guid>
      <dc:creator>Dineshkumar</dc:creator>
      <dc:date>2006-09-22T07:21:16Z</dc:date>
    </item>
    <item>
      <title>Re: Login Script</title>
      <link>https://community.hpe.com/t5/operating-system-linux/login-script/m-p/3867950#M25319</link>
      <description>There's a problem with your desired setup.&lt;BR /&gt;A user must be root or the useradd/passwd commands must be setuid in order for regular user to create new accounts. You simply don't do it unless you wish to have a mess in your system.&lt;BR /&gt;Anyway if you want all your users to get the same message upon login - edit /etc/bashrc&lt;BR /&gt;append the following lines:&lt;BR /&gt;&lt;BR /&gt;echo "Are you an old user?"&lt;BR /&gt;read answer&lt;BR /&gt;if [ $answer = "yes" ]; then &lt;BR /&gt;    here comes your command&lt;BR /&gt;else&lt;BR /&gt;    command to do if the user is old&lt;BR /&gt;fi</description>
      <pubDate>Fri, 22 Sep 2006 07:44:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/login-script/m-p/3867950#M25319</guid>
      <dc:creator>Alexander Chuzhoy</dc:creator>
      <dc:date>2006-09-22T07:44:06Z</dc:date>
    </item>
    <item>
      <title>Re: Login Script</title>
      <link>https://community.hpe.com/t5/operating-system-linux/login-script/m-p/3867951#M25320</link>
      <description>to achieve non-interactive user addition (that can be used in script):&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;useradd user_name;  echo "user_password" |passwd --stdin;&lt;BR /&gt;&lt;BR /&gt;echo "Are you an old user"&lt;BR /&gt;read answer&lt;BR /&gt;if [ $answer = "yes" ]; then&lt;BR /&gt; useradd user_name;  echo "user_password" |passwd --stdin;&lt;BR /&gt;fi</description>
      <pubDate>Fri, 22 Sep 2006 08:51:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/login-script/m-p/3867951#M25320</guid>
      <dc:creator>Alexander Chuzhoy</dc:creator>
      <dc:date>2006-09-22T08:51:15Z</dc:date>
    </item>
  </channel>
</rss>

