[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

RE: [K12OSN] deleting a 1000 users



Jim,

Looks like everything is in order with passwd and shadow file.  Earlier
this year I had problem in the passwd file with an account that would
cause Red Hat's User and Group to exit out with an error, so I thought
my batch deleting problems might be still lingering from the problems I
had earlier with the passwd and shadow files. I was removing the
students off the server in preparation to move to ldap.  The less users
to move the better.

Thanks
-Glenn

-----Original Message-----
From: jam mcquil com [mailto:jam mcquil com] 
Sent: Wednesday, June 09, 2004 12:53 PM
To: Support list for opensource software in schools.
Subject: RE: [K12OSN] deleting a 1000 users

On Wed, 9 Jun 2004, Glenn Arnold wrote:

> Jim and Chris thanks.  Jim's method keeps saying that the user did not
> exist just like my webmin batch process.  Chris method worked.  As I
> write this his method is deleting accounts and home, but I get the
> following message "userdel: error deleting shadow password entry"
which
> I think I might have some passwd and shadow file corruption which
might
> be why webmin and Jim's method could not delete the user accounts.

glenn,

It's real easy to take a peek at the /etc/passwd and /etc/shadow file to

see what's there and what's missing.

Jim.



> 
> Thanks for the fast response!
> -Glenn
> 
> -----Original Message-----
> From: Chris Hobbs [mailto:chobbs silvervalley k12 ca us] 
> Sent: Wednesday, June 09, 2004 12:21 PM
> To: Support list for opensource software in schools.
> Subject: Re: [K12OSN] deleting a 1000 users
> 
> jam mcquil com wrote:
> 
> >But, another way to do it would be:
> >
> >   cat delstu6.txt | while read x
> >   do
> >     userdel -r $x
> >   done
> >  
> >
> 
> Alternatively (TMTOWTDI):
> 
> cat delstu6.txt | xargs -n 1 userdel -r
> 
> 


_______________________________________________
K12OSN mailing list
K12OSN redhat com
https://www.redhat.com/mailman/listinfo/k12osn
For more info see <http://www.k12os.org>



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]