*BSD News Article 54950


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!news.rmit.EDU.AU!goanna.cs.rmit.EDU.AU!munnari.OZ.AU!spool.mu.edu!daily-planet.execpc.com!news.moneng.mei.com!news.ecn.bgu.edu!vixen.cso.uiuc.edu!uwm.edu!chi-news.cic.net!newsfeed.internetmci.com!news.sprintlink.net!archon.elysian.net!jasonb.sckans.edu!user
From: jasonb@jinx.sckans.edu (jasonb)
Newsgroups: comp.unix.bsd.bsdi.misc
Subject: Question: 'passwd' and PPP accounts...
Date: Thu, 09 Nov 1995 09:17:22 -0600
Organization: Elysian Fields Internet
Lines: 15
Message-ID: <jasonb-0911950917220001@jasonb.sckans.edu>
NNTP-Posting-Host: 198.248.176.21
X-Newsreader: Yet Another NewsWatcher 2.0b30

I am playing with NetBSD 2.0.1 and am having trouble with the change
passwd command.  The system is set up with each
user having two separate accounts -- one for shell access and the other
for PPP access.  The PPP account is the shell userid with a 'P' as a
prefix (i.e. user "jasonb" logs in as "Pjasonb" for PPP access).  This
works slickly and drops the user directly into PPP after login, but one
problem...

My Problem:  The change password command only alters the user's shell
account, which makes sense because to execute the 'passwd' command the
user would have to be logged in and running from the shell, but the PPP
account retains the old password.  Does anyone have a script example which 
upon executing 'passwd' for the a user's shell id would also modify the
ppp 'P'userid?
       jasonb