* purging retired users
@ 1998-04-17 4:00 Jeffrey Sick
1998-04-19 4:00 ` Tim Mooney
0 siblings, 1 reply; 7+ messages in thread
From: Jeffrey Sick @ 1998-04-17 4:00 UTC (permalink / raw)
Is there a way to purge retired users without turning off the C2
(DEC UNIX 4.0D)?
I run a script (sorta) that adds hundreds of users at a time, then
later a similar one that deletes them all. The problem is that
sometimes there will be some added a second time around that existed
and were retired before and it won't add them a second time. If I turn
off C2 before the mass retiring they go a way completely, I was hoping
that I can do the same thing without turning odd C2 first.
Thanks,
Jeff
wolfanger@wolfcrews.com
http://www.wolfcrews.com
Jeffrey James Wolfanger Sick
VROC #207
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Buffalo State College
Systems Programmer
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
http://www.wolfcrews.com
Home of The Wonderland Tarot
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: purging retired users
1998-04-17 4:00 purging retired users Jeffrey Sick
@ 1998-04-19 4:00 ` Tim Mooney
1998-04-20 4:00 ` Jeffrey Sick
0 siblings, 1 reply; 7+ messages in thread
From: Tim Mooney @ 1998-04-19 4:00 UTC (permalink / raw)
In article <353777e0.80879138@news3.buffnet.net>,
Jeffrey Sick <wolfanger@wolfcrews.com> wrote:
> Is there a way to purge retired users without turning off the C2
> (DEC UNIX 4.0D)?
>
> I run a script (sorta) that adds hundreds of users at a time, then
> later a similar one that deletes them all. The problem is that
> sometimes there will be some added a second time around that existed
> and were retired before and it won't add them a second time. If I turn
> off C2 before the mass retiring they go a way completely, I was hoping
> that I can do the same thing without turning odd C2 first.
Convert individual users to base security using `convuser', remove them
from the passwd file (use `userdel'), and then use `convuser -d' to clean
up the C2 database.
Tim
--
Tim Mooney mooney@dogbert.cc.ndsu.NoDak.edu
Information Technology Services (701) 231-1076 (Voice)
Room 242-J1, IACC Building (701) 231-8541 (Fax)
North Dakota State University, Fargo, ND 58105-5164
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: purging retired users
1998-04-19 4:00 ` Tim Mooney
@ 1998-04-20 4:00 ` Jeffrey Sick
1998-04-24 4:00 ` Alberto Brosich
0 siblings, 1 reply; 7+ messages in thread
From: Jeffrey Sick @ 1998-04-20 4:00 UTC (permalink / raw)
Thanks, it makes sense and I gave it a try. But although this method
did change the users from C2 to Base (using the -b param) it did not
keep them from simply being retired as opposed to deleted. My guess
would be due to the fact that although the USER is no longer C2 the
rest of the system that keeps track of the user is.
I'll keep on a trying.
Thanks,
Jeff
On 19 Apr 1998 03:32:31 -0500, mooney@dogbert.cc.ndsu.NoDak.edu (Tim
Mooney) wrote:
>>In article <353777e0.80879138@news3.buffnet.net>,
>>Jeffrey Sick <wolfanger@wolfcrews.com> wrote:
>>> Is there a way to purge retired users without turning off the C2
>>> (DEC UNIX 4.0D)?
>>>
>>> I run a script (sorta) that adds hundreds of users at a time, then
>>> later a similar one that deletes them all. The problem is that
>>> sometimes there will be some added a second time around that existed
>>> and were retired before and it won't add them a second time. If I turn
>>> off C2 before the mass retiring they go a way completely, I was hoping
>>> that I can do the same thing without turning odd C2 first.
>>
>>Convert individual users to base security using `convuser', remove them
>>from the passwd file (use `userdel'), and then use `convuser -d' to clean
>>up the C2 database.
>>
>>Tim
Jeffrey James Wolfanger Sick
VROC #207
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Buffalo State College
Systems Programmer
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
http://www.wolfcrews.com
Home of The Wonderland Tarot
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: purging retired users
1998-04-20 4:00 ` Jeffrey Sick
@ 1998-04-24 4:00 ` Alberto Brosich
1998-04-24 4:00 ` Serassio Guido
1998-04-24 4:00 ` Jeffrey Sick
0 siblings, 2 replies; 7+ messages in thread
From: Alberto Brosich @ 1998-04-24 4:00 UTC (permalink / raw)
Read section 4.4.1.4 of release notes.
After you retired user with dxaccounts you must
delete the row from /etc/passwd and then
run edauth -r <username>.
Alberto Brosich
System Manager
CISCC - University of Trieste
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: purging retired users
1998-04-24 4:00 ` Alberto Brosich
1998-04-24 4:00 ` Serassio Guido
@ 1998-04-24 4:00 ` Jeffrey Sick
1 sibling, 0 replies; 7+ messages in thread
From: Jeffrey Sick @ 1998-04-24 4:00 UTC (permalink / raw)
Thanks, I'll incorporate that into what I want to do, you see I'm trying to
automate it all since I'll be doing up to a thousand at a time and I
certainly don't want to edit the passwd file manually, also using
dxaccounts is out of the question. I've written a script that adds the
users and their passwords in one shot I think I know what I'll do for
deleting them now. I have all the steps in place except the changing of the
passwd file but I noticed some messages about search and deleting of lines
and I see that after retirement the word "Retired" appears on their line in
passwd so I'll weave that into it.
Thanks,
Jeff
On Fri, 24 Apr 1998 12:39:08 +0200, Alberto Brosich
<brosich@univ.trieste.it> wrote:
>>Read section 4.4.1.4 of release notes.
>>After you retired user with dxaccounts you must
>>delete the row from /etc/passwd and then
>>run edauth -r <username>.
>>
>>Alberto Brosich
>>System Manager
>>CISCC - University of Trieste
>>
Jeffrey James Wolfanger Sick
VROC #207
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Buffalo State College
Systems Programmer
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
http://www.wolfcrews.com
Home of The Wonderland Tarot
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: purging retired users
1998-04-24 4:00 ` Alberto Brosich
@ 1998-04-24 4:00 ` Serassio Guido
1998-04-27 4:00 ` Jeffrey Sick
1998-04-24 4:00 ` Jeffrey Sick
1 sibling, 1 reply; 7+ messages in thread
From: Serassio Guido @ 1998-04-24 4:00 UTC (permalink / raw)
Alberto Brosich wrote:
>
> Read section 4.4.1.4 of release notes.
> After you retired user with dxaccounts you must
> delete the row from /etc/passwd and then
> run edauth -r <username>.
>
> Alberto Brosich
> System Manager
> CISCC - University of Trieste
Hi,
I'm using DU 4.0D, and I have already tried this, but the system seems
to continue to keeps track of the old (and deleted !!!) users:
I retired a user and after deleted with edauth -r, After I created a new
user, and the uid assigned to the new user is the same of the old.
When I do a ps -ef command, the command show me the old username as
Process owner for the new user processes !!!
Guido Serassio
--
Serassio Guido, System & Network Manager
CeSIT - Politecnico di Torino
Corso Duca degli Abruzzi, 24 10129 - TORINO -
ITALY
Tel. : +39.11.5646628 Fax. :
+39.11.5646625
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: purging retired users
1998-04-24 4:00 ` Serassio Guido
@ 1998-04-27 4:00 ` Jeffrey Sick
0 siblings, 0 replies; 7+ messages in thread
From: Jeffrey Sick @ 1998-04-27 4:00 UTC (permalink / raw)
On Fri, 24 Apr 1998 22:08:36 +0200, Serassio Guido <serassio@polito.it>
wrote:
>>Hi,
>>
>>I'm using DU 4.0D, and I have already tried this, but the system seems
>>to continue to keeps track of the old (and deleted !!!) users:
>>I retired a user and after deleted with edauth -r, After I created a new
>>user, and the uid assigned to the new user is the same of the old.
Try doing it in this order:
/usr/tcb/bin/convuser -b username
userdel -r username
edit passwd file to delete user
/usr/tcb/bin/edauth -r username
/usr/tcb/bin/convuser -d
It's a pain but I'm writing a script today to do it all at once.
Jeff
Jeffrey James Wolfanger Sick
VROC #207
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Buffalo State College
Systems Programmer
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
http://www.wolfcrews.com
Home of The Wonderland Tarot
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~1998-04-27 4:00 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-04-17 4:00 purging retired users Jeffrey Sick
1998-04-19 4:00 ` Tim Mooney
1998-04-20 4:00 ` Jeffrey Sick
1998-04-24 4:00 ` Alberto Brosich
1998-04-24 4:00 ` Serassio Guido
1998-04-27 4:00 ` Jeffrey Sick
1998-04-24 4:00 ` Jeffrey Sick
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox