I've been using this script to add the ability to add and remove printers for standard users. It's basically just adding the user group "everyone" to the lpadmins group. I've found that it stopped working when 10.10 came out. The offending code in the script is an if statement comparison that wants to make sure it only runs on 10.5.7 or greater. It's trying to compare 10.10 to 10.5. This comparison fails for a couple of reasons. My first assumption was that it was because it thinks 10.10 is really 10.1, so that appears to be less than 10.5. But the actual issue, which i'm surprised wasn't an issue earlier, is that bash doesn't handle floating point comparison well. So, my solution was just to remove the comparison all together since I have no 10.5 systems in my JSS anymore.
Question
FYI unlockAddPrinters.sh broken on 10.10
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.
