Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
From: madmax@fly.srk.fer.hr (Kresimir Kukulj)
Subject: Digital UNIX - deleting retired accounts, how ?
Date: 2000/04/20	[thread overview]
Message-ID: <slrn8ft5qc.hbg.madmax@fly.srk.fer.hr> (raw)

On DU 4.0D (with C2 security stuff) if I add a user:

>useradd test
>/usr/tcb/bin/edauth -g test
test:u_name=test:u_id#207:chkent:
>userdel test
>/usr/tcb/bin/edauth -g test
test:u_name=test:u_id#207:u_retired:chkent:
>grep test /etc/passwd
test:Retired*:207:15::/home/test:/usr/local/bin/bash

And:

>useradd test
useradd: User already exists

How do I remove that user "for real" ? I have read FAQ and relevent
documentation on www.unix.digital.com and found that sysman, dxaccount & co
use userdel to do the removal.

I have found a workaround as follows:

>/usr/tcb/bin/edauth -r test
>/usr/tcb/bin/edauth -g test
Couldn't find entry named "test"

And do something like:
egrep -v '^test:' /etc/passwd > /etc/passwd.new; mv this that...
[ I could live with edauth -r, but handling passwd file in this manner,
without locking, is a terrible hack.]

Is there a proper way ? I need a command line utility for a script. I need
to re-add a user (by removing it, then adding it).  I have tackled with this
for a very long time trying to find something in documentation. I have found
nothing. I have a feeling I have missed something, and I will probably feel
very stupid when someone (hopefully) enlightens me, so fire away ;-)

I have administered Linux and Solaris, but Digital UNIX is very unfamiliar
to me. Please help.

Regards.

-- 
Kresimir Kukulj                  madmax@fly.srk.fer.hr
+----------------------------------------------------+
"Vee haf vay of making you use Vindows!" - Adolf Gates



                 reply	other threads:[~2000-04-20  4:00 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
read-only archive

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