Skip to main content
Answer

Making a pseudo guest account

  • November 24, 2014
  • 4 replies
  • 30 views

Andrew_Baker
Forum|alt.badge.img+2

Because of some conflict with configuration policy we are not able to enable the guest account on student computers. I am trying to work around this by making a pseudo guest account wherein a template is created and after every logout the system deletes the folders are replaces it with the template.

Does anyone have suggestions on how to accomplish this? I hear logout scripts are depreciated but it looks to be the only option. These computers are running Yosemite.

My scripting knowledge is limited so detail explanations are helpful.

Best answer by rich.trouton

You may want to take a look at Mike Bombich's refresh-default-homedir.sh script:

AFP548.com has it hosted here:

http://static.afp548.com/mactips/scripts.html

4 replies

Forum|alt.badge.img+31
  • Hall of Fame
  • Answer
  • November 24, 2014

You may want to take a look at Mike Bombich's refresh-default-homedir.sh script:

AFP548.com has it hosted here:

http://static.afp548.com/mactips/scripts.html


davidacland
Forum|alt.badge.img+18
  • Valued Contributor
  • November 24, 2014

I would still use a logout script for now, it could be a one line policy that runs a command to check who the user is and delete the home folder if the name matches the one you've set.

I agree, logout scripts are still the best / most consistent way to do this. If they did disappear you would be looking at the recurring check-in trigger instead, but that wouldn't be ideal.


Andrew_Baker
Forum|alt.badge.img+2
  • Author
  • New Contributor
  • November 25, 2014

Thank you for your replies I will try these out.


Forum|alt.badge.img+8
  • Valued Contributor
  • August 30, 2018

I downloaded and attempted to run the script linked-to above but got the error that the os will not run tcsh scripts. Is there a more recent version of either this script, or a similar script that will run on 10.13? Thanks!