Solved

Delete User Accounts Remotely

Posted on 2007-04-05
1
413 Views
Last Modified: 2012-05-05
I am trying to delete user accounts remotelly using Apple Remote Desktop 3.0 on computers runnign 10.4.9. Dose any one how to delete a user using the UNIX command (terminal)? So far I can only delete thier profile forlders using tis command:
sudo rm -rf /Users/USERNAME
0
Comment
Question by:DARKSAGES
1 Comment
 
LVL 9

Accepted Solution

by:
heteronymous earned 500 total points
ID: 18861510
This is of course quite dangerous, double & triple-check your typing...
If you really want to hose a machine, delete the intial/default (admin) account ... so, don't !  ;)


all on ONE line:

nicl -raw /var/db/netinfo/local.nidb delete /users/<username>

where "<username>" is the user (account) shortname.

Follow that with your steps to remove the user's actual home folder.
0

Featured Post

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article describes in detail how to set up the iPad in the Enterprise using iPCU aka iPhone Configuration Utility.  This could also be used for the iPhone although I have not detailed out any differences. Preparation as an iPad Administrator:…
Do you come here a lot? Are you lazy like me and don't want to go through the "trouble" of having to click your Dock's Safari icon and then having to click your Experts Exchange Favorites bookmark to get here? Well then this article is for you.
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …

816 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now