Disabling Safari 5.1.x’s & 6.x’s Pop-Up Blocker From Terminal

Standard

Way back in 2010 I posted a little note on disabling Safari’s Pop-Up Blocker From Terminal..

Well it looks like with Safari 5.1.x & 6.x things have changed, the below should now perform the same:

defaults write com.apple.Safari  com.apple.Safari.ContentPageGroupIdentifier.WebKit2JavaScriptCanOpenWindowsAutomatically -bool true

Via MCX:

Display Name: Safari 5.1+ Disable Pop-Up Blocker
Application Domain: com.apple.Safari
Key Name: com.apple.Safari.ContentPageGroupIdentifier.WebKit2JavaScriptCanOpenWindowsAutomatically
Key Type: boolean
Key Value: true

How To: Use fstab within a Casper Imaging workflow

Standard

For my future deployments, i’ve decided to partition my managed Macs HD’s with 33% for the OS (which i’ve kept as being called Macintosh HD) & the remaining 67% as User data (which i’ve labelled Users HD).

To do this i’ve been using fstab to mount the “Users HD” partition to /Users. Below is how i achieve this, hope it helps.

Continue reading

Authenticating 10.7 Macs To A RADIUS Server With Certificate Enabled PEAP Authentication

Standard

Subject’s a mouthful eh? Basically, I needed for my 10.7 Macs to authenticate to our RADIUS wireless network using PEAP authentication & the Mac’s Certificate from our domain.

Below are the steps taken.

Continue reading

Submit User Information From AD Into The JSS At Login

Standard
UPDATE: Since 8.61+ User information can be submitted following the method outlined here.

For couple of years now i’ve ran various flavours of the below script via a login policy on my Mac clients.

The purpose of this script is to first check if the user is a network user, & if so then perform a lookup of their account against AD grabbing information that can then be submitted to the JSS in the relevant fields as per the above.

See below for the script:

Continue reading

Unlocking Preference Panes For Non-Admin Users On 10.6 & 10.7

Standard
UPDATE: A tool called authbuddy has just come to my attention that will managed this better & for 10.7+.

Way back in November 2010 I posted a script that would unlock each secure system preference pane for non-admins, (this can be found here).

With Lion came a more granular way to achieve the same, but rather then have a script for 10.6 & another for 10.7 i’ve amalgamated them with an OS check in the script.

Continue reading

Error: “This account does not have privileges to use Casper Admin/Remote”

Standard
Image

I started getting the above error when launching Casper Admin & Remote on my main mac.

This error would appear when launching Casper Admin & Remote, before i could enter any credentials. Which got me thinking: keychain!!

Yep sure enough, I had a saved password in my keychain.. once i deleted that all was well.

Error: Could not write to /Library/JSS/Tomcat/webapps/ROOT/WEB-INF/web.xml

Standard

When trying to setup a clustered DMZ server as a computer only JSS I received the below error:

Could not write to /Library/JSS/Tomcat/webapps/ROOT/WEB-INF/web.xml

To resolve I needed to enable change management in the JSS. But as the JSS did not have write permission to /var/logs/ I couldn’t enable change management.

So I changed the log location & enabled change management. I could then enable the JSS instance  as computer management only version.

Error: The package does not appear to be on the server (400). / line 1: syntax error

Standard

Recently we setup a 10.7 Mac Server in our DMZ & clustered this with our main JSS to enable external clients connectivity to our JSS & for them to be able to use Self Service & ASUS when off the network.

However we’ve had some issues getting the distribution point to work over HTTPS, however HTTP & AFP worked fine.

Below are some details on the steps taken to investigate this issue, and resolve.

Continue reading

Error: Syntax error on line 241 of /etc/swupd/swupd.conf: Port must be specified

Standard

This morning one of my Apple Software Servers (ASUS) was not supplying updates. When checking the swupd_err.log in Server Admin I saw the following repeated hundreds of times:

Syntax error on line 241 of /etc/swupd/swupd.conf: Port must be specified

Below can be found more details and the solution. Continue reading

Error: OSX Web Service “Error Reading Settings”

Standard

After upgrading my servers to 10.7.3, I received the error message “Error Reading Settings” when clicking the “Web Service” in “Server.app”.

With the release of 10.7.3 Server you can now perform port redirects via the “Server.app.” With that in mind & the fact that I had manually added a redirect as mentioned here, i decided to revert my web service back to the default settings & then apply the redirect using “Server.app”

To reset the web service back to default settings i ran the below with Server.app not running:

sudo serveradmin command web:command=restoreFactorySettings

I then relaunched “Server.app” clicked web service & we were back in business!