*BSD News Article 73315


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!munnari.OZ.AU!news.ecn.uoknor.edu!news.eng.convex.com!newshost.convex.com!bcm.tmc.edu!cs.utexas.edu!uwm.edu!vixen.cso.uiuc.edu!newsfeed.internetmci.com!news.emf.net!overload.lbl.gov!gracie.lbl.gov!jin
From: jin@gracie.lbl.gov (Jin Guojun[ITG])
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: help on NIS client
Date: 10 Jul 1996 17:29:42 GMT
Organization: Lawrence Berkeley Laboratory
Lines: 28
Message-ID: <4s0pa6$ngs@overload.lbl.gov>
References: <4qumb6$pk6@overload.lbl.gov> <4qvo0e$9me@uhura.phoenix.net>
NNTP-Posting-Host: gracie.lbl.gov

In article <4qvo0e$9me@uhura.phoenix.net>,
Paul Flores <pflores@alpha1.phoenix.net> wrote:
>Might be too simple, but I will ask anyway...
>
>Did you remember the +:::::::: in the passwd file?

It sounds like simple, but it is not quite simple. By appending +::::::::
at the end of the passwd file, it does not work. Only vipw makes it work.
That was the problem.

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 |