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
Solved

Delete User Accounts Remotely

Posted on 2007-04-05
1
415 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

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying 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

A common question or need, when setting-up a new Mac for someone would be to make all of the applications, installed, available from the dock. Many people often do not realize an application is installed unless it is in the dock. Creating a custo…
We could spend the next millennium discussing the differences of the Mac and Windows platforms. The next century will continue to have fanatics on both side of the equation and neither side will win the war. However, that’s not why we are here. W…
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 …
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

809 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