Posted on 11-07-2012 09:07 AM
CrashPlan pulling Casper account for user when deployed though remote. Any help would be appreciated
userinfo has the following command as dictated in the document provided at
http://www.jamfsoftware.com/libraries/pdf/white_papers/Administering-CrashPlan-PROe-with-the-Casper-Suite.pdf
P_USER_HOME="$HOME"
user='last -1 | awk '{print $1}'`
userGroup=id -gn "$user"
CP_USER_NAME="$user"
Posted on 11-07-2012 10:33 AM
noone bump...
Posted on 11-07-2012 12:21 PM
nevermind got it.
Posted on 02-04-2013 08:20 AM
Curious to know what you did to solve this issue. Seem to be struggling with the same thing here.
Posted on 02-04-2013 09:44 AM
I think the "right" solution might vary from organization to organization. Our user info script queries an internal database to find out the "primary" user of a machine. Your org might store that in LDAP or AD. Or you might be able to get away with looking at the contents of /Users and using the folder name that isn't "Shared" and isn't a management account name. Or you might sort the output of `ac -p` and assume the user with the highest number of hours is the primary user (doesn't really help with newly deployed machines, though). Or you might need to use some combination of techniques.
Posted on 02-04-2013 10:14 AM
Thanks for the feedback Greg.
My issue was actually resolved to one discussed a few days ago here:
https://jamfnation.jamfsoftware.com/discussion.html?id=6393
Copying the whole CrashPlan folder and removing everything but .Custom allowed the instructions here to work:
http://www.jamfsoftware.com/libraries/pdf/white_papers/Administering-CrashPlan-PROe-with-the-Casper-...
My only nit picky thing is that by default when opening crashplan for the first time they are prompted as a "new user" when they are an "existing user" in CrashPlan.
Posted on 07-31-2014 10:24 PM
Try this instead:
P_USER_HOME="$HOME"
user=`last -1 | awk '{print $1}'`
userGroup=`id -gn "$user"`
CP_USER_NAME="$user"
The backtick instead of single quote in line 2 thing really messed me up for a while.