MacOS Server Remove roaming profile

Discussion in 'Mac OS X Server, Xserve, and Networking' started by DarkMx-6, Jul 16, 2019.

  1. DarkMx-6 macrumors newbie

    Joined:
    Jul 16, 2019
    #1
    Hello,

    We run a macOS server Yosemite at a high school and I need to clean all the student profiles before the year starts in the fall.

    What is the best way to go about doing this? I have removed the profile then gained ownership of their files so I can delete them but that is a really long process for all the students I have to do.

    Disclaimer I know very little about macOS server or open directory

    Thank you!
     
  2. hobowankenobi, Jul 19, 2019
    Last edited: Jul 19, 2019

    hobowankenobi macrumors 6502a

    Joined:
    Aug 27, 2015
    Location:
    on the land line mr. smith.
    #2
    To be clear, are you refering to on profiles on workstations, or profiles on the server?

    This may be of some help, depending on your needs.

    It's been too long...don't remember the details.
     
  3. DarkMx-6 thread starter macrumors newbie

    Joined:
    Jul 16, 2019
  4. hobowankenobi, Jul 22, 2019
    Last edited: Jul 23, 2019

    hobowankenobi macrumors 6502a

    Joined:
    Aug 27, 2015
    Location:
    on the land line mr. smith.
    #4
    Thinking about this a bit more, I would suggest caution.

    All the options I am aware of are command line, not for Unix beginnners...both on the client and server. Here's a thread for Mac admins discussing a script to delete all users automatically.

    Many larger institutions simply re-image or re-deploy lab/workstation/client computers once a year, to refresh everything, including user accounts AND home directories.

    On clients, keep in mind there are two seperate functions:

    1. Removing user accounts/profiles
    2. Removing user home directories

    Via command line, which is faster than through the GUI:

    1. Command to delete a user accounts/profile: sudo dscl . -delete /Users/<whatever>
    2. Command to delete a home directory: sudo rm -rf /Users/<whatever>

    Keep in mind both are instantly destructive! Test on things you can blow up.

    -----

    As for server....I don't recall, does the Server app allow for bulk user deletion? Sounds like no...
     
  5. DarkMx-6 thread starter macrumors newbie

    Joined:
    Jul 16, 2019
    #5
    Thank you very much for your help!
     

Share This Page

4 July 16, 2019