From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: James Hammett Newsgroups: gmane.os.tru64.managers Subject: Way to set a passwd from the command line Date: Mon, 14 Jul 2003 15:11:12 -0500 Sender: tru64-unix-managers-owner@ornl.gov Message-ID: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed X-Trace: main.gmane.org 1058213308 30147 80.91.224.249 (14 Jul 2003 20:08:28 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 14 Jul 2003 20:08:28 +0000 (UTC) Original-X-From: tru64-unix-managers-owner-gotm-tru64-unix-managers=m.gmane.org@sws1.ctd.ornl.gov Mon Jul 14 22:08:26 2003 Return-path: Original-Received: from sws1.ornl.gov ([160.91.1.101]) by main.gmane.org with smtp (Exim 3.35 #1 (Debian)) id 19c9cA-0007ny-00 for ; Mon, 14 Jul 2003 22:08:02 +0200 Original-Received: (qmail 19651 invoked by uid 5); 14 Jul 2003 20:08:47 -0000 Original-Followup-To: poster Precedence: bulk Original-Received: (qmail 19640 invoked by uid 49493); 14 Jul 2003 20:08:46 -0000 Original-Received: from james@che.utexas.edu by sws1 by uid 49491 with qmail-scanner-1.16 (clamscan: 20030605. spamassassin: 2.55. Clear:SA:0(-0.2/5.0):. Processed in 0.37337 secs); 14 Jul 2003 20:08:46 -0000 Original-Received: from unknown (HELO emroute2.cind.ornl.gov) (160.91.86.17) by 0 with SMTP; 14 Jul 2003 20:08:46 -0000 Original-Received: from emroute2.cind.ornl.gov (LOCALHOST [127.0.0.1]) by emroute2.cind.ornl.gov (PMDF V6.2 #30669) with ESMTP id <0HI10013P6MLZJ@emroute2.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Mon, 14 Jul 2003 16:08:45 -0400 (EDT) Original-Received: from sherman.che.utexas.edu (che.utexas.edu [128.83.162.80]) by emroute2.cind.ornl.gov (PMDF V6.2 #30669) with ESMTP id <0HI10013Q6MJYP@emroute2.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Mon, 14 Jul 2003 16:08:44 -0400 (EDT) Original-Received: from [128.83.162.148] (foggy.che.utexas.edu [128.83.162.148]) by sherman.che.utexas.edu (8.10.1/8.10.1) with ESMTP id h6EK8hG01173 for ; Mon, 14 Jul 2003 15:08:43 -0500 (CDT) Original-To: tru64-unix-managers@ornl.gov X-My-Dog: Sugar (Boxer/Chow Mix) Xref: main.gmane.org gmane.os.tru64.managers:4841 X-Report-Spam: http://spam.gmane.org/gmane.os.tru64.managers:4841 I'm trying to setup an bunch of new users at the same time. Using awk, I defined all of the users and created their home directories, etc. However, the adduser command doesn't allow you to set the passwd. The digital passwd command doesnt allow you to do: passwd If this was the case, I'd just use awk and pipe it all into that. Anyone have any ideas about how to do this. I don't want to have to type out the password and THEN REPEAT IT for every single user. thanks, James -- -------------------------------------------------------------------------- James Hammett Users Services / Server and Lab Administration (SLAM) Information Technology Services ( (ITS) CPE 4.442 Chemical Engineering Unix Support 471-9701 ---------------------------------------------------------------------------- An injustice anywhere is a threat to justice everywhere - MLK jr. ----------------------------------------------------------------------------