Making a pseudo guest account

Andrew_Baker
New Contributor

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.

1 ACCEPTED SOLUTION

rtrouton
Release Candidate Programs Tester

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

View solution in original post

4 REPLIES 4

rtrouton
Release Candidate Programs Tester

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
Honored Contributor II

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
New Contributor

Thank you for your replies I will try these out.

Morningside
Contributor II

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!