tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
* script to lock passwd file
@ 2000-11-21 10:19 J.A. Gutierrez
  0 siblings, 0 replies; only message in thread
From: J.A. Gutierrez @ 2000-11-21 10:19 UTC (permalink / raw)
  To: tru64-unix-managers

> 
> 
>     /usr/sbin/vipw <<xxxFUNNYxxx

	ok, but according to vipw(8), you can't use this on systems
	that use extended security attributes.

	If you have encrypted password data on /tcb/files/auth.db
	I guess your only option is use usermod/useradd/userdel,
	right? (or other graphical tools, I mean, you can't manually
	(nor programatically) manipulate this auth.db)

> 
> 3.  awk -F: '{ if (substr($1,1,3) == "pwc") printf
> "%s:%s:%s:%s:%s:/auth/users/%s:%s\n", $1, $2, $3, $4, $5, $1, %7; else print
> $0 }' < old-password > new-password     # this one came from Allen
> Johannesen

	BTW, is there a way to manually lock passwd file so users won't
	mess it by running passwd command?

	maybe "touch /etc/ptmp" would be enough?



-- 
finger spd@gtc1.cps.unizar.es for PGP       /              So be easy and free
.mailcap tip of the day:                   /      when you're drinking with me
application/ms-tnef; cat '%s' > /dev/null / I'm a man you don't meet every day
text/x-vcard; cat '%s' > /dev/null       /            (the pogues)

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2000-11-21 10:19 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-11-21 10:19 script to lock passwd file J.A. Gutierrez

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox