Solved

Delete User Accounts Remotely

Posted on 2007-04-05
1
411 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
Comment Utility
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

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

The /etc/authorization file in Mac OS X 10.x can be used to control access to the various panes of the System Preferences amongst other things. It’s used by some of us Mac Sys Admin’s to give Standard Users access to System Prefs panes that only adm…
There is a security feature on iOS devices that is nearly impenetrable when it has been activated.  This article will provide some possible solutions as well as necessary steps to take to ensure you do not end up with a locked device.
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

772 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

10 Experts available now in Live!

Get 1:1 Help Now