*BSD News Article 73392


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!news.mira.net.au!news.vbc.net!samba.rahul.net!rahul.net!a2i!bug.rahul.net!rahul.net!a2i!ns2.mainstreet.net!news.PBI.net!news.mathworks.com!newsfeed.internetmci.com!News.LiveNet.Net!Clifford.LiveNet.Net!jsloan
From: Jim Sloan <jsloan@LiveNet.Net>
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: help on NIS client
Date: Thu, 11 Jul 1996 00:01:56 -0400
Organization: LiveNet, Inc.
Lines: 36
Message-ID: <Pine.BSD/.3.91.960711000001.6764C-100000@Clifford.LiveNet.Net>
References: <4qumb6$pk6@overload.lbl.gov> <4qvo0e$9me@uhura.phoenix.net> <4s0pa6$ngs@overload.lbl.gov>
NNTP-Posting-Host: clifford.livenet.net
Mime-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
In-Reply-To: <4s0pa6$ngs@overload.lbl.gov> 

On 10 Jul 1996 jin@gracie.lbl.gov wrote:
[ portion deleted ]
> 
> Now, I'd like to get help on add such user +:::::::: to the passwd database
> from a script, not using interactive vipw.
> 
> I know vipw can use ed, and ed can use in-line input in sh.
> However, EDITOR=ed can be set only in csh, not in sh;  and csh doesn't have
> in-line input (? right), so, +:::::::: cannot be autotically add into passwd
> database (not just the file).
> 
> Does any one know that any way or program can do such jobs?
> 
> Thanks,
> 
> 
> --
> /-------------- Jin Guojun ------------ v ---- Internet: g_jin@lbl.gov ----\
> |	Imaging & Distributed Computing | Usenet: ucbvax!g_jin@lbl.gov	   |
> |	Lawrence Berkeley Laboratory	| Bitnet:	--		   |
> |	50B-2239, Berkeley, CA 94720	-  jin%george.lbl.gov@Csa3.LBL.Gov |
> 
> 

echo "+::::::::" >> /etc/master.passwd; pwd_mkdb
------------------------------------------------------------------------
 Jim Sloan                        jsloan@livenet.net
 Vice President/Engineer 
 LiveNet, Inc.                         
 413 Davis St. Suite 106          Full Service Internet Provider
 Virginia Beach VA 23462          Dialup and dedicated connections
 Ph: 804-499-9328x103             Virtual Web, Email, and FTP hosting
 http://www.livenet.net           info@livenet.net webmaster@livenet.net
------------------------------------------------------------------------