Hey everyone.
I'm trying to get this login script to work to change my printer settings from color (default) to black and white...
Here's what I've done...
I've gone into Group Policy>Computer Configuration>Policies>Centrify Settings>Common Unix Settings>Copy Files
I have it set to copy this file to /usr/local/bin
This is the script "7545_BW_Login.sh":
#!/bin/bash
lpadmin -h 127.0.0.1:631 -p Xerox7545 -o XRColorCorrection=gray
This command does what I want it to do when executed locally.
Next I've tried several different aproaches to get this script to fire on login with no success. I'm pretty new to mac management but here's what I've tried...
Group Policy>Computer Configuration>Policies>Centrify Settings>Mac OS X Settings>Scripts (Login/Logout)
I've tried \\mycomp.local\sysvol\mycomp.local\scripts\execute_7545_BW_Login.sh
Didn't work.
Created an execute script that says this"execute_7545_BW_Login.sh:
#!/bin/bash
bash /usr/local/bin/7545_BW_Login.sh
Tried putting this script into the computer config login script area.
No dice.
I've tried putting one / both of these scripts into the user login script with run as root privilidges.
(User Configuration>Centrify Settings>Mac OS X Settings>Scripts (login/logout
None of these options have worked. Am I putting the script in the wrong location? There's no evidence that the script is attempting to fire. I can execute either of these script text on my local mac and get them to work, but it's not firing from login via group policy.
I've done gpupdate /force on the AD controller and adgpupdate on my machine and nothing.
Any advice?