How can I delete old & inactive user account datawith a script?

there is a mac 10.4 server that has many old user folders. too many to delete one by one. there is no grouping of users. all of them are in the /user folder
I want a script that will check the folders in the /user direcotry against the OD users. If a user for that folder does not exist then it will rm or move to trash or an /inactive users or /olduser folder.
thanks for any help
it is the same question in this thread but was not answered really well at all
http://discussions.apple.com/thread.jspa?threadID=1081185&tstart=0

Well, the problem with rm the folder is that it still leaves data hanging around (profile, home drive, etc.) I was really hoping for something that would sweep up everything from people that are no longer in the OpenDirectory database.
Anyway, I'll close this question by saying thanks for trying.
Later...
Richard

Similar Messages

  • I use migrate assistant to move files from my old pc to the new Mac , but it creates the user account. How can i delete the unwanted user account.

    i use migrate assistant to move files from my old pc to the new Mac , but it creates the user account. How can i delete the unwanted user account.

    Welcome to Apple Support Communities
    That's the classic behaviour after using Migration Assistant and that's normal.
    To transfer the data from the new user account to your old user account, you can follow some steps. Here is all the information you need to do this > https://discussions.apple.com/docs/DOC-5472

  • I want to update iCloud account with new apple id but don't know password for old apple id.  Plus can no longer receive email at old apple id.  How can I delete the current iCloud account on my iPhone if the previously stated conditions exist?

    I want to update iCloud account with new apple id but don't know password for old apple id.  Plus can no longer receive email at old apple id.  How can I delete the current iCloud account on my iPhone if the previously stated conditions exist?

    If the old ID is yours, and if it is an earlier version of your current ID, go to https://appleid.apple.com, click Manage my Apple ID and sign in with your current iCloud ID.  Click edit next to the primary email account, change it back to your old email address and save the change.  Then edit the name of the account to change it back to your old email address.  You can now use your current password to turn off Find My iDevice, even though it prompts you for the password for your old account ID. Then save any photo stream photos that you wish to keep to your camera roll.  When finished go to Settings>iCloud, tap Delete Account and choose Delete from My iDevice when prompted (your iCloud data will still be in iCloud).  Next, go back to https://appleid.apple.com and change your primary email address and iCloud ID name back to the way it was.  Now you can go to Settings>iCloud and sign in with your current iCloud ID and password.

  • How can I delete old movies that I already purchased, which are saved in my account? Actually I don't want them to be viewed by others who use same account, so is there any solution to delete them? Please advise. Thank you

    How can I delete old movies that I already purchased, which are saved in my account? Actually I don’t want them to be viewed by others who use same account, so is there any solution to delete them? Please advise.

    Delete Purchases = No.
    But there is this...Hiding and unhiding purchases
    iTunes Store  >   http://support.apple.com/kb/HT4919

  • How can I delete my iCloud email accounts?

    How can I delete my iCloud email accounts? I no longer own any apple devices and find that the email is at best unreliable. Also, I am having to deal with a good portion of daily tasteless spam content at the original @me.com address. As I no longer have any apple devices I wouldn't mind having the whole iCloud account deleted. I have already erased all of my information from the icloud.com site.

    Then that is all you can do.
    You currently can not delete an iCloud account.

  • How can i set up multiple user accounts for my new ipad mini?

    How can i set up multiple user accounts for my new ipad mini?

    The iPad mini is basically a one user device. There are no Accounts. You can set up restrictions so that only you can do certain things.

  • How can I delete my Firefox Sync account?

    How can I delete my Firefox Sync account?

    Did you really delete that Sync account?
    Does it work if you ask for a new password?
    * https://services.mozilla.com/ Firefox Sync » Home
    * https://account.services.mozilla.com/

  • How can i delete forever my iCloud account?

    How can i delete completely my icloud account?

    sliontos wrote:
    My Account exists after that
    You can't delete the account, you can just stop using it (sign out on a Mac, delete account on an IOS device). The account itself will still exist.

  • How can I delete devices from icloud account?

    How can I delete devices from icloud account?

    Welcome to the Apple community.
    Simply turn off "find my phone" and delete the iCloud account from your device.

  • How can I delete old data in citadel

    How can I delete old data from Citadel so that HDD is not full when data is continously being logged in the database ?

    Hi there,
    I could see different possible ways to limit the database size on a LabVIEW DSC system.
    a) You could limit the lifespan of your logged data to a certain time by adjusting the option 'Days to keep historical data' in the Tag Configuration Editor>Configure>Historical... tab.
    b) You could use the Citadel Database VIs. Archive Database.vi would allow you to archive a database or a part (certain traces/tags, or certain time interval) to another location. With the archive option 'destructive', it would delete the source of the data from the original database.
    Delete Traces.vi would delete a traces from a database.
    c) The same/similar functionality you can have throught the Measurement and Automation Explorer and its Historical Data Viewer plug-in
    b) and c) are NEW features of LabVIEW DSC 6.1!
    Hope this helps
    Roland
    PS: There is a nice link about archiving Citadel on ni.com :
    http://zone.ni.com/devzone/conceptd.nsf/webmain/2F24997EAD7C53A686256B6E00686D64?opendocument&node=DZ52101_US

  • How can i delete old email addresses that are no longer in service?

    How can I delete old email addresses that are no longer in  use from my apple computer

    Yes, just open mail and click on the window menu and select previous recipients, when the window opens start edit your email addresses.

  • HT203180 How can I delete old rental movies that are still on my iPad, but no longer viewable?

    How can I delete old rental movies that are still on my iPad, but are no longer viewable because the rental has expired?

    I have a similar problem.  The default answer on the web is to open Videos on your iPad, then touch and hold the movie you wish to delete, then tap the little cross that appears. Alternatively, you can connect to iTunes, select your device in the list, scroll down to the Rentals summary and delete from there.
    I have a problem with both of these solutions!  The Video App on my iPad does not contain any video icons, just an option to browse my shared library, so I can't delete it from there... ANd in iTunes, the movie in the Rntals tab on my device summary is greyed out, so I can't do anything from there either.  But the movie is taking up 2.5 Gb....
    Can someone please offer an alternative to resetting the device entirely?!

  • When i try to delete my messages it turns my imessage off so i have to restart my phone to get it to work again, by then all my messages have come back which i deleted... how can i delete old messages i dont need anymore withou imessage going off?

    when i try to delete my messages it turns my imessage off so i have to restart my phone to get it to work again, by then all my messages have come back which i deleted... how can i delete old messages i dont need anymore withou imessage going off?

    To get rid of "pop-up ads and other crap on my computer when I am on the internet", click on Safari in the Menu bar, and select Preferences. Next select Extensions. Delete all of them. Restart Safari.
    The first step in addressing the black screen is an SMC reset.
    Shut down the computer.
    Plug in the MagSafe power adapter to a power source, connecting it to the Mac if its not already connected.
    On the built-in keyboard, press the (left side) Shift-Control-Option keys and the power button at the same time.
    Release all the keys and the power button at the same time.
    Press the power button to turn on the computer. 
    Note: The LED on the MagSafe power adapter may change states or temporarily turn off when you reset the SMC.
    Excerpt from
    http://support.apple.com/kb/ht39

  • HT4847 How can I delete old backups on my iCloud so that I can just backup my latest things?

    How can i delete old backups on my iCloud so that I can jsut backup what is on my device now, and not from a year ago

    Welcome to the Apple Support Communities
    All backups made on iCloud overwrite the old one, so you have only the latest backup with your most recent files. If you have a backup of an old device, open Settings > iCloud > Storage and Backup > Manage Storage, select the backup and delete that backup

  • How can we delete old BPM instances

    Hi,
    I have created BPM later I have found some mistake and deletd existed BPM and I created new BPM. But still it is pointing old BPM istance at run time. But i have chacked in SXI_CHACHE transaction there the BPM is updated properly. How can i deleted old instances of BPM?
    Thanks in advance.
    Regards,
    Sudhakar.

    Yes,
    Robin is right. U forgot to implement an exception step, for example for an tranformation and the process can't stop itself. The result is very funny: U can do what u want, nothing will change ur fault until u become black or kill the workitem in TA SWWL.
    Robin has much more knowledge about BPM than about Java Proxies and is very helpful bcoz he is a bit lonly now
    Regards,
    Udo

Maybe you are looking for

  • WM-PP interface - One TO / Mutiple TO

    Dear PP Gurus, I am working on WW-PP interface, I would like to check if there is any configuration settings that i need to do so that the system will create seprate transfer requirements / orders for each BOM component when i release the production

  • Mac software for Cisco Aironet 340

    I have a Cisco Aironet 340 PCMCIA card that I want to use with an old PowerBook. But I can't find the download for the Mac software for this card. This page tells me to go to "http://www.cisco.com/pcgi-bin/tablebuild.pl/aironet-utils-mac." but it jus

  • Which cache the Formula Engine will use in this case?

    Say that a MDX query contains: ❶a calculated measure defined in the targeted cube, ❷and another WITH MEMBER. Which cache the Formula Engine will use in this case: ❶Query, ❷Global, or ❸both (query & global)? and why? .... illustrate as possible please

  • Audigy LS - EQ Level Adjustments Don't Alter So

    Hello all, I have the Audigy LS card. I have enabled the EQ through the Creative software. I am able to move the levels up and down for each frequency, but the changes have no effect on the sound. For example, I can move all levels the entire way up

  • Convert .psd file to a .html file

    hey fireworks gurus I have a photoshop layered file that I want to quickly convert this to a .html file through fireworks so that you can view in any browser....can anyone please help?...