Skip to main content
Question

Copy user permissions to new profile

  • September 18, 2017
  • 3 replies
  • 9 views

Forum|alt.badge.img+2

Hi all,

I have a user who has a local profile that we want to be using a domain joined profile. The problem is his job role includes a lot of software/files and the new profile won't have permissions to all these things.

Is there any way to copy permissions from his existing local profile to his domain joined profile?

3 replies

Forum|alt.badge.img+7
  • Contributor
  • 79 replies
  • September 18, 2017

This script should do the trick.
This script assumes that the computer is set to create a mobile account on login.

#!/bin/sh
OLDUSER=""
NEWUSER=""

mv /Users/$OLDUSER /Users/$NEWUSER
chown -R $NEWUSER /Users/$NEWUSER

#Clean up the old mobile account
dscl localhost delete /Local/Default/Users/$OLDUSER

Forum|alt.badge.img+1
  • New Contributor
  • 4 replies
  • September 18, 2017

HI a.stonham

Just a quick 1, If I was migrating data from a domain user to another computer. What would be your advisable steps for migrating the data also I have seen the permission error pop up before.

Thanks


Forum|alt.badge.img+2
  • Author
  • New Contributor
  • 1 reply
  • September 26, 2017

Hi a.stonham,

what about locations which are not part of the user profile?