Hey all,
I'm having an issue with what I think is the cause. dscl change command not running correctly in a script triggered at login.
Here is the error return in JSS...
Script exit code: 54
Script result: <main> attribute status: eDSAttributeNotFound
<dscl_cmd> DS Error: -14134 (eDSAttributeNotFound)
Unmounting file server...
And this is my script...
#!/bin/sh
ShortName=`whoami`
FullName=`dscl . -read /Users/$ShortName RealName | tail -1`
FullName2=`echo $FullName | awk '{print}'`
dscl . -change /Users/$ShortName RealName "$FullName2" "$ShortName"
What I'm trying to achieve is to modify the Full Name in "users & groups" to shortname/login name.