<?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: Script to Push Users in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/script-to-push-users/m-p/5089403#M93182</link>
    <description>Here is a suggestion. Modify to your environment. Set for remsh now but you can make the necessary changes for ssh.&lt;BR /&gt;&lt;BR /&gt;This works in 2 parts. 1st part gathers the info and 2nd part executes the adduser command on the remote systems.&lt;BR /&gt;&lt;BR /&gt;No NIS is involved but we did make sure that the UIDs were the same across all other systems.&lt;BR /&gt;&lt;BR /&gt;As always, carefully review and use at your risk.</description>
    <pubDate>Wed, 23 Jan 2008 21:41:41 GMT</pubDate>
    <dc:creator>Rick Garland</dc:creator>
    <dc:date>2008-01-23T21:41:41Z</dc:date>
    <item>
      <title>Script to Push Users</title>
      <link>https://community.hpe.com/t5/operating-system-linux/script-to-push-users/m-p/5089400#M93179</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I'm wondering if someone might have a script that they would like to share that would be handy to push users, home directories, and profiles to other hosts?   We can't run NIS and that is not an option for us.&lt;BR /&gt;&lt;BR /&gt;What I would ideally like to do is have one of our HP-UX servers be the initial place that users get created and then run a script to push the user out once the user is created on this first server.   Method of push may be ssh or maybe rsync?   Any ideas, examples, or suggestions would be very greatly appreciated.&lt;BR /&gt;&lt;BR /&gt;Thanks!!!!&lt;BR /&gt;KPS</description>
      <pubDate>Wed, 23 Jan 2008 19:58:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/script-to-push-users/m-p/5089400#M93179</guid>
      <dc:creator>KPS</dc:creator>
      <dc:date>2008-01-23T19:58:42Z</dc:date>
    </item>
    <item>
      <title>Re: Script to Push Users</title>
      <link>https://community.hpe.com/t5/operating-system-linux/script-to-push-users/m-p/5089401#M93180</link>
      <description>Here's one that someone here wrote once:&lt;BR /&gt;&lt;BR /&gt;Create file with a list of all your hostnames. Then edit whats in &amp;lt; -- &amp;gt; in the line below for each new useradd.&lt;BR /&gt;&lt;BR /&gt;This is for one user at a time.    &lt;BR /&gt;&lt;BR /&gt;for h in `cat hostlist`&lt;BR /&gt;do&lt;BR /&gt;        echo $h":\c"&lt;BR /&gt;        remsh $h -n /usr/sbin/useradd -u &lt;UID&gt; -g &lt;GID&gt; -d /home/$b -s /bin/ksh -c &lt;LASTNAME&gt; -m -k&lt;BR /&gt; /etc/&lt;SKEL&gt; $b&lt;BR /&gt;         echo "Will add user $b to $h "&lt;BR /&gt;         remsh $h -n /usr/bin/passwd -f -n 56 -x 7 $b&lt;BR /&gt;                echo "User $b has password set on $h"&lt;BR /&gt;        done&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;Hope this helps, watch out for typos&lt;BR /&gt;Rgrds,&lt;BR /&gt;Rita&lt;BR /&gt;&lt;/SKEL&gt;&lt;/LASTNAME&gt;&lt;/GID&gt;&lt;/UID&gt;</description>
      <pubDate>Wed, 23 Jan 2008 20:39:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/script-to-push-users/m-p/5089401#M93180</guid>
      <dc:creator>Rita C Workman</dc:creator>
      <dc:date>2008-01-23T20:39:24Z</dc:date>
    </item>
    <item>
      <title>Re: Script to Push Users</title>
      <link>https://community.hpe.com/t5/operating-system-linux/script-to-push-users/m-p/5089402#M93181</link>
      <description>oops, there's a piece out of that old script.&lt;BR /&gt;&lt;BR /&gt;Create a file with the new login id's too.&lt;BR /&gt;Then it should read more like this at the top:&lt;BR /&gt;&lt;BR /&gt;for h in `cat hostlist`&lt;BR /&gt;do&lt;BR /&gt;        for b in `cat /scripts/login_id.lis`&lt;BR /&gt;        do&lt;BR /&gt;        echo $h":\c"&lt;BR /&gt;        echo $b&lt;BR /&gt;    (and so forth....)&lt;BR /&gt;&lt;BR /&gt;....now that $b variable makes sense.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;/rcw</description>
      <pubDate>Wed, 23 Jan 2008 20:43:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/script-to-push-users/m-p/5089402#M93181</guid>
      <dc:creator>Rita C Workman</dc:creator>
      <dc:date>2008-01-23T20:43:59Z</dc:date>
    </item>
    <item>
      <title>Re: Script to Push Users</title>
      <link>https://community.hpe.com/t5/operating-system-linux/script-to-push-users/m-p/5089403#M93182</link>
      <description>Here is a suggestion. Modify to your environment. Set for remsh now but you can make the necessary changes for ssh.&lt;BR /&gt;&lt;BR /&gt;This works in 2 parts. 1st part gathers the info and 2nd part executes the adduser command on the remote systems.&lt;BR /&gt;&lt;BR /&gt;No NIS is involved but we did make sure that the UIDs were the same across all other systems.&lt;BR /&gt;&lt;BR /&gt;As always, carefully review and use at your risk.</description>
      <pubDate>Wed, 23 Jan 2008 21:41:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/script-to-push-users/m-p/5089403#M93182</guid>
      <dc:creator>Rick Garland</dc:creator>
      <dc:date>2008-01-23T21:41:41Z</dc:date>
    </item>
    <item>
      <title>Re: Script to Push Users</title>
      <link>https://community.hpe.com/t5/operating-system-linux/script-to-push-users/m-p/5089404#M93183</link>
      <description>The previous post has the 2nd part of the process. Here is the 1st part that resides on the localhost.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 23 Jan 2008 21:43:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/script-to-push-users/m-p/5089404#M93183</guid>
      <dc:creator>Rick Garland</dc:creator>
      <dc:date>2008-01-23T21:43:02Z</dc:date>
    </item>
    <item>
      <title>Re: Script to Push Users</title>
      <link>https://community.hpe.com/t5/operating-system-linux/script-to-push-users/m-p/5089405#M93184</link>
      <description>Hi Rick,&lt;BR /&gt;&lt;BR /&gt;Thanks for your help, but the first of the 2 attachments didn't seem like it came over in the right format.   Could you send again?&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;KPS</description>
      <pubDate>Thu, 24 Jan 2008 02:12:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/script-to-push-users/m-p/5089405#M93184</guid>
      <dc:creator>KPS</dc:creator>
      <dc:date>2008-01-24T02:12:40Z</dc:date>
    </item>
    <item>
      <title>Re: Script to Push Users</title>
      <link>https://community.hpe.com/t5/operating-system-linux/script-to-push-users/m-p/5089406#M93185</link>
      <description>Rick's attachments are correct, but Notepad does not understand Unix records. Save the file  rather than opening it with Notepad, then open the file using Wordpad or Word. Then copy and paste the results into Notepad or save the file with a .txt extension. Unix text files have just LF at the end of the line which confuses Notepad. Word and Wordpad will treat the LF as a soft return and display the text correctly.</description>
      <pubDate>Thu, 24 Jan 2008 03:49:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/script-to-push-users/m-p/5089406#M93185</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2008-01-24T03:49:23Z</dc:date>
    </item>
    <item>
      <title>Re: Script to Push Users</title>
      <link>https://community.hpe.com/t5/operating-system-linux/script-to-push-users/m-p/5089407#M93186</link>
      <description>Thanks everyone.   Rick I think I like the samples you provided and will use this method and prepare the scripts to use ssh and scp in our environment.&lt;BR /&gt;&lt;BR /&gt;Thanks so much!  &lt;BR /&gt;&lt;BR /&gt;KPS</description>
      <pubDate>Thu, 24 Jan 2008 19:29:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/script-to-push-users/m-p/5089407#M93186</guid>
      <dc:creator>KPS</dc:creator>
      <dc:date>2008-01-24T19:29:19Z</dc:date>
    </item>
  </channel>
</rss>

