?
Solved

Delete User Accounts Remotely

Posted on 2007-04-05
1
Medium Priority
?
424 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 9

Accepted Solution

by:
heteronymous earned 2000 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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

This article shows how to use a free utility called 'Parkdale' to easily test the performance and benchmark any Hard Drive(s) installed in your computer. We also look at RAM Disks and their speed comparisons.
This article outlines the struggles that Macs encounter in Windows-dominated workplace environments – and what Mac users can do to improve their network connectivity and remain productive.
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 …
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…

777 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