<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-2375858330500735826</id><updated>2011-10-20T12:48:12.374+02:00</updated><category term='MailAttribute'/><category term='dscl'/><category term='kUserDiskQuota'/><category term='Mail Quota'/><category term='os x'/><category term='Lion'/><category term='mailquota'/><category term='readpl'/><category term='mac'/><title type='text'>osxadmin</title><subtitle type='html'>I would like other to participate in my cognitions on administrating Mac OS X Server and Unix in a larger environment consisting of multiple servers with several hundred Mac OS X clients.</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://osxadmin.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2375858330500735826/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://osxadmin.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>macadmin</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>59</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-2375858330500735826.post-130721525679719446</id><published>2011-10-20T10:24:00.006+02:00</published><updated>2011-10-20T12:48:12.409+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='mailquota'/><category scheme='http://www.blogger.com/atom/ns#' term='Mail Quota'/><category scheme='http://www.blogger.com/atom/ns#' term='MailAttribute'/><category scheme='http://www.blogger.com/atom/ns#' term='kUserDiskQuota'/><category scheme='http://www.blogger.com/atom/ns#' term='readpl'/><category scheme='http://www.blogger.com/atom/ns#' term='Lion'/><category scheme='http://www.blogger.com/atom/ns#' term='dscl'/><title type='text'>OS X Lion &amp; Mail Quotas</title><content type='html'>Since OS X Lion no longer offer a GUI to change the Mail Quota size of a user, I had to find out a new way.&lt;br /&gt;I know that for individual users it is possible to do this using the Directory Utility.&lt;br /&gt;&lt;br /&gt;But that's not what I want if I have to change dozens of users.&lt;br /&gt;&lt;br /&gt;So I figured out a way to do this using dscl:&lt;br /&gt;&lt;br /&gt;This is how you read the current value of the Mail Quota:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;MailQuota=`dscl /LDAPv3/my.server.com -readpl /Users/$theUser MailAttribute kUserDiskQuota`&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;And this way you may set a new value:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;dscl -u diradmin -P $diradminpass /LDAPv3/my.server.com -createpl /Users/$theUser MailAttribute kUserDiskQuota $newvalueInMB&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Unfortunately this value does not get updated on the mail server immediately.&lt;br /&gt;In order to get the mail server to update the quotas, you have to do this:&lt;br /&gt;Delete or rename /var/db/.mailusersettings.plist &lt;br /&gt;&lt;br /&gt;Then manually recreate the file '/var/db/.mailusersettings.plist':&lt;br /&gt; &lt;br /&gt;&lt;span style="font-style:italic;"&gt;touch /var/db/.mailusersettings.plist&lt;br /&gt;chown _postfix:mail  /var/db/.mailusersettings.plist&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;Restarting the mail service updates the per user mail quota defined in OD.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2375858330500735826-130721525679719446?l=osxadmin.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://osxadmin.blogspot.com/feeds/130721525679719446/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2375858330500735826&amp;postID=130721525679719446' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2375858330500735826/posts/default/130721525679719446'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2375858330500735826/posts/default/130721525679719446'/><link rel='alternate' type='text/html' href='http://osxadmin.blogspot.com/2011/10/dscl-mailattribute.html' title='OS X Lion &amp; Mail Quotas'/><author><name>macadmin</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2375858330500735826.post-5406605153604547442</id><published>2010-01-14T12:04:00.006+01:00</published><updated>2010-01-14T13:20:19.510+01:00</updated><title type='text'>SMS Server Tools on Mac OS X with Swisscom Unlimited USB Modem E180V</title><content type='html'>We set up a server to monitor our servers, services and network devices.&lt;br /&gt;&lt;br /&gt;&lt;h4&gt;Monitoring on Mac OS X&lt;/h4&gt;&lt;br /&gt;What we started off with is&lt;br /&gt;&lt;br /&gt;- a Mac Mini with Mac OS X 10.6 Snow Leopard Client&lt;br /&gt;- Lithium 5 Monitoring Software &lt;a href="http://www.lithium5.com" target=l5&gt;www.lithium5.com&lt;/a&gt;&lt;br /&gt; &lt;br /&gt;What I wanted to do is also monitor our internet connection.&lt;br /&gt;For that case we ping www.google.com.&lt;br /&gt;If that service is unavailable, we expect the internet connection to have failed.&lt;br /&gt;&lt;br /&gt;The problem now is:&lt;br /&gt;If the internet connection is down, then we cannot alert via email or push notification because we have to assume that there is no connection to the internet.&lt;br /&gt;&lt;br /&gt;The idea now is, that in this case, we alert via SMS.&lt;br /&gt;&lt;br /&gt;&lt;h4&gt;The Device&lt;/h4&gt;&lt;br /&gt;So I went to our local phone provider and bought a USB HSPA/UMTS/EDGE/GPRS modem.&lt;br /&gt;Thy type I chose is called '&lt;a href="http://swisscomonlineshop.sso.bluewin.ch/onlineshop/Pages/ProductDetail/ProductDetail.aspx?cat=OS_Mobilkommunikation&amp;subcat=OS_Mobile_Unlimited&amp;drilldown=3&amp;id=CSMC10002789&amp;lang=EN" target=swisscom&gt;Unlimited USB Modem E180V&lt;/a&gt;' which in fact is a &lt;a href="http://www.huaweidevice.com/worldwide/productFeatures.do?pinfoId=1300&amp;directoryId=2462&amp;treeId=462" target=E180&gt;Huawei E180V&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;As we do not plan to use the Modem to surf the web, we decided to get a prepaid card along with it.&lt;br /&gt;This means we can recharge it by using the credit card.&lt;br /&gt;&lt;br /&gt;What's next?&lt;br /&gt;&lt;br /&gt;We installed the modem an downloaded and installed the current software to go along with it from the providers web page.&lt;br /&gt;It works.&lt;br /&gt;But: In order for the modem to work, one has to log in and start the application of the provider, in out case:&lt;br /&gt;/Applications/Unlimited Connection Manager.app&lt;br /&gt;&lt;br /&gt;Now that is not what I wanted.&lt;br /&gt;The problem is that without having started the app, the modem will not appear as a device in /dev&lt;br /&gt;Which means that the device is not operable. Hmm.&lt;br /&gt;But I do not want a user to have to log in and start the app on this machine.&lt;br /&gt;&lt;br /&gt;So here's what did the trick:&lt;br /&gt;I looked at the installer package that came with the modem using &lt;a href="http://www.mothersruin.com/software/SuspiciousPackage/" target=SP&gt;Suspicious Package&lt;/a&gt;.&lt;br /&gt;It does not install anything other than the application.&lt;br /&gt;So it has to be something inside the application bundle that has to be initiated to make the modem available to the system.&lt;br /&gt;After poking around a bit, I found this folder:&lt;br /&gt;/Applications/Unlimited Connection Manager.app/Contents/Drivers&lt;br /&gt;It contains a kext ba the name of 'HuaweiDataCardDriver.kext'.&lt;br /&gt;&lt;br /&gt;So what do I do:&lt;br /&gt;We load the kext:&lt;br /&gt;&lt;code&gt;kextload "/Applications/Unlimited Connection Manager.app/Contents/Drivers/HuaweiDataCardDriver.kext"&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;And what happens:&lt;br /&gt;We now see the device in /dev:&lt;br /&gt;&lt;code&gt;&lt;br /&gt;crw-rw-rw-   1 root  wheel      11,   7 Jan 13 15:17 cu.HUAWEIMobile-Diag&lt;br /&gt;crw-rw-rw-   1 root  wheel      11,   9 Jan 14 12:35 cu.HUAWEIMobile-Modem&lt;br /&gt;crw-rw-rw-   1 root  wheel      11,   5 Jan 13 15:17 cu.HUAWEIMobile-Pcui&lt;br /&gt;crw-rw-rw-   1 root  wheel      11,   6 Jan 13 15:17 tty.HUAWEIMobile-Diag&lt;br /&gt;crw-rw-rw-   1 root  wheel      11,   8 Jan 13 15:17 tty.HUAWEIMobile-Modem&lt;br /&gt;crw-rw-rw-   1 root  wheel      11,   4 Jan 13 15:17 tty.HUAWEIMobile-Pcui&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;So basically we are now ready to send SMS.&lt;br /&gt;Theoretically.&lt;br /&gt;&lt;br /&gt;&lt;h4&gt;Sending SMS&lt;/h4&gt;&lt;br /&gt;When trying to find information on how to send SMS notifications via shell script, found out that there is one big problem.&lt;br /&gt;While sending an SMS the device is blocked so that sending is no longer possible until the first SMS has been sent.&lt;br /&gt;So one would need some kind of queue.&lt;br /&gt;&lt;br /&gt;As it turns out, there's an app for that.&lt;br /&gt;The solution is &lt;a href="http://smstools3.kekekasvi.com/"&gt;SMS Server Tools 3&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;«The SMS Server Tools 3 is a SMS Gateway software which can send and receive short messages through GSM modems and mobile phones.»&lt;br /&gt;&lt;br /&gt;And it is open source too!!!&lt;br /&gt;So I downloaded it and compiled it using the apple developer tools.&lt;br /&gt;&lt;br /&gt;Now, all we have to do is add the correct device to the config file of the smsd.&lt;br /&gt;&lt;br /&gt;&lt;code&gt;device = /dev/cu.HUAWEIMobile-Modem&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;And we need to start the smsd.&lt;br /&gt;&lt;br /&gt;&lt;H4&gt;The Script&lt;/H4&gt;&lt;br /&gt;So we created a script that loads the extension, unmount the volumes provided by the UMTS modem and start the SMS service.&lt;br /&gt;&lt;br /&gt;The script looks like this:&lt;br /&gt;&lt;code&gt;&lt;br /&gt;#!/bin/sh&lt;br /&gt;&lt;br /&gt;# Script that loads the extension, unmount the volumes provided by the UMTS modem and start the SMS service&lt;br /&gt;# Created by kurt hofmann © 2010&lt;br /&gt;&lt;br /&gt;diskutil unmount /Volumes/NO\ NAME &lt;br /&gt;diskutil unmount /Volumes/Unlimited\ Connection\ Manager &lt;br /&gt;&lt;br /&gt;kextload /Applications/Unlimited\ Connection\ Manager.app/Contents/Drivers/HuaweiDataCardDriver.kext &lt;br /&gt;&lt;br /&gt;/usr/local/bin/smsd&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;This script is then started by a launchd job on startup.&lt;br /&gt;&lt;br /&gt;SMS can now be sent using this command from the command line:&lt;br /&gt;&lt;code&gt;sendsms thenumber 'the message'&lt;/code&gt;&lt;br /&gt;thenumber is an international phone number without the leading zeros.&lt;br /&gt;&lt;br /&gt;&lt;h4&gt;Receiving SMS&lt;/h4&gt;&lt;br /&gt;Now that sending SMS works I wanted to know what it needs to receive SMS.&lt;br /&gt;Then when I send an SMS it might be that someone replies to that message, so it might be useful to receive them.&lt;br /&gt;SMS Server Tools 3 provides a solution for that.&lt;br /&gt;&lt;br /&gt;There is an eventhandler  that gets called whenever it receives or sent a message or when it was not able to send a message.&lt;br /&gt;So I created a script that sends me an incoming SMS as an email.&lt;br /&gt;&lt;br /&gt;The script is here &lt;code&gt;/usr/local/bin/sms2email&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;It looks like this:&lt;br /&gt;&lt;code&gt;&lt;br /&gt;#!/bin/sh&lt;br /&gt;# This is an example how to use an eventhandler with smsd.&lt;br /&gt;# $1 is the type of the event wich can be SENT, RECEIVED, FAILED or REPORT.&lt;br /&gt;# $2 is the filename of the sms.&lt;br /&gt;# $3 is the message id. Only used for SENT messages with status report.&lt;br /&gt;&lt;br /&gt;#The next line changes the file attributes so that everybody can read&lt;br /&gt;#received SM&lt;br /&gt;#if [ "$1" = "RECEIVED" ]; then&lt;br /&gt;#  chmod a+r $2&lt;br /&gt;#fi&lt;br /&gt;&lt;br /&gt;email_receiver="email@provider.com"&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;#This sends all received SM to an eMail receiver:&lt;br /&gt;if [ "$1" = "RECEIVED" ]; then&lt;br /&gt;  /usr/bin/mail -s "Incoming SMS" $email_receiver &lt;$2&lt;br /&gt;fi&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;Now all we have to do is to is put a reference to the script into the smsd.conf file.&lt;br /&gt;&lt;br /&gt;When trying this, I found that there was a problem trying to read the SMS from the device.&lt;br /&gt;So I had to add an additional &lt;a href="http://smstools3.kekekasvi.com/index.php?p=faq#12" target=faq&gt;init string&lt;/a&gt; to put the modem in the right mode.&lt;br /&gt;&lt;br /&gt;&lt;h4&gt;The smsd.conf file&lt;/h4&gt;&lt;br /&gt;So this is what my config file looks now:&lt;br /&gt;&lt;code&gt;&lt;br /&gt;# Example smsd.conf. Read the manual for a description&lt;br /&gt;&lt;br /&gt;devices = GSM1&lt;br /&gt;logfile = /var/log/smsd.log&lt;br /&gt;loglevel = 6&lt;br /&gt;smart_logging = yes&lt;br /&gt;eventhandler = /usr/local/bin/sms2email&lt;br /&gt;&lt;br /&gt;[GSM1]&lt;br /&gt;init = AT+CPMS="MT","MT","MT"&lt;br /&gt;check_memory_method = 2&lt;br /&gt;device = /dev/cu.HUAWEIMobile-Modem&lt;br /&gt;incoming = yes&lt;br /&gt;#pin = 1111&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;&lt;h4&gt;Conclusion&lt;/h4&gt;&lt;br /&gt;Now this works perfectly for my needs.&lt;br /&gt;I now have a server that can send SMS per cli and it can even receive SMS and forward them as email.&lt;br /&gt;Cool.&lt;br /&gt;&lt;br /&gt;If you have any questions just let me know.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2375858330500735826-5406605153604547442?l=osxadmin.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://osxadmin.blogspot.com/feeds/5406605153604547442/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2375858330500735826&amp;postID=5406605153604547442' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2375858330500735826/posts/default/5406605153604547442'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2375858330500735826/posts/default/5406605153604547442'/><link rel='alternate' type='text/html' href='http://osxadmin.blogspot.com/2010/01/sms-server-tools-on-mac-os-x-with.html' title='SMS Server Tools on Mac OS X with Swisscom Unlimited USB Modem E180V'/><author><name>macadmin</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2375858330500735826.post-8203987730394969812</id><published>2009-08-20T14:03:00.001+02:00</published><updated>2009-08-20T14:12:53.821+02:00</updated><title type='text'>Troubleshooting: MCX in Leopard</title><content type='html'>&lt;span style="font-weight:bold;"&gt;Troubleshooting: MCX&lt;/span&gt; &lt;br /&gt;•  Launch Terminal &lt;br /&gt;•  Run the mcxquery command &lt;br /&gt;– mcxquery –user &lt;username&gt; &lt;br /&gt;– mcxquery –group &lt;groupname&gt; &lt;br /&gt;– mcxquery –computer &lt;computername&gt; &lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Troubleshooting: MCX &lt;/span&gt;&lt;br /&gt;•  Login as the user. &lt;br /&gt;•  Launch System Profiler from / &lt;br /&gt;Applications/Utilities &lt;br /&gt;•  On the left, under Software, select &lt;br /&gt;Managed Preferences. &lt;br /&gt;•  On the right the details of the &lt;br /&gt;preferences being applied to the &lt;br /&gt;Computer. &lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Troubleshooting: MCX&lt;/span&gt; &lt;br /&gt;•  sudo dscl . –delete /Computers &lt;br /&gt;•  sudo rm –rf /Library/Managed\ &lt;br /&gt;Preferences &lt;br /&gt;&lt;br /&gt;Hint found here:&lt;br /&gt;&lt;a href="http://208.251.104.253:8080/Users%20Conference/US955_AKunes_Presentation.pdf" target=new&gt;Keep Control of Your School’s  Leopard&lt;/a&gt; by Amanda Kunes.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2375858330500735826-8203987730394969812?l=osxadmin.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://osxadmin.blogspot.com/feeds/8203987730394969812/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2375858330500735826&amp;postID=8203987730394969812' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2375858330500735826/posts/default/8203987730394969812'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2375858330500735826/posts/default/8203987730394969812'/><link rel='alternate' type='text/html' href='http://osxadmin.blogspot.com/2009/08/troubleshooting-mcx-in-leopard.html' title='Troubleshooting: MCX in Leopard'/><author><name>macadmin</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2375858330500735826.post-2611771519885547288</id><published>2009-06-03T08:57:00.001+02:00</published><updated>2009-06-03T08:58:40.207+02:00</updated><title type='text'>createmobileaccount</title><content type='html'>creste a mobile account:&lt;br /&gt;&lt;br /&gt;&lt;i&gt;&lt;br /&gt;/System/Library/CoreServices/ManagedClient.app/Contents/Resources/createmobileaccount &lt;br /&gt;&lt;br /&gt;usage: createmobileaccount -n username [-h homepath] [-P | [-p password]] [-e] [-q] [[-x] | [-X]] [[-s] | [-S]] [-u syncURL] [-v] &lt;br /&gt;-n username : user record name&lt;br /&gt;-h homepath : user home path; Default is "/Users/&lt;username&gt;"&lt;br /&gt;-p password : user password&lt;br /&gt;-P : prompt for password. A password is required for FileVault home&lt;br /&gt;-e encrypt : encrypt new home with FileVault&lt;br /&gt;-q quota : max size in bytes of FileVault home&lt;br /&gt;-x : create as external account on non-boot volumes. Default&lt;br /&gt;-X : create as mobile account account non-boot volumes.&lt;br /&gt;-s : set home sync on if home created.&lt;br /&gt;-S : set home sync off if home created. Default.&lt;br /&gt;-u syncURL : server target of home synchronization&lt;br /&gt;-v : verbose output&lt;br /&gt;&lt;br /&gt;Examples:&lt;br /&gt; createmobileaccount -n jsmith&lt;br /&gt; createmobileaccount -v -P -x -n jsmith&lt;br /&gt; createmobileaccount -vsdn jsmith -h /Volumes/HD3/jhome&lt;br /&gt; createmobileaccount -i&lt;br /&gt;&lt;br /&gt;Notes:&lt;br /&gt; - createmobileaccount must run as root.&lt;br /&gt; - If you do not specify a password, the account's cached password will be created during the account's first log in.&lt;br /&gt;&lt;/i&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2375858330500735826-2611771519885547288?l=osxadmin.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://osxadmin.blogspot.com/feeds/2611771519885547288/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2375858330500735826&amp;postID=2611771519885547288' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2375858330500735826/posts/default/2611771519885547288'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2375858330500735826/posts/default/2611771519885547288'/><link rel='alternate' type='text/html' href='http://osxadmin.blogspot.com/2009/06/createmobileaccount.html' title='createmobileaccount'/><author><name>macadmin</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2375858330500735826.post-5997541153606404517</id><published>2008-11-24T08:29:00.002+01:00</published><updated>2008-11-24T08:37:15.558+01:00</updated><title type='text'>Linkto a product on the Apple Store</title><content type='html'>Have you ever tried to send a link to someone showing them a product on the apple store?&lt;br /&gt;&lt;br /&gt;Here's how to do it:&lt;br /&gt;&lt;br /&gt;1. Get the product number&lt;br /&gt;The way to do so is to add the product to the cart and then go to the cart. It shows you the product numbers.&lt;br /&gt;&lt;br /&gt;2. The rest is easy:&lt;br /&gt;&lt;br /&gt;Create a links llike this one:&lt;br /&gt;&lt;a href=http://store.apple.com/ch-de/product/MB129 target="_new"&gt;http://store.apple.com/ch-de/product/MB129&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;or this one:&lt;br /&gt;&lt;a href=http://store.apple.com/us/product/MB128 target="_new"&gt;http://store.apple.com/us/product/MB128&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;That's it.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2375858330500735826-5997541153606404517?l=osxadmin.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://osxadmin.blogspot.com/feeds/5997541153606404517/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2375858330500735826&amp;postID=5997541153606404517' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2375858330500735826/posts/default/5997541153606404517'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2375858330500735826/posts/default/5997541153606404517'/><link rel='alternate' type='text/html' href='http://osxadmin.blogspot.com/2008/11/linkto-product-on-apple-store.html' title='Linkto a product on the Apple Store'/><author><name>macadmin</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2375858330500735826.post-805319511371822557</id><published>2008-11-11T10:56:00.003+01:00</published><updated>2008-11-11T11:16:28.770+01:00</updated><title type='text'>Display only</title><content type='html'>We wanted to use a Mac Mini as a display only.&lt;br /&gt;&lt;br /&gt;That means: jaut a display, no keyboard, no mouse.&lt;br /&gt;&lt;br /&gt;Just display a web page.&lt;br /&gt;&lt;br /&gt;No problem? Try it. The Mac Mini wants a mouse. It tells you so. Every time you boot it.&lt;br /&gt;Every time the mac starts up, a dialogue appears telling you that you're an idiot because you did not connect a mouse.&lt;br /&gt;&lt;br /&gt;OS X in that case tries to set up a mouse using using bluetooth.&lt;br /&gt;&lt;br /&gt;So, one way to eliminate this dialogue would obviously to remove the app.&lt;br /&gt;It's this one:&lt;br /&gt;&lt;br /&gt;&lt;i&gt;/System/Library/CoreServices/Bluetooth Setup Assistant.app&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;But that's not a very elegant way to do this.&lt;br /&gt;Besides there is always the risk of an update putting the app back in place thus the dialog appearing again.&lt;br /&gt;&lt;br /&gt;After having looked at the app I found a reference to 'com.apple.bluetoothsetupassistant'. I googled a bit I and found a solution on this page:&lt;br /&gt;&lt;br /&gt;&lt;a href=http://managingosx.wordpress.com/2006/02/10/managing-bluetooth-or-pesky-apple-preferences target="_new"&gt;Managing Bluetooth, or pesky Apple Preferences &amp;laquo; Managing OS X&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;There it says:&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;# turn off the Bluetooth KB/mouse dialog that comes up if no KB/mouse is found&lt;br /&gt;`/usr/bin/defaults write /var/root/Library/Preferences/blued BluetoothAutoSeekHIDDevices -int 0`;&lt;br /&gt;&lt;br /&gt;# restart the Bluetooth daemon&lt;br /&gt;`/usr/bin/killall -HUP blued`;&lt;br /&gt;&lt;br /&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;Or you might open the Bluetooth Preference Pane and uncheck “Open Bluetooth Setup Assistant at startup when no input device is present”&lt;br /&gt;&lt;br /&gt;That will do it as well, just in case ;-)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2375858330500735826-805319511371822557?l=osxadmin.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://osxadmin.blogspot.com/feeds/805319511371822557/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2375858330500735826&amp;postID=805319511371822557' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2375858330500735826/posts/default/805319511371822557'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2375858330500735826/posts/default/805319511371822557'/><link rel='alternate' type='text/html' href='http://osxadmin.blogspot.com/2008/11/display-only.html' title='Display only'/><author><name>macadmin</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2375858330500735826.post-1294619301688818321</id><published>2008-11-06T13:17:00.003+01:00</published><updated>2008-11-06T13:23:40.543+01:00</updated><title type='text'>Folder Redirection &amp; Microsoft Office 2008</title><content type='html'>When using the Folder Redirection of Mac OS X Server 10.5, I was having really big problems with Word from Microsoft Office 2004.&lt;br /&gt;It would not save!!!&lt;br /&gt;Sometimes even documents were overwritten!!&lt;br /&gt;Very nasty&lt;br /&gt;&lt;br /&gt;It seems though there is a solution to this:&lt;br /&gt;&lt;br /&gt;I found the hint here: &lt;a href=http://jochsner.dyndns.org/scripts/NHR.html target="new"&gt;http://jochsner.dyndns.org/scripts/NHR.html&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;It sais that:&lt;br /&gt;&lt;br /&gt;«&lt;br /&gt;There appears to be an issue with Office redirection if there is a folder missing at the root of your network mount on the server.  The user will be able to successfully save a new document once, and after that, they will get error messages that they don't have permission to save the file to the destination.  The answer to this was found on http://macosxhints.com:  &lt;br /&gt; &lt;br /&gt;http://www.macosxhints.com/article.php?story=20051122213207398&lt;br /&gt; &lt;br /&gt;The fault occurs unless a folder called .TemporaryItems has been created at the root level of any mounted volume containing the saved file; so if the user's home directory is contained in an AFP share called Homes, then there has to be a directory called .TemporaryItems in the Homes folder on the server. If the home directory is on another local volume called UserData, there has to be a directory called .TemporaryItems at the root of that volume.&lt;br /&gt; &lt;br /&gt;Since .TemporaryItems is a dot file, it will not be visible in the Finder. When the application is able to create this .TemporaryItems directory, it is world writable and sticky. For improved security, as long as all users are in a common group like "staff," then the folder can be restricted to writing by the group instead.&lt;br /&gt;$ cd /path/to/volume/or/sharepoint&lt;br /&gt;$ sudo mkdir .TemporaryItems&lt;br /&gt;$ chgrp staff .TemporaryItems&lt;br /&gt;$ chmod 1770 .TemporaryItems&lt;br /&gt;»&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2375858330500735826-1294619301688818321?l=osxadmin.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://osxadmin.blogspot.com/feeds/1294619301688818321/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2375858330500735826&amp;postID=1294619301688818321' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2375858330500735826/posts/default/1294619301688818321'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2375858330500735826/posts/default/1294619301688818321'/><link rel='alternate' type='text/html' href='http://osxadmin.blogspot.com/2008/11/folder-redirection-microsoft-office.html' title='Folder Redirection &amp; Microsoft Office 2008'/><author><name>macadmin</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2375858330500735826.post-8174862807359823662</id><published>2008-09-04T15:30:00.002+02:00</published><updated>2008-09-04T15:36:02.415+02:00</updated><title type='text'>Where's that sound!</title><content type='html'>I tried a few times ti find out where the sound i located that is played when the installer has successfully installed an application.&lt;br /&gt;&lt;br /&gt;Today I finally found it.&lt;br /&gt;&lt;br /&gt;The sound name is 'burn complete.aif'.&lt;br /&gt;&lt;br /&gt;You can find it here: /System/Library/Components/CoreAudio.component/Contents/Resources/SystemSounds/system/burn complete.aif&lt;br /&gt;&lt;br /&gt;I did not find this by myself.&lt;br /&gt;I got the tip from here &lt;a href="http://forums.macrumors.com/showthread.php?t=524273" target="new"&gt;http://forums.macrumors.com/showthread.php?t=524273&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2375858330500735826-8174862807359823662?l=osxadmin.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://osxadmin.blogspot.com/feeds/8174862807359823662/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2375858330500735826&amp;postID=8174862807359823662' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2375858330500735826/posts/default/8174862807359823662'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2375858330500735826/posts/default/8174862807359823662'/><link rel='alternate' type='text/html' href='http://osxadmin.blogspot.com/2008/09/wheres-that-sound.html' title='Where&apos;s that sound!'/><author><name>macadmin</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2375858330500735826.post-4151503970042818001</id><published>2008-03-20T08:32:00.003+01:00</published><updated>2008-03-20T09:33:38.857+01:00</updated><title type='text'>SirAdmin</title><content type='html'>&lt;a href="http://explanatorygap.net/2006/05/13/siradmin-a-gui-replacement-for-cyradm/" target="new"&gt;SirAdmin&lt;/a&gt; is a ver cool GUI tool to manage IMAP mailboxes.&lt;br /&gt;&lt;br /&gt;It has one problem though.&lt;br /&gt;In order to get it to work, you have to enable clear password authentication on the mail server.&lt;br /&gt;&lt;br /&gt;Using Server Admin go to&lt;br /&gt;&lt;br /&gt;Mail&gt;Settings&gt;Advanced&gt;Security&lt;br /&gt;&lt;br /&gt;Here you have to enable 'Clear' in the IMAP column, otherwise SirAdmin will not be able to authenticate&lt;br /&gt;&lt;br /&gt;Tip found &lt;a href="http://www.afp548.com/forum/viewtopic.php?showtopic=8038" target="new"&gt;here&lt;/a&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2375858330500735826-4151503970042818001?l=osxadmin.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://osxadmin.blogspot.com/feeds/4151503970042818001/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2375858330500735826&amp;postID=4151503970042818001' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2375858330500735826/posts/default/4151503970042818001'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2375858330500735826/posts/default/4151503970042818001'/><link rel='alternate' type='text/html' href='http://osxadmin.blogspot.com/2008/03/siradmin.html' title='SirAdmin'/><author><name>macadmin</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2375858330500735826.post-7800110820906194255</id><published>2008-02-29T08:55:00.001+01:00</published><updated>2008-02-29T08:59:25.376+01:00</updated><title type='text'>Leopard Auto User Setup using Workgroup Manager in Advanced Server Setup</title><content type='html'>There seems to be an easier way of doing this:&lt;br /&gt;In the manual  &lt;b&gt;&lt;a href="http://images.apple.com/server/macosx/docs/User_Management_v10.5.mnl.pdf", target="new"&gt;User_Management_v10.5.mnl.pdf&lt;/a&gt;&lt;/b&gt; you can find a section 'Using the Preference Editor to Manage Core Services' on page 236.&lt;br /&gt;Using this information it is quite easy to assign preferences in the workgroup manager.&lt;br /&gt;The cool thing about this is that you may use '%@' as a variable for the login name.&lt;br /&gt;This way options such as the account name for login into the mail server may be used.&lt;br /&gt;&lt;br /&gt;If I were given the option to post a few picture I could illustrate this.&lt;br /&gt;Feel free to contact me for more information...&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2375858330500735826-7800110820906194255?l=osxadmin.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://osxadmin.blogspot.com/feeds/7800110820906194255/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2375858330500735826&amp;postID=7800110820906194255' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2375858330500735826/posts/default/7800110820906194255'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2375858330500735826/posts/default/7800110820906194255'/><link rel='alternate' type='text/html' href='http://osxadmin.blogspot.com/2008/02/leopard-auto-user-setup-using-workgroup.html' title='Leopard Auto User Setup using Workgroup Manager in Advanced Server Setup'/><author><name>macadmin</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2375858330500735826.post-6544258685126469925</id><published>2008-01-23T09:09:00.000+01:00</published><updated>2008-01-23T09:14:28.669+01:00</updated><title type='text'>Sharing...</title><content type='html'>Have you ever tried to set up a share point using the command line?&lt;br /&gt;&lt;br /&gt;Why would you do this?&lt;br /&gt;&lt;br /&gt;Well, I thought that there must be a way to copy share points after a clean install.&lt;br /&gt;&lt;br /&gt;So, how do we find out what is being shared:&lt;br /&gt;&lt;br /&gt;Enter this command:&lt;br /&gt;&lt;i&gt;sharing -l&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;This gives you something like this:&lt;br /&gt;&lt;br /&gt;&lt;i&gt;name:  Software&lt;br /&gt;path:  /Volumes/Backup/Software&lt;br /&gt; afp: {&lt;br /&gt;      name: Software&lt;br /&gt;      shared: 1&lt;br /&gt;      guest access: 0&lt;br /&gt;      inherit perms: 1&lt;br /&gt; }&lt;br /&gt; ftp: {&lt;br /&gt;      name: Software&lt;br /&gt;      shared: 0&lt;br /&gt;      guest access: 0&lt;br /&gt; }&lt;br /&gt; smb: {&lt;br /&gt;      name: Software&lt;br /&gt;      shared: 0&lt;br /&gt;      guest access: 0&lt;br /&gt;      inherit perms: 0&lt;br /&gt;      oplocks: 0&lt;br /&gt;      strict locking: 0&lt;br /&gt;      directory mask: 493&lt;br /&gt;      create mask: 420&lt;br /&gt; }&lt;br /&gt;&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;In order to set up this share point again after a clean install one would have to enter this command:&lt;br /&gt;&lt;i&gt;sharing -a /Volumes/Backup/Software -g 000 -i 10 -s 100&lt;/i&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2375858330500735826-6544258685126469925?l=osxadmin.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://osxadmin.blogspot.com/feeds/6544258685126469925/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2375858330500735826&amp;postID=6544258685126469925' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2375858330500735826/posts/default/6544258685126469925'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2375858330500735826/posts/default/6544258685126469925'/><link rel='alternate' type='text/html' href='http://osxadmin.blogspot.com/2008/01/sharing.html' title='Sharing...'/><author><name>macadmin</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2375858330500735826.post-2342285825652716765</id><published>2008-01-18T16:21:00.001+01:00</published><updated>2008-01-18T16:21:49.120+01:00</updated><title type='text'>chmod ACL removal</title><content type='html'>The command to recursively remove all ACLs from the files in the working directory and its subdirectories is:&lt;br /&gt;&lt;br /&gt;sudo echo | sudo chmod -R -E ./*&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2375858330500735826-2342285825652716765?l=osxadmin.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://osxadmin.blogspot.com/feeds/2342285825652716765/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2375858330500735826&amp;postID=2342285825652716765' title='4 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2375858330500735826/posts/default/2342285825652716765'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2375858330500735826/posts/default/2342285825652716765'/><link rel='alternate' type='text/html' href='http://osxadmin.blogspot.com/2008/01/chmod-acl-removal.html' title='chmod ACL removal'/><author><name>macadmin</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2375858330500735826.post-4906182364519953173</id><published>2008-01-10T09:33:00.000+01:00</published><updated>2008-01-10T09:37:03.069+01:00</updated><title type='text'>How to rebuild the LaunchServices database</title><content type='html'>If your "Open With" menu shows applications that are no longer installed, or shows some of them as duplicates, you can use the following Terminal command to rebuild your LaunchServices database:&lt;br /&gt;&lt;br /&gt;/System/Library/Frameworks/ApplicationServices.framework/Frameworks/LaunchServices.framework/Support/lsregister -kill -r -domain local -domain system -domain user&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2375858330500735826-4906182364519953173?l=osxadmin.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='related' href='http://www.macosxhints.com/article.php?story=20031215144430486' title='How to rebuild the LaunchServices database'/><link rel='replies' type='application/atom+xml' href='http://osxadmin.blogspot.com/feeds/4906182364519953173/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2375858330500735826&amp;postID=4906182364519953173' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2375858330500735826/posts/default/4906182364519953173'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2375858330500735826/posts/default/4906182364519953173'/><link rel='alternate' type='text/html' href='http://osxadmin.blogspot.com/2008/01/how-to-rebuild-launchservices-database.html' title='How to rebuild the LaunchServices database'/><author><name>macadmin</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2375858330500735826.post-7240887868232810335</id><published>2007-11-19T12:41:00.000+01:00</published><updated>2007-11-19T12:44:32.142+01:00</updated><title type='text'>Enable Mail Bundles in Mac OS X 10.5 Leopard</title><content type='html'>Normally Bundles no longer work after installing Leopard.&lt;br /&gt;I miss Mail.appetizer. To get these working again in Leopard follow these steps:&lt;br /&gt;&lt;br /&gt;Quit Mail &lt;br /&gt;&lt;br /&gt;Enter these commands in Terminal: &lt;br /&gt;&lt;br /&gt;&lt;i&gt;defaults write com.apple.mail EnableBundles -bool YES &lt;/i&gt;&lt;br /&gt;&lt;i&gt;defaults write com.apple.mail BundleCompatibilityVersion -int 3 &lt;/i&gt;&lt;br /&gt;&lt;br /&gt;Start Mail&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2375858330500735826-7240887868232810335?l=osxadmin.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://osxadmin.blogspot.com/feeds/7240887868232810335/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2375858330500735826&amp;postID=7240887868232810335' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2375858330500735826/posts/default/7240887868232810335'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2375858330500735826/posts/default/7240887868232810335'/><link rel='alternate' type='text/html' href='http://osxadmin.blogspot.com/2007/11/enable-mail-bundles-in-mac-os-x-105.html' title='Enable Mail Bundles in Mac OS X 10.5 Leopard'/><author><name>macadmin</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2375858330500735826.post-3453995822893713816</id><published>2007-11-16T08:21:00.000+01:00</published><updated>2007-11-16T08:22:24.143+01:00</updated><title type='text'>Turn off Translucent Menu Bar in Leopard</title><content type='html'>sudo defaults write /System/Library/LaunchDaemons/com.apple.WindowServer 'EnvironmentVariables' -dict 'CI_NO_BACKGROUND_IMAGE' 1&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2375858330500735826-3453995822893713816?l=osxadmin.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='related' href='http://miner49r.blogspot.com/2007/11/turn-off-translucent-menu-bar-in.html' title='Turn off Translucent Menu Bar in Leopard'/><link rel='replies' type='application/atom+xml' href='http://osxadmin.blogspot.com/feeds/3453995822893713816/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2375858330500735826&amp;postID=3453995822893713816' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2375858330500735826/posts/default/3453995822893713816'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2375858330500735826/posts/default/3453995822893713816'/><link rel='alternate' type='text/html' href='http://osxadmin.blogspot.com/2007/11/turn-off-translucent-menu-bar-in.html' title='Turn off Translucent Menu Bar in Leopard'/><author><name>macadmin</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2375858330500735826.post-4748621161727283367</id><published>2007-11-08T12:45:00.000+01:00</published><updated>2007-11-08T12:56:34.962+01:00</updated><title type='text'>Changing the root password on MySQL</title><content type='html'>Many distributions of Linux have an option to install MySQL.  In this case, or even if you compile MySQL, the default password is blank.  MySQL can also run on Windows boxen.  When you install &lt;a href="http://www.mysql.com"&gt;MySQL&lt;/a&gt;, make sure that you set the root password.  You can do this:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;table BORDER="0" BGCOLOR="#000000" WIDTH="100%" &gt;&lt;tr &gt;&lt;td&gt;&lt;pre&gt;&lt;br /&gt;root@u-1:/home/u-1# &lt;b&gt;mysql -u root mysql&lt;/b&gt;&lt;br /&gt;Reading table information for completion of table and column names&lt;br /&gt;You can turn off this feature to get a quicker startup with -A&lt;br /&gt;Welcome to the MySQL monitor.  Commands end with ; or g.&lt;br /&gt;Your MySQL connection id is 1 to server version: 3.23.47&lt;br /&gt;Type 'help;' or 'h' for help. Type 'c' to clear the buffer.&lt;br /&gt;mysql&gt; &lt;b&gt;SET PASSWORD FOR root@localhost=PASSWORD('rubberchicken');&lt;/b&gt;&lt;br /&gt;Query OK, 0 rows affected (0.06 sec)&lt;br /&gt;mysql&gt; &lt;br /&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;br /&gt;&lt;br /&gt;In this example, we set the root password to rubberchicken.  Note from the above that the password wasn't set.  If we try this again, we need to use the -p option to enter the password:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;table BORDER="0" BGCOLOR="#000000" WIDTH="100%" &gt;&lt;tr &gt;&lt;td&gt;&lt;pre&gt;&lt;br /&gt;root@u-1:/home/u-1# &lt;b&gt;mysql -u root mysql&lt;/b&gt;&lt;br /&gt;ERROR 1045: Access denied for user: 'root@localhost' (Using password: NO)&lt;br /&gt;root@u-1:/home/u-1# &lt;b&gt;mysql -u root -p mysql&lt;/b&gt;&lt;br /&gt;Enter password: &lt;br /&gt;Reading table information for completion of table and column names&lt;br /&gt;You can turn off this feature to get a quicker startup with -A&lt;br /&gt;Welcome to the MySQL monitor.  Commands end with ; or g.&lt;br /&gt;Your MySQL connection id is 3 to server version: 3.23.47&lt;br /&gt;Type 'help;' or 'h' for help. Type 'c' to clear the buffer.&lt;br /&gt;mysql&gt; &lt;br /&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;br /&gt;&lt;br /&gt;To reset a root password that you forgot (using paths on our system):&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;table BORDER="0" BGCOLOR="#000000" WIDTH="100%" &gt;&lt;tr &gt;&lt;td&gt;&lt;pre&gt;&lt;br /&gt;[root@host root]#&lt;b&gt;killall mysqld&lt;/b&gt;&lt;br /&gt;[root@host root]#&lt;b&gt;/usr/libexec/mysqld -Sg --user=root &amp;&lt;/b&gt;&lt;br /&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;br /&gt;&lt;br /&gt;You may have better luck with:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;table BORDER="0" BGCOLOR="#000000" WIDTH="100%" &gt;&lt;tr &gt;&lt;td&gt;&lt;pre&gt;&lt;br /&gt;mysqld --skip-grant-tables --user=root&lt;br /&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;br /&gt;&lt;br /&gt;Go back into MySQL with the client:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;table BORDER="0" BGCOLOR="#000000" WIDTH="100%" &gt;&lt;tr &gt;&lt;td&gt;&lt;pre&gt;&lt;br /&gt;[root@host root]# &lt;b&gt;mysql&lt;/b&gt;&lt;br /&gt;Welcome to the MySQL monitor.  Commands end with ; or g.&lt;br /&gt;Your MySQL connection id is 1 to server version: 3.23.41&lt;br /&gt;Type 'help;' or 'h' for help. Type 'c' to clear the buffer.&lt;br /&gt;mysql&gt; &lt;b&gt;USE mysql&lt;/b&gt;&lt;br /&gt;Reading table information for completion of table and column names&lt;br /&gt;You can turn off this feature to get a quicker startup with -A&lt;br /&gt;Database changed&lt;br /&gt;mysql&gt; &lt;b&gt;UPDATE user&lt;/b&gt;&lt;br /&gt;-&gt; &lt;b&gt;SET password=password("newpassword")&lt;/b&gt;&lt;br /&gt;-&gt; &lt;b&gt;WHERE user="root";&lt;/b&gt;&lt;br /&gt;Query OK, 2 rows affected (0.04 sec)&lt;br /&gt;Rows matched: 2  Changed: 2  Warnings: 0&lt;br /&gt;mysql&gt; &lt;b&gt;flush privileges;&lt;/b&gt;&lt;br /&gt;Query OK, 0 rows affected (0.01 sec)&lt;br /&gt;mysql&gt; &lt;b&gt;exit;&lt;/b&gt;&lt;br /&gt;[root@host root]#&lt;b&gt;killall mysqld&lt;/b&gt;&lt;br /&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;br /&gt;&lt;br /&gt;Start MySQL the normal way for your system, and all is good.  For Red Hat this is:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;table BORDER="0" BGCOLOR="#000000" WIDTH="100%" &gt;&lt;tr &gt;&lt;td&gt;&lt;pre&gt;&lt;br /&gt;&lt;b&gt;/etc/init.d/mysqld start&lt;/b&gt;&lt;br /&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2375858330500735826-4748621161727283367?l=osxadmin.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='related' href='http://www.netadmintools.com/art90.html' title='Changing the root password on MySQL'/><link rel='replies' type='application/atom+xml' href='http://osxadmin.blogspot.com/feeds/4748621161727283367/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2375858330500735826&amp;postID=4748621161727283367' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2375858330500735826/posts/default/4748621161727283367'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2375858330500735826/posts/default/4748621161727283367'/><link rel='alternate' type='text/html' href='http://osxadmin.blogspot.com/2007/11/changing-root-password-on-mysql.html' title='Changing the root password on MySQL'/><author><name>macadmin</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2375858330500735826.post-1849472222392612753</id><published>2007-10-29T09:13:00.000+01:00</published><updated>2007-10-29T09:15:46.844+01:00</updated><title type='text'>Group Members</title><content type='html'>Have you ever tried to get a list of group members in a text file.&lt;br /&gt;&lt;br /&gt;Well you can do it this way:&lt;br /&gt;&lt;br /&gt;&lt;i&gt;dscl /LDAPv3/ldap.company.com -read /Groups/ThisGroup Member &gt; ThisGroupsMembers.txt&lt;/i&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2375858330500735826-1849472222392612753?l=osxadmin.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://osxadmin.blogspot.com/feeds/1849472222392612753/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2375858330500735826&amp;postID=1849472222392612753' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2375858330500735826/posts/default/1849472222392612753'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2375858330500735826/posts/default/1849472222392612753'/><link rel='alternate' type='text/html' href='http://osxadmin.blogspot.com/2007/10/group-members.html' title='Group Members'/><author><name>macadmin</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2375858330500735826.post-10407376013276498</id><published>2007-10-17T10:17:00.000+02:00</published><updated>2007-10-17T10:36:17.819+02:00</updated><title type='text'>Join Kerberos</title><content type='html'>I was having some troubles getting a server to join kerberos.&lt;br /&gt;&lt;br /&gt;After some time I found out that the problem was related to a correct dns entry.&lt;br /&gt;&lt;br /&gt;So there are two ways to fix this:&lt;br /&gt;&lt;br /&gt;a) correct dns&lt;br /&gt;b) if that is not possible due to some reason as in my case you may try this:&lt;br /&gt;&lt;br /&gt;Use a text editor to open the /etc/hosts file, then add the following entry to the end of the file: &lt;br /&gt;&lt;br /&gt;IP address FQDN &lt;br /&gt;&lt;br /&gt;... where IP address is the IP address of the KDC, and FQDN is the fully qualified domain name that you specified on your DNS server. &lt;br /&gt;&lt;br /&gt;For example: 123.456.78.910 www.example.com &lt;br /&gt;&lt;br /&gt;In Terminal (/Applications/Utilities), execute the following command:&lt;br /&gt;sudo scutil --set HostName &lt;FQDN&gt;&lt;br /&gt;... where FQDN is the fully qualified domain name of this server that was configured on your DNS server.&lt;br /&gt;&lt;br /&gt;After that I had no problems to join kerberos using:&lt;br /&gt;&lt;br /&gt;&lt;l&gt;&lt;br /&gt;sso_util remove -k -a diradminuser -p diradminpassword&lt;br /&gt;rm /etc/krb5.keytab &lt;br /&gt;# rm /Library/Preferences/edu.mit.Kerberos&lt;br /&gt;# rm -R /Library/Preferences/DirectoryService/&lt;br /&gt;rm -R /var/db/krb5kdc/*&lt;br /&gt;&lt;br /&gt;/usr/sbin/sso_util configure -r LDAP.HOPRO.EDU -a diradminuser -p diradminpassword -f /LDAPv3/ipaddrofladserver -v 1 all&lt;br /&gt;&lt;/l&gt;&lt;br /&gt;&lt;br /&gt;Hint found here:&lt;br /&gt;&lt;a href="http://docs.info.apple.com/article.html?artnum=302044-en" target="new"&gt;Mac OS X Server 10.4: Kerberos authentication services may not successfully start&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2375858330500735826-10407376013276498?l=osxadmin.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://osxadmin.blogspot.com/feeds/10407376013276498/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2375858330500735826&amp;postID=10407376013276498' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2375858330500735826/posts/default/10407376013276498'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2375858330500735826/posts/default/10407376013276498'/><link rel='alternate' type='text/html' href='http://osxadmin.blogspot.com/2007/10/join-kerberos.html' title='Join Kerberos'/><author><name>macadmin</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2375858330500735826.post-8952918509602413858</id><published>2007-10-10T13:27:00.000+02:00</published><updated>2007-10-10T13:30:53.420+02:00</updated><title type='text'>Passwords not working?</title><content type='html'>Are you running a Mac OS X server and having troubles with your passwords?&lt;br /&gt;&lt;br /&gt;The symptoms you see are:&lt;br /&gt;&lt;br /&gt;- A user can't log in to some systems&lt;br /&gt;- The /Library/Logs/PasswordService/ApplePasswordServer.Server.log on the relevant password server contains this message:&lt;br /&gt;&lt;br /&gt;Dec 5 2005 14:28:26 AUTH2: {0x4322345c67952fc40000016800000685, user1} DIGEST-MD5 authentication failed, SASL error -13 (password incorrect).&lt;br /&gt;&lt;br /&gt;Then have a look at this document:&lt;br /&gt;&lt;br /&gt;&lt;a href="http://docs.info.apple.com/article.html?artnum=302942" target="new"&gt;Mac OS X Server: Authentication issues with DIGEST-MD5, "SASL error -13"&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2375858330500735826-8952918509602413858?l=osxadmin.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://osxadmin.blogspot.com/feeds/8952918509602413858/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2375858330500735826&amp;postID=8952918509602413858' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2375858330500735826/posts/default/8952918509602413858'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2375858330500735826/posts/default/8952918509602413858'/><link rel='alternate' type='text/html' href='http://osxadmin.blogspot.com/2007/10/passwords-not-working.html' title='Passwords not working?'/><author><name>macadmin</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2375858330500735826.post-1043741949333213051</id><published>2007-08-07T14:34:00.000+02:00</published><updated>2007-08-15T14:58:31.956+02:00</updated><title type='text'>diskutil resizeVolume</title><content type='html'>To create a partition for Windows on a iMac with a 150GB disk I used the following commands:&lt;br /&gt;&lt;br /&gt;First we need to look at the current disk partitioning:&lt;br /&gt;&lt;i&gt;diskutil list&lt;/i&gt;&lt;br /&gt;which returns something like&lt;br /&gt;&lt;i&gt;&lt;br /&gt;&lt;br /&gt;/dev/disk0&lt;br /&gt;   #:                   type name               size      identifier&lt;br /&gt;   0:  GUID_partition_scheme                    *149.1 GB disk0&lt;br /&gt;   1:                    EFI                    200.0 MB  disk0s1&lt;br /&gt;   2:              Apple_HFS MyMac              148.7 GB  disk0s2&lt;br /&gt;&lt;/i&gt;&lt;br /&gt;Then I used the command&lt;br /&gt;&lt;i&gt;diskutil resizeVolume disk0s2 112G MS-DOS Windows 36G&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;This resizes the Mac partition to 112 GB and creates a second partition in ms-dos format named 'Windows' with a sie of 36 GB&lt;br /&gt;&lt;br /&gt;More infos here:&lt;br /&gt;&lt;a href="http://www.macgeekery.com/tips/cli/nondestructively_resizing_volumes" target="new" &gt;http://www.macgeekery.com/tips/cli/nondestructively_resizing_volumes&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;A reboot is then required. But wait:&lt;br /&gt;Be sure to set the startup disk first, otherwise your mac will not start up!!!&lt;br /&gt;&lt;i&gt;bless --mount "/Volumes/Macintosh HD" --setBoot&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;In order to use the newly created volume with netboot, I had to erase the volume.&lt;br /&gt;Otherwise the volume was not visible in NetRestore.&lt;br /&gt;The command to do this is:&lt;br /&gt;&lt;br /&gt;&lt;i&gt;diskutil eraseVolume MS-DOS ".Windows XP" /dev/disk0s3&lt;/i&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2375858330500735826-1043741949333213051?l=osxadmin.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://osxadmin.blogspot.com/feeds/1043741949333213051/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2375858330500735826&amp;postID=1043741949333213051' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2375858330500735826/posts/default/1043741949333213051'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2375858330500735826/posts/default/1043741949333213051'/><link rel='alternate' type='text/html' href='http://osxadmin.blogspot.com/2007/08/diskutil-resizevolume.html' title='diskutil resizeVolume'/><author><name>macadmin</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2375858330500735826.post-382345800292328383</id><published>2007-06-28T08:53:00.000+02:00</published><updated>2007-06-28T09:00:23.070+02:00</updated><title type='text'>Printer Stuff</title><content type='html'>I tried to change the default printer remotely.&lt;br /&gt;&lt;br /&gt;Lets see what we got:&lt;br /&gt;/System/Library/StartupItems/PrintingServices/PrintingServices restart&lt;br /&gt;to start and stop the printing.&lt;br /&gt;&lt;br /&gt;we have /etc/cups/printers.conf where all the information is stored.&lt;br /&gt;&lt;br /&gt;we have 'lpadmin -d printer_name' so set the default printer.&lt;br /&gt;&lt;br /&gt;but how do I change the default printer without restarting the mac so that it shows in Remote Desktop?&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2375858330500735826-382345800292328383?l=osxadmin.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://osxadmin.blogspot.com/feeds/382345800292328383/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2375858330500735826&amp;postID=382345800292328383' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2375858330500735826/posts/default/382345800292328383'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2375858330500735826/posts/default/382345800292328383'/><link rel='alternate' type='text/html' href='http://osxadmin.blogspot.com/2007/06/printer-stuff.html' title='Printer Stuff'/><author><name>macadmin</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2375858330500735826.post-1662511033839457700</id><published>2007-05-23T14:23:00.000+02:00</published><updated>2007-05-23T14:26:01.594+02:00</updated><title type='text'>Sending email attachments through the terminal</title><content type='html'>uuencode FILENAME FILENAME | mail -s SUBJECT RECIPIENT&lt;br /&gt;&lt;br /&gt;Hint found here:&lt;br /&gt;&lt;br /&gt;&lt;a href="http://cbutera.wordpress.com/tag/apple/" target="new"&gt;http://cbutera.wordpress.com/tag/apple/&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2375858330500735826-1662511033839457700?l=osxadmin.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://osxadmin.blogspot.com/feeds/1662511033839457700/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2375858330500735826&amp;postID=1662511033839457700' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2375858330500735826/posts/default/1662511033839457700'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2375858330500735826/posts/default/1662511033839457700'/><link rel='alternate' type='text/html' href='http://osxadmin.blogspot.com/2007/05/sending-email-attachments-through.html' title='Sending email attachments through the terminal'/><author><name>macadmin</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2375858330500735826.post-6579789035224046546</id><published>2007-05-21T15:45:00.000+02:00</published><updated>2007-05-21T15:51:44.989+02:00</updated><title type='text'>kerberos troubles</title><content type='html'>Are you having troubles getting kerberos to work on Mac OS X Server?&lt;br /&gt;&lt;br /&gt;Well here's a hint:&lt;br /&gt;&lt;br /&gt;Open Workgroup Manager on the designated Kerberos server and delete everything you may find in the path:&lt;br /&gt;&lt;br /&gt;/Config/KerberosKDC&lt;br /&gt;&lt;br /&gt;You may have to enable 'Show "All Records" tab and inspector' in the preferences if WGM in order to do so.&lt;br /&gt;&lt;br /&gt;I found that the server I work with hat rubbish in there which prevented it from working.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2375858330500735826-6579789035224046546?l=osxadmin.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://osxadmin.blogspot.com/feeds/6579789035224046546/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2375858330500735826&amp;postID=6579789035224046546' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2375858330500735826/posts/default/6579789035224046546'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2375858330500735826/posts/default/6579789035224046546'/><link rel='alternate' type='text/html' href='http://osxadmin.blogspot.com/2007/05/kerberos-troubles.html' title='kerberos troubles'/><author><name>macadmin</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2375858330500735826.post-5767371009349536873</id><published>2007-04-26T15:27:00.000+02:00</published><updated>2007-04-26T15:30:53.154+02:00</updated><title type='text'>Sharing files on OS X with ACL</title><content type='html'>A problem with the /Users/Shared folder in OS X is that it is only shared read-only. You can add write access to all items in the shared folder, but when a new user adds files, it will be read only by the others. With Tiger and ACL you can now setup a both read and write shared folder, which inherits write access to all files automaticly. Here is how;&lt;br /&gt;&lt;br /&gt;First you need to enable ACL on your root file system:&lt;br /&gt;&lt;br /&gt;&lt;i&gt;sudo /usr/sbin/fsaclctl -p / -e&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;Then enable inheritable write access to the Shared folder:&lt;br /&gt;&lt;br /&gt;&lt;i&gt;sudo chmod -R +a &lt;br /&gt;"admin allow delete,chown,list,search,add_file,add_subdirectory,delete_child,file_inherit,directory_inherit"  /Users/Shared&lt;/i&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2375858330500735826-5767371009349536873?l=osxadmin.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://osxadmin.blogspot.com/feeds/5767371009349536873/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2375858330500735826&amp;postID=5767371009349536873' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2375858330500735826/posts/default/5767371009349536873'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2375858330500735826/posts/default/5767371009349536873'/><link rel='alternate' type='text/html' href='http://osxadmin.blogspot.com/2007/04/acl.html' title='Sharing files on OS X with ACL'/><author><name>macadmin</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2375858330500735826.post-3747853119042594451</id><published>2007-04-16T13:18:00.000+02:00</published><updated>2007-04-16T13:19:34.242+02:00</updated><title type='text'>"Well Known" TCP and UDP Ports Used By Apple Software Products</title><content type='html'>&lt;a href="http://docs.info.apple.com/article.html?artnum=106439" target="new"&gt;"Well Known" TCP and UDP Ports Used By Apple Software Products&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2375858330500735826-3747853119042594451?l=osxadmin.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://osxadmin.blogspot.com/feeds/3747853119042594451/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2375858330500735826&amp;postID=3747853119042594451' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2375858330500735826/posts/default/3747853119042594451'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2375858330500735826/posts/default/3747853119042594451'/><link rel='alternate' type='text/html' href='http://osxadmin.blogspot.com/2007/04/well-known-tcp-and-udp-ports-used-by.html' title='&quot;Well Known&quot; TCP and UDP Ports Used By Apple Software Products'/><author><name>macadmin</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2375858330500735826.post-3438265417537270042</id><published>2007-04-16T13:12:00.000+02:00</published><updated>2007-04-16T13:17:16.779+02:00</updated><title type='text'>Managed Client: How to prevent profanity from appearing in Dictionary</title><content type='html'>This is an interesting subject.&lt;br /&gt;I guess this could be helpful to manage other preferences from the workgroup manager as well:&lt;br /&gt;&lt;a href="http://docs.info.apple.com/article.html?artnum=305348" target="new"&gt;http://docs.info.apple.com/article.html?artnum=305348&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Actually this tip should help manage any preferences that use the plist format.&lt;br /&gt;Now this is really interesting.&lt;br /&gt;&lt;br /&gt;I wonder if I can turn off the software update function of iTunes...&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2375858330500735826-3438265417537270042?l=osxadmin.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://osxadmin.blogspot.com/feeds/3438265417537270042/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2375858330500735826&amp;postID=3438265417537270042' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2375858330500735826/posts/default/3438265417537270042'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2375858330500735826/posts/default/3438265417537270042'/><link rel='alternate' type='text/html' href='http://osxadmin.blogspot.com/2007/04/managed-client-how-to-prevent-profanity.html' title='Managed Client: How to prevent profanity from appearing in Dictionary'/><author><name>macadmin</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2375858330500735826.post-3856923438175998485</id><published>2007-04-10T11:02:00.000+02:00</published><updated>2007-04-10T11:06:43.512+02:00</updated><title type='text'>Screensaver over LoginWindow</title><content type='html'>Unfortunately Apple does not supply a method of using a screensaver while the mac is in the login window.&lt;br /&gt;&lt;br /&gt;This may however be accomplished using this hint:&lt;br /&gt;&lt;a href="http://homepage.mac.com/gregneagle/iblog/C1833135211/E1305475742/index.html" target="new"&gt;Screensaver over Loginwindow&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2375858330500735826-3856923438175998485?l=osxadmin.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://osxadmin.blogspot.com/feeds/3856923438175998485/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2375858330500735826&amp;postID=3856923438175998485' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2375858330500735826/posts/default/3856923438175998485'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2375858330500735826/posts/default/3856923438175998485'/><link rel='alternate' type='text/html' href='http://osxadmin.blogspot.com/2007/04/screensaver-over-loginwindow.html' title='Screensaver over LoginWindow'/><author><name>macadmin</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2375858330500735826.post-8147136515404714073</id><published>2007-04-10T10:59:00.000+02:00</published><updated>2007-04-10T11:02:29.282+02:00</updated><title type='text'>Screensaver Configuration</title><content type='html'>Some details on how to configure the behaviour of the default screensaver on Mac OS X:&lt;br /&gt;&lt;br /&gt;The settings for the default saver are to be found here:&lt;br /&gt;System/Library/Frameworks/ScreenSaver.framework/Versions/A/Resources/Engine Defaults.plist&lt;br /&gt;&lt;br /&gt;More information on this subject here:&lt;br /&gt;&lt;a href="http://homepage.mac.com/gregneagle/iblog/C1833135211/E241021292/index.html" target="new"&gt;Screensaver configuration&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2375858330500735826-8147136515404714073?l=osxadmin.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://osxadmin.blogspot.com/feeds/8147136515404714073/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2375858330500735826&amp;postID=8147136515404714073' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2375858330500735826/posts/default/8147136515404714073'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2375858330500735826/posts/default/8147136515404714073'/><link rel='alternate' type='text/html' href='http://osxadmin.blogspot.com/2007/04/screensaver-configuration.html' title='Screensaver Configuration'/><author><name>macadmin</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2375858330500735826.post-5952366704556769324</id><published>2007-04-03T15:25:00.000+02:00</published><updated>2007-04-25T14:05:57.775+02:00</updated><title type='text'>Enable auto login via command line [update]</title><content type='html'>I have been wondering on how to do this for a long time.&lt;br /&gt;&lt;br /&gt;Here's the clue:&lt;br /&gt;On Mac OS X Server side there is this tool:&lt;br /&gt;/System/Library/ServerSetup/serversetup&lt;br /&gt;&lt;br /&gt;Amongst a lot of other features, it offers these functions:&lt;br /&gt;&lt;br /&gt;&lt;i&gt;serversetup -setAutoLoginUser Name UID Password&lt;/i&gt;&lt;br /&gt;Set the autostart user using the name and password supplied.&lt;br /&gt;&lt;br /&gt;&lt;i&gt;serversetup -getAutoLoginUser&lt;/i&gt;&lt;br /&gt;Returns the current AutoLoginUser.&lt;br /&gt;&lt;br /&gt;&lt;i&gt;serversetup -clearAutoLoginUser UID&lt;/i&gt;&lt;br /&gt;Disables AutoLogin feature.&lt;br /&gt;&lt;br /&gt;Now what if I copied this tool to a Mac client?&lt;br /&gt;Guess what...&lt;br /&gt;&lt;br /&gt;It works. Well sort of. Sometimes.&lt;br /&gt;It works if the script is executed while logged in locally on the machine.&lt;br /&gt;But that's not what I want.&lt;br /&gt;&lt;br /&gt;But I found another hint here:&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.applescript.net/viewtopic.php?id=17957" target=new&gt;http://www.applescript.net/viewtopic.php?id=17957&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;What you can do is copy the file/private/etc/kcpassword generated on one machine to all the macs you want to log in automatically. It contains an encrypted password. Unfortunately there is no documented way of generating this file on a client. Hmm.&lt;br /&gt;&lt;br /&gt;Then all you have to do is change the login preferences by issuing the following commands:&lt;br /&gt;&lt;br /&gt;&lt;i&gt;/usr/bin/defaults write /Library/Preferences/com.apple.loginwindow autoLoginUser yourusername&lt;/i&gt;&lt;br /&gt;&lt;i&gt;/usr/bin/defaults write /Library/Preferences/com.apple.loginwindow autoLoginUID yourUIDnumber&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;[update]&lt;/b&gt;&lt;br /&gt;There is a cooler way to do this.&lt;br /&gt;I found a utility whose name is 'kcpasswd'.&lt;br /&gt;kcpasswd is a command line application that changes a user's KeyChain password.&lt;br /&gt;That's not exaclty that I was looking for, but it comes real close.&lt;br /&gt;So I sent an email to the author of 'kcpasswd' if there were any chance that he could support generating the /etc/kcpassword file.&lt;br /&gt; &lt;br /&gt;After a while I received an email from Phill Tejada telling me that he had this new tool called 'loginoptions' which does just that.&lt;br /&gt;Way cool and thanks a lot Phill.&lt;br /&gt;&lt;br /&gt;Oh yes, the links, I almost forgot:&lt;br /&gt;&lt;a href="http://home.comcast.net/~fruitbatsoftware/FruitBatSoftware/products.html" target="new"&gt;FruitBatSoftware&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.versiontracker.com/dyn/moreinfo/macosx/32352" target="new"&gt;loginoptions&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2375858330500735826-5952366704556769324?l=osxadmin.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://osxadmin.blogspot.com/feeds/5952366704556769324/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2375858330500735826&amp;postID=5952366704556769324' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2375858330500735826/posts/default/5952366704556769324'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2375858330500735826/posts/default/5952366704556769324'/><link rel='alternate' type='text/html' href='http://osxadmin.blogspot.com/2007/04/enable-auto-login-via-command-line.html' title='Enable auto login via command line [update]'/><author><name>macadmin</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2375858330500735826.post-8199166056774028333</id><published>2007-03-30T08:32:00.000+02:00</published><updated>2007-03-30T09:24:17.239+02:00</updated><title type='text'>logKext</title><content type='html'>LogKext is a freeware keylogger for Mac OS X.&lt;br /&gt;&lt;br /&gt;If you know what this is for, then you can get it here:&lt;br /&gt;&lt;a href="http://fsbsoftware.com/data/LogKextReadme2.html" target="new"&gt;http://fsbsoftware.com/data/LogKextReadme2.html&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Otherwise just forget it.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2375858330500735826-8199166056774028333?l=osxadmin.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://osxadmin.blogspot.com/feeds/8199166056774028333/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2375858330500735826&amp;postID=8199166056774028333' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2375858330500735826/posts/default/8199166056774028333'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2375858330500735826/posts/default/8199166056774028333'/><link rel='alternate' type='text/html' href='http://osxadmin.blogspot.com/2007/03/logkext.html' title='logKext'/><author><name>macadmin</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2375858330500735826.post-6488431949079195609</id><published>2007-03-28T11:30:00.000+02:00</published><updated>2007-03-28T11:33:27.449+02:00</updated><title type='text'>Monitor FileSystem Usage</title><content type='html'>Have you ever been wondering who is eating your fileserver's performance?&lt;br /&gt;&lt;br /&gt;Unfortunately Apple offers no tools to monitor this.&lt;br /&gt;&lt;br /&gt;You may however get some indications by entering the command:&lt;br /&gt;&lt;br /&gt;&lt;i&gt;fs_usage -w AppleFileServer | grep Volumes&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;More on this subject:&lt;br /&gt;&lt;a href="http://forums.macosxhints.com/showthread.php?t=41332" target="new"&gt;TIGER SERVER: High CPU Usage on AppleFileServer process&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2375858330500735826-6488431949079195609?l=osxadmin.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://osxadmin.blogspot.com/feeds/6488431949079195609/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2375858330500735826&amp;postID=6488431949079195609' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2375858330500735826/posts/default/6488431949079195609'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2375858330500735826/posts/default/6488431949079195609'/><link rel='alternate' type='text/html' href='http://osxadmin.blogspot.com/2007/03/monitor-filesystem-usage.html' title='Monitor FileSystem Usage'/><author><name>macadmin</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2375858330500735826.post-142933180978195011</id><published>2007-03-27T09:17:00.000+02:00</published><updated>2007-03-27T09:18:14.165+02:00</updated><title type='text'>Top 15 Terminal Commands for Hidden Mac OS X Settings</title><content type='html'>Found here:&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.macosxtips.co.uk/index_files/terminal-commands-for-hidden-mac-os-x-settings.html" target="new"&gt;http://www.macosxtips.co.uk/index_files/terminal-commands-for-hidden-mac-os-x-settings.html&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2375858330500735826-142933180978195011?l=osxadmin.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://osxadmin.blogspot.com/feeds/142933180978195011/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2375858330500735826&amp;postID=142933180978195011' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2375858330500735826/posts/default/142933180978195011'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2375858330500735826/posts/default/142933180978195011'/><link rel='alternate' type='text/html' href='http://osxadmin.blogspot.com/2007/03/top-15-terminal-commands-for-hidden-mac.html' title='Top 15 Terminal Commands for Hidden Mac OS X Settings'/><author><name>macadmin</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2375858330500735826.post-118061882585879551</id><published>2007-03-23T14:15:00.001+01:00</published><updated>2007-03-28T14:51:24.166+02:00</updated><title type='text'>Re-index your ladp</title><content type='html'>Sometimes it looks like your ldap db is corrupted. &lt;br /&gt;In that case you can try to re-index your ladp&lt;br /&gt;&lt;br /&gt;1. Stop slapd with &lt;br /&gt;&lt;br /&gt;&lt;i&gt;sudo launchctl unload /System/Library/LaunchDaemons/org.openldap.slapd.xml&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;2. Wait a minute to give slapd time to stop. You can see it in the OD status pane of Server Admin&lt;br /&gt;&lt;br /&gt;3. Re-index your ladp db with &lt;br /&gt;&lt;br /&gt;&lt;i&gt;sudo slapindex -v -d 1&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;(I like the debug output just to see what it is doing.)&lt;br /&gt;&lt;br /&gt;4. Start slapd back up with &lt;br /&gt;&lt;br /&gt;&lt;i&gt;sudo launchctl load /System/Library/LaunchDaemons/org.openldap.slapd.xml&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;See if that helps.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2375858330500735826-118061882585879551?l=osxadmin.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://osxadmin.blogspot.com/feeds/118061882585879551/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2375858330500735826&amp;postID=118061882585879551' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2375858330500735826/posts/default/118061882585879551'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2375858330500735826/posts/default/118061882585879551'/><link rel='alternate' type='text/html' href='http://osxadmin.blogspot.com/2007/03/re-index-your-ladp.html' title='Re-index your ladp'/><author><name>macadmin</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2375858330500735826.post-5044775131503174829</id><published>2007-03-23T13:20:00.000+01:00</published><updated>2007-04-10T10:53:12.555+02:00</updated><title type='text'>Backup using rsnapshot</title><content type='html'>I've been using rsnapshot to back up some of our servers.&lt;br /&gt;&lt;br /&gt;&lt;a href="www.rsnapshot.org" target ="new"&gt;rsnapshot&lt;/a&gt; can be installed via &lt;a href="www.opendarwin.org" target ="new"&gt;Darwinports&lt;/a&gt; (or manually; it's only two files:, a Perl script and a config file) and works beautifully on OS X.&lt;br /&gt;&lt;br /&gt;Even though there might be an issue when using ACLs I prefer having a copy of the data instead of losing all....&lt;br /&gt;&lt;br /&gt;It creates hard links instead of copies of files that have not changed. This way incremental backups can be made where each copy in itself is self containing, meaning that it is a full copy that can be copied back in case of an emergency.&lt;br /&gt;&lt;br /&gt;Really cool.&lt;br /&gt;&lt;br /&gt;There's a good page on this subject to be found here:&lt;br /&gt;&lt;a href="http://www.inmostlight.org/2006/03/easy-backups-with-rsnapshot" target ="new"&gt;rsnapshot on OS X howto&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2375858330500735826-5044775131503174829?l=osxadmin.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://osxadmin.blogspot.com/feeds/5044775131503174829/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2375858330500735826&amp;postID=5044775131503174829' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2375858330500735826/posts/default/5044775131503174829'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2375858330500735826/posts/default/5044775131503174829'/><link rel='alternate' type='text/html' href='http://osxadmin.blogspot.com/2007/03/backup-using-rsnapshot.html' title='Backup using rsnapshot'/><author><name>macadmin</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2375858330500735826.post-6616712859096572763</id><published>2007-03-23T09:33:00.000+01:00</published><updated>2007-03-23T09:40:04.940+01:00</updated><title type='text'>Reset Xsan Serial Numbers</title><content type='html'>If by any chance you are setting up a Xsan and are getting these errors:&lt;br /&gt;&lt;br /&gt;"Error while writing settings (Duplicate registration)"&lt;br /&gt;&lt;br /&gt;Then this apparently has nothing to do with the serial number.&lt;br /&gt;It could be correct. But the problem is that Xsan has a database in which it stores the associations from hostnames an serial numbers. And this database can somehow seem to get mixed up if you install the same Xsan several times...&lt;br /&gt;&lt;br /&gt;The thing to do is then to get rid of the database by entering the command:&lt;br /&gt;&lt;br /&gt;&lt;i&gt;rm /etc/systemserialnumbers/xsan&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;on Metadata controllers as well as on all the clients.&lt;br /&gt;Then reboot all of them and start anew.&lt;br /&gt;&lt;br /&gt;This is how I got it working again.&lt;br /&gt;&lt;br /&gt;The hint I followed was found here:&lt;br /&gt;&lt;a href="http://www.xsanity.com/forum/viewtopic.php?p=348" target="new"&gt;http://www.xsanity.com/forum/viewtopic.php?p=348&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2375858330500735826-6616712859096572763?l=osxadmin.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://osxadmin.blogspot.com/feeds/6616712859096572763/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2375858330500735826&amp;postID=6616712859096572763' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2375858330500735826/posts/default/6616712859096572763'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2375858330500735826/posts/default/6616712859096572763'/><link rel='alternate' type='text/html' href='http://osxadmin.blogspot.com/2007/03/reset-xsan-serial-numbers.html' title='Reset Xsan Serial Numbers'/><author><name>macadmin</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2375858330500735826.post-2654051355946631527</id><published>2007-03-19T13:56:00.000+01:00</published><updated>2007-03-21T13:30:20.647+01:00</updated><title type='text'>sso_util -- Kerberos -- Open Directory Single Sign On</title><content type='html'>So this is the tool to manage the kerberos stuff!&lt;br /&gt;&lt;br /&gt;I accidentally  found it when browsing around for information on how to remove a replica from an open directory system.&lt;br /&gt;&lt;br /&gt;That by the way is done by entering the command:&lt;br /&gt;&lt;br /&gt;slapconfig -removereplica 192.168.1.1&lt;br /&gt;&lt;br /&gt;But here's the info on sso_util:&lt;br /&gt;&lt;a href="http://developer.apple.com/documentation/Darwin/Reference/Manpages/man8/sso_util.8.html" target="new"&gt; Manual Page For sso_util(8) &lt;/a&gt;&lt;br /&gt;&lt;br /&gt;So here's how to stop the kerberos server:&lt;br /&gt;&lt;br /&gt;sso_util remove -k -a &lt;i&gt;diradminuser&lt;/i&gt; -p &lt;i&gt;diradminpassword&lt;/i&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2375858330500735826-2654051355946631527?l=osxadmin.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://osxadmin.blogspot.com/feeds/2654051355946631527/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2375858330500735826&amp;postID=2654051355946631527' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2375858330500735826/posts/default/2654051355946631527'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2375858330500735826/posts/default/2654051355946631527'/><link rel='alternate' type='text/html' href='http://osxadmin.blogspot.com/2007/03/ssoutil-kerberos-open-directory-single.html' title='sso_util -- Kerberos -- Open Directory Single Sign On'/><author><name>macadmin</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2375858330500735826.post-4731571167433732094</id><published>2007-03-15T14:29:00.000+01:00</published><updated>2007-03-15T14:33:32.352+01:00</updated><title type='text'>Eject key doesn’t work in 10.4.9</title><content type='html'>I wish that I could configure time it takes for the Eject key to react.&lt;br /&gt;&lt;br /&gt;I personally did never press this key accidentally and I wish that I could set it back to normal behaviour.&lt;br /&gt;Especially since I also use this key to restart or shut down my mac....&lt;br /&gt;&lt;br /&gt;Let's see if can figure out how to change this...&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2375858330500735826-4731571167433732094?l=osxadmin.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://osxadmin.blogspot.com/feeds/4731571167433732094/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2375858330500735826&amp;postID=4731571167433732094' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2375858330500735826/posts/default/4731571167433732094'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2375858330500735826/posts/default/4731571167433732094'/><link rel='alternate' type='text/html' href='http://osxadmin.blogspot.com/2007/03/eject-key-doesnt-work-in-1049.html' title='Eject key doesn’t work in 10.4.9'/><author><name>macadmin</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2375858330500735826.post-113102366705604381</id><published>2007-03-15T13:52:00.000+01:00</published><updated>2007-03-15T14:17:03.289+01:00</updated><title type='text'>smile ;-)</title><content type='html'>I use the following script within Apple Remote Desktop (ARD) to take a picture of the people sitting in front of their macs and send it to me via email:&lt;br /&gt;&lt;br /&gt;&lt;i&gt;&lt;br /&gt;b=`users | cut -d " " -f 1`&lt;br /&gt;u=`/usr/bin/ldapsearch -x -h myldapserver.com -b "cn=users, dc=mydomain, dc=com" "uid=$b"| grep cn: |cut -d":" -f 2`&lt;br /&gt;c=`/System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Support/systemsetup -getcomputername | cut -d":" -f 2 | cut -d " " -f 2`&lt;br /&gt;/usr/local/sbin/wacaw --jpeg smile&lt;br /&gt;echo "This is $u ($b) on $c" | /usr/local/bin/mutt -a "/usr/local/sbin/smile.jpeg" -s "$b@$c" "me@mymaildomain.com"&lt;br /&gt;rm /usr/local/sbin/smile.jpeg&lt;br /&gt;&lt;/i&gt;&lt;br /&gt;It send me a photo of the person sitting in front of the mac together with their name so that I know who it is.&lt;br /&gt;&lt;br /&gt;This script uses:&lt;br /&gt;&lt;a href="http://sourceforge.net/projects/webcam-tools" target="new" &gt;wacaw&lt;/a&gt; to capture a picture from the iSight.&lt;br /&gt;&lt;a href="http://www.mutt.org" target="new" &gt; The Mutt E-Mail Client &lt;/a&gt;&lt;br /&gt;Unlike mail this email client allows me to send an attachment.&lt;br /&gt;Mutt was compiled using the method described in my last post.&lt;br /&gt;&lt;br /&gt;It also uses 'ldapsearch' to get the real name of the person.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2375858330500735826-113102366705604381?l=osxadmin.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://osxadmin.blogspot.com/feeds/113102366705604381/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2375858330500735826&amp;postID=113102366705604381' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2375858330500735826/posts/default/113102366705604381'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2375858330500735826/posts/default/113102366705604381'/><link rel='alternate' type='text/html' href='http://osxadmin.blogspot.com/2007/03/smile.html' title='smile ;-)'/><author><name>macadmin</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2375858330500735826.post-8118163989796025809</id><published>2007-03-13T16:38:00.000+01:00</published><updated>2007-03-14T10:52:42.624+01:00</updated><title type='text'>Configuring build for universal binaries from open source</title><content type='html'>Configuring for universal binaries&lt;br /&gt;The first approach is to simply have configure build a universal binary, by passing in the appropriate CFLAGS and LDFLAGS environment variables. This is done simply by running&lt;br /&gt;&lt;br /&gt;env CFLAGS="-O -g -isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc" \&lt;br /&gt;  LDFLAGS="-arch i386 -arch ppc"   ./configure --prefix=${HOME}/Hello --disable-dependency-tracking&lt;br /&gt;&lt;br /&gt;This is documented here:&lt;br /&gt;&lt;a href="http://developer.apple.com/technotes/tn2005/tn2137.html" target="new" &gt;Technical Note TN2137&lt;br /&gt;Building Universal Binaries from "configure"-based Open Source Projects&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;After entering the commands 'make' and 'make install' you can then find the binaries in a folder called 'Hello' in your home directory. This is very useful if you don't want to install the binaries directly in your system but would rather have them isolated.&lt;br /&gt;The advantage being that you can now easily use 'PackageMaker' to create a installer package ;-).&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2375858330500735826-8118163989796025809?l=osxadmin.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://osxadmin.blogspot.com/feeds/8118163989796025809/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2375858330500735826&amp;postID=8118163989796025809' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2375858330500735826/posts/default/8118163989796025809'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2375858330500735826/posts/default/8118163989796025809'/><link rel='alternate' type='text/html' href='http://osxadmin.blogspot.com/2007/03/configuring-build-for-universal.html' title='Configuring build for universal binaries from open source'/><author><name>macadmin</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2375858330500735826.post-580015633273083927</id><published>2007-03-13T13:59:00.000+01:00</published><updated>2007-03-13T15:32:25.600+01:00</updated><title type='text'>Apple Remote Desktop - Send Unix Commands</title><content type='html'>An interesting list of commands can found here:&lt;br /&gt;&lt;br /&gt;&lt;a href="http://homepage.mac.com/applesd/page2/page1/page0/index.html" target="new"&gt;http://homepage.mac.com/applesd/page2/page1/page0/index.html&lt;/a&gt;&lt;br /&gt;or here:&lt;br /&gt;&lt;a href="http://macenterprise.org/content/view/114/140/" target="new"&gt;http://macenterprise.org/content/view/114/140&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2375858330500735826-580015633273083927?l=osxadmin.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://osxadmin.blogspot.com/feeds/580015633273083927/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2375858330500735826&amp;postID=580015633273083927' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2375858330500735826/posts/default/580015633273083927'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2375858330500735826/posts/default/580015633273083927'/><link rel='alternate' type='text/html' href='http://osxadmin.blogspot.com/2007/03/apple-remote-desktop-send-unix-commands.html' title='Apple Remote Desktop - Send Unix Commands'/><author><name>macadmin</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2375858330500735826.post-8258029797573833573</id><published>2007-03-13T08:47:00.000+01:00</published><updated>2007-03-13T08:59:44.682+01:00</updated><title type='text'>Secure OS X</title><content type='html'>There's an interesting article on how to secure Mac OS X to be found here:&lt;br /&gt;&lt;a href="http://blog.cocoia.com/?p=13" target="new"&gt;Howto: A more secure OS X before Leopard&lt;/a&gt;&lt;br /&gt;&lt;a href="http://blog.cocoia.com/?p=15" target="new"&gt;An even more secure OS X before Leopard&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Adding additional security measures is always a subject when working as a system administrator.&lt;br /&gt;&lt;br /&gt;PDF Guides:&lt;br /&gt;&lt;a href="http://www.nsa.gov/snac/downloads_macX.cfm"&gt;NSA’s Guide to Panther Hardening&lt;/a&gt;&lt;br /&gt;&lt;a href="http://research.corsaire.com/whitepapers/060517-securing-mac-os-x-tiger.pdf"&gt;Corsaire’s Guide on Securing OS X Tiger &lt;/a&gt;&lt;br /&gt;&lt;a href="http://images.apple.com/server/pdfs/Tiger_Security_Config_021507.pdf"&gt;Apple’s Document on Securing Tiger&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2375858330500735826-8258029797573833573?l=osxadmin.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://osxadmin.blogspot.com/feeds/8258029797573833573/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2375858330500735826&amp;postID=8258029797573833573' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2375858330500735826/posts/default/8258029797573833573'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2375858330500735826/posts/default/8258029797573833573'/><link rel='alternate' type='text/html' href='http://osxadmin.blogspot.com/2007/03/secure-os-x.html' title='Secure OS X'/><author><name>macadmin</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2375858330500735826.post-7666127101982763059</id><published>2007-03-08T09:15:00.000+01:00</published><updated>2007-03-08T09:21:11.219+01:00</updated><title type='text'>syslogd</title><content type='html'>There is an interesting article on how to set up a syslog server in mac os x on afp548:&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.afp548.com/article.php?story=20050816135035340" target="new"&gt;http://www.afp548.com/article.php?story=20050816135035340&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2375858330500735826-7666127101982763059?l=osxadmin.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://osxadmin.blogspot.com/feeds/7666127101982763059/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2375858330500735826&amp;postID=7666127101982763059' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2375858330500735826/posts/default/7666127101982763059'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2375858330500735826/posts/default/7666127101982763059'/><link rel='alternate' type='text/html' href='http://osxadmin.blogspot.com/2007/03/syslogd.html' title='syslogd'/><author><name>macadmin</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2375858330500735826.post-7356687393395116827</id><published>2007-03-05T12:59:00.000+01:00</published><updated>2007-03-05T13:55:37.532+01:00</updated><title type='text'>slapconfig</title><content type='html'>slapconfig is a utility for configuring slapd, slurpd, and the Directory&lt;br /&gt;Services search policy. It must be run by root.&lt;br /&gt;&lt;br /&gt;-addreplica &lt;replica-address&gt;&lt;br /&gt;     Adds a replica to the slapd configuration file.&lt;br /&gt;&lt;br /&gt;-createreplica &lt;master IP or name&gt; &lt;admin user&gt;&lt;br /&gt;     Create a new replica from an existing LDAP master.&lt;br /&gt;&lt;br /&gt;-removereplica -&lt;replica-address&gt;&lt;br /&gt;     Removes a replica from the slapd configuration file.&lt;br /&gt;&lt;br /&gt;more infos can be found in the man pages of slapconfig.&lt;br /&gt;&lt;br /&gt;After having set up a new server, I imported the ldap data from the old server.&lt;br /&gt;After checking the setup I had the problem that I had to remove the old replicas.&lt;br /&gt;Even though I removed them in the server settings they still showed up in the file /Library/Preferences/DirectoryService/DSLDAPv3PlugInConfig.plist of the clients.&lt;br /&gt;So i used slapconfig on the server to remove them.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2375858330500735826-7356687393395116827?l=osxadmin.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://osxadmin.blogspot.com/feeds/7356687393395116827/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2375858330500735826&amp;postID=7356687393395116827' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2375858330500735826/posts/default/7356687393395116827'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2375858330500735826/posts/default/7356687393395116827'/><link rel='alternate' type='text/html' href='http://osxadmin.blogspot.com/2007/03/slapconfig.html' title='slapconfig'/><author><name>macadmin</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2375858330500735826.post-7904167012716675503</id><published>2007-03-05T10:58:00.001+01:00</published><updated>2007-03-05T13:11:11.700+01:00</updated><title type='text'>cut</title><content type='html'>&lt;i&gt;echo "steve:jobs"| cut -f 1 -d ":"&lt;/i&gt;&lt;br /&gt;returns 'steve' because cut is set to return field 1 using delimiter ":"&lt;br /&gt;cool!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2375858330500735826-7904167012716675503?l=osxadmin.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://osxadmin.blogspot.com/feeds/7904167012716675503/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2375858330500735826&amp;postID=7904167012716675503' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2375858330500735826/posts/default/7904167012716675503'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2375858330500735826/posts/default/7904167012716675503'/><link rel='alternate' type='text/html' href='http://osxadmin.blogspot.com/2007/03/cut.html' title='cut'/><author><name>macadmin</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2375858330500735826.post-5170995620078160101</id><published>2007-03-05T10:54:00.000+01:00</published><updated>2007-03-27T12:22:55.211+02:00</updated><title type='text'>ldapsearch</title><content type='html'>ldapsearch&lt;br /&gt;Sometimes it may be useful to get the name of a mac with a specific mac address from your directory server:&lt;br /&gt;&lt;br /&gt;&lt;i&gt;/usr/bin/ldapsearch -x -h 192.168.1.10 -b "cn=computers, dc=myserver, dc=com" "macAddress=00:0a:95:f1:01:04"&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;We use this in a script that installs our Mac OS X clients.&lt;br /&gt;This has the advantage that mac clients whose name are defined in our open directory are automatically renamed as they are installed thus always have the correct name without any additional manual renaming.&lt;br /&gt;&lt;br /&gt;Unfortunately ldapsearch truncates it's output to 80 characters per line which can be very annoying.&lt;br /&gt;To prevent this one may add one line of Perl:&lt;br /&gt;&lt;br /&gt;perl -p -0040 -e 's/\n //'&lt;br /&gt;&lt;br /&gt;-p: Loop for each line and print&lt;br /&gt;-0040: Set input delimiter to 040 i.e. space&lt;br /&gt;-e: Command follows - strip newline/spac&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2375858330500735826-5170995620078160101?l=osxadmin.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://osxadmin.blogspot.com/feeds/5170995620078160101/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2375858330500735826&amp;postID=5170995620078160101' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2375858330500735826/posts/default/5170995620078160101'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2375858330500735826/posts/default/5170995620078160101'/><link rel='alternate' type='text/html' href='http://osxadmin.blogspot.com/2007/03/ldapsearch.html' title='ldapsearch'/><author><name>macadmin</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2375858330500735826.post-6968026679264373728</id><published>2007-03-05T10:53:00.000+01:00</published><updated>2007-03-05T13:12:43.950+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='os x'/><category scheme='http://www.blogger.com/atom/ns#' term='mac'/><title type='text'>get mac address</title><content type='html'>To get the mac address use the following command:&lt;br /&gt;&lt;br /&gt;&lt;i&gt;hwAddress=`ifconfig en0 | awk '/ether/ { gsub(":", ""); print $2 }'`&lt;/i&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2375858330500735826-6968026679264373728?l=osxadmin.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://osxadmin.blogspot.com/feeds/6968026679264373728/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2375858330500735826&amp;postID=6968026679264373728' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2375858330500735826/posts/default/6968026679264373728'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2375858330500735826/posts/default/6968026679264373728'/><link rel='alternate' type='text/html' href='http://osxadmin.blogspot.com/2007/03/get-mac-address.html' title='get mac address'/><author><name>macadmin</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2375858330500735826.post-5750337254377024449</id><published>2007-03-05T10:52:00.000+01:00</published><updated>2007-03-05T10:53:25.954+01:00</updated><title type='text'>dscl</title><content type='html'>Directory Service command line utility&lt;br /&gt;&lt;br /&gt;List users:&lt;br /&gt;dscl /LDAPv3/ldapserver.myserver.com -list /Users&lt;br /&gt;&lt;br /&gt;Read a users properties:&lt;br /&gt;dscl /LDAPv3/ldapserver.myserver.com -read /Users/ms&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2375858330500735826-5750337254377024449?l=osxadmin.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://osxadmin.blogspot.com/feeds/5750337254377024449/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2375858330500735826&amp;postID=5750337254377024449' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2375858330500735826/posts/default/5750337254377024449'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2375858330500735826/posts/default/5750337254377024449'/><link rel='alternate' type='text/html' href='http://osxadmin.blogspot.com/2007/03/dscl.html' title='dscl'/><author><name>macadmin</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2375858330500735826.post-9124329794504497794</id><published>2007-03-05T10:51:00.004+01:00</published><updated>2007-03-05T10:52:10.728+01:00</updated><title type='text'>MCX Cache</title><content type='html'>Update MCX Cache&lt;br /&gt;sudo /System/Library/CoreServices/mcxd.app/Contents/Resources/MCXCacher -U UserNameHere&lt;br /&gt;&lt;br /&gt;/System/Library/CoreServices/mcxd.app/Contents/Resources/MCXCacher&lt;br /&gt;&lt;br /&gt;MCXCacher -U usershortname [-h homepath]&lt;br /&gt;Creates (or overwrites an existing) mobile account on the current  &lt;br /&gt;machine for user "usershortname" with optional home path "homepath"&lt;br /&gt;&lt;br /&gt;MCXCacher&lt;br /&gt;Performs the pre-login checks and refreshes cache if required.&lt;br /&gt;&lt;br /&gt;MCXCacher -u usershortname&lt;br /&gt;Performs the post login checks and refreshes caches -- does  &lt;br /&gt;everything that "MCXCacher" does plus caches the current user's  &lt;br /&gt;mcx_settings&lt;br /&gt;&lt;br /&gt;MCXCacher -f&lt;br /&gt;Flushes the cache (Mobile accounts not removed; but system is unmanaged)&lt;br /&gt;&lt;br /&gt;MCXCacher -d&lt;br /&gt;Dirties the cache so that it will be refreshes at the next login  &lt;br /&gt;("MCXCacher" call by mcxd)&lt;br /&gt;-----------------------&lt;br /&gt;&lt;br /&gt;MCXCacher -f will put the machine into an unmanaged state until the  &lt;br /&gt;next time it reconnects to the management server, so it's a rather  &lt;br /&gt;drastic thing to do. From memory, if you run this command, Mobile  &lt;br /&gt;Users won't be able to login at the loginwindow unless the machine  &lt;br /&gt;can connect to the management server at that time.&lt;br /&gt;&lt;br /&gt;MCXCacher -d does the right thing in the vast majority of cases, and  &lt;br /&gt;as John DeTroye just pointed out to me, runs at login/logout and  &lt;br /&gt;restart.&lt;br /&gt;&lt;br /&gt;The flags that allow you to specify where a mobile user home  &lt;br /&gt;directory is created are really useful though. I'm using it with a  &lt;br /&gt;login hook that means that my users get their home directory set to  &lt;br /&gt;another partition when they first login as a Mobile User.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2375858330500735826-9124329794504497794?l=osxadmin.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://osxadmin.blogspot.com/feeds/9124329794504497794/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2375858330500735826&amp;postID=9124329794504497794' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2375858330500735826/posts/default/9124329794504497794'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2375858330500735826/posts/default/9124329794504497794'/><link rel='alternate' type='text/html' href='http://osxadmin.blogspot.com/2007/03/mcx-cache.html' title='MCX Cache'/><author><name>macadmin</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2375858330500735826.post-3419593334434947876</id><published>2007-03-05T10:51:00.003+01:00</published><updated>2007-03-05T10:51:45.840+01:00</updated><title type='text'>stat</title><content type='html'>Display User and Group of a folder:&lt;br /&gt;stat -f "%u:%g" backup/&lt;br /&gt;&lt;br /&gt;Display Permissions of a folder:&lt;br /&gt;stat -f "%p" backup/&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2375858330500735826-3419593334434947876?l=osxadmin.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://osxadmin.blogspot.com/feeds/3419593334434947876/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2375858330500735826&amp;postID=3419593334434947876' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2375858330500735826/posts/default/3419593334434947876'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2375858330500735826/posts/default/3419593334434947876'/><link rel='alternate' type='text/html' href='http://osxadmin.blogspot.com/2007/03/stat.html' title='stat'/><author><name>macadmin</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2375858330500735826.post-1796484423768691801</id><published>2007-03-05T10:51:00.001+01:00</published><updated>2007-03-05T10:51:19.146+01:00</updated><title type='text'>find installed files</title><content type='html'>any opaque installer that asks for a password, you might want to take the pause that refreshes and square yourself to capture what was done. a technique...&lt;br /&gt;&lt;br /&gt;quit apps that may be changing files. we want as few files mod'd as possible.&lt;br /&gt;&lt;br /&gt;before running the installer, in the shell:&lt;br /&gt;&lt;br /&gt;% touch ~/newer&lt;br /&gt;&lt;br /&gt;then, run your installer. when it has completed, in the shell...&lt;br /&gt;&lt;br /&gt;% sudo /usr/bin/find / -xdev -newer ~/newer&lt;br /&gt;&lt;br /&gt;this will spit up all files changed since the above touch.&lt;br /&gt;&lt;br /&gt;you might want to capture it by redirecting to a file...&lt;br /&gt;&lt;br /&gt;% sudo /usr/bin/find / -xdev -newer ~/newer &gt;~/install.foo.touched.log&lt;br /&gt;&lt;br /&gt;note that there may be some files in there that were modified, but not by the installer.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2375858330500735826-1796484423768691801?l=osxadmin.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://osxadmin.blogspot.com/feeds/1796484423768691801/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2375858330500735826&amp;postID=1796484423768691801' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2375858330500735826/posts/default/1796484423768691801'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2375858330500735826/posts/default/1796484423768691801'/><link rel='alternate' type='text/html' href='http://osxadmin.blogspot.com/2007/03/find-installed-files.html' title='find installed files'/><author><name>macadmin</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2375858330500735826.post-1791239125110068774</id><published>2007-03-05T10:50:00.001+01:00</published><updated>2007-03-05T10:50:53.822+01:00</updated><title type='text'>Hide 'Other Users...' in Login Window</title><content type='html'>sudo defaults write /Library/Preferences/com.apple.loginwindow SHOWOTHERUSERS_MANAGED false&lt;br /&gt;&lt;br /&gt;To hide local admin users:&lt;br /&gt;sudo defaults write /Library/Preferences/com.apple.loginwindow HideAdminUsers true&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2375858330500735826-1791239125110068774?l=osxadmin.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://osxadmin.blogspot.com/feeds/1791239125110068774/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2375858330500735826&amp;postID=1791239125110068774' title='4 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2375858330500735826/posts/default/1791239125110068774'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2375858330500735826/posts/default/1791239125110068774'/><link rel='alternate' type='text/html' href='http://osxadmin.blogspot.com/2007/03/hide-other-users-in-login-window.html' title='Hide &apos;Other Users...&apos; in Login Window'/><author><name>macadmin</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2375858330500735826.post-6713566274694298502</id><published>2007-03-05T10:47:00.000+01:00</published><updated>2007-03-05T13:10:45.514+01:00</updated><title type='text'>Make a client pretend it is a server</title><content type='html'>Some tools only work on the server version of Mac OS X.&lt;br /&gt;&lt;br /&gt;In order to make these tools work on a client you can make the system think it is a server by issuing the following command:&lt;br /&gt;&lt;br /&gt;&lt;i&gt;sudo touch /System/Library/CoreServices/ServerVersion.plist&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;You may then use these server tools.&lt;br /&gt;Afterwards you will have to change things back:&lt;br /&gt;&lt;br /&gt;&lt;i&gt;sudo rm /System/Library/CoreServices/ServerVersion.plist &lt;/i&gt;&lt;br /&gt;&lt;br /&gt;Make sure to not leave out the last line, else your computer will think its Mac OS X Server!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2375858330500735826-6713566274694298502?l=osxadmin.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://osxadmin.blogspot.com/feeds/6713566274694298502/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2375858330500735826&amp;postID=6713566274694298502' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2375858330500735826/posts/default/6713566274694298502'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2375858330500735826/posts/default/6713566274694298502'/><link rel='alternate' type='text/html' href='http://osxadmin.blogspot.com/2007/03/make-client-pretend-it-is-server.html' title='Make a client pretend it is a server'/><author><name>macadmin</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2375858330500735826.post-4721147284215852359</id><published>2007-03-05T10:44:00.000+01:00</published><updated>2007-03-05T10:46:36.463+01:00</updated><title type='text'>filenames with spaces...</title><content type='html'>This is a quickie. On the Mac you regularly handle files with spaces in the Finder without issue, and even on the command line when you put quotes around it or let tab-completion escape it properly. However, if you try to do things in a shell script, like a for loop, on filenames that involve a space you're going to hit a wall. For splits items on a space, regardless of it they're quoted (if they're stored in a variable). However, the read command does not. Observe.&lt;br /&gt;&lt;br /&gt;&lt;i&gt;find ~ -name '* *' | while read FILE&lt;br /&gt;do&lt;br /&gt;  echo $FILE rocks.&lt;br /&gt;done&lt;br /&gt;&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;And that's that. Run the command and pipe to the while stanza and it works like a charm.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2375858330500735826-4721147284215852359?l=osxadmin.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://osxadmin.blogspot.com/feeds/4721147284215852359/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2375858330500735826&amp;postID=4721147284215852359' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2375858330500735826/posts/default/4721147284215852359'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2375858330500735826/posts/default/4721147284215852359'/><link rel='alternate' type='text/html' href='http://osxadmin.blogspot.com/2007/03/filenames-with-spaces.html' title='filenames with spaces...'/><author><name>macadmin</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2375858330500735826.post-3988556676391607075</id><published>2007-03-05T10:39:00.000+01:00</published><updated>2007-03-05T10:43:08.030+01:00</updated><title type='text'>Software Update Server</title><content type='html'>I know that a client can be forced to use a local Software Update Server by managing the preferences on the directory server.&lt;br /&gt;&lt;br /&gt;You can do this through the command line too. That app is just editing the software update .plist file. For a global change of software update server for all users, type this.&lt;br /&gt;&lt;br /&gt;sudo defaults write /Library/Preferences/com.apple.SoftwareUpdate CatalogURL "http://you-server:8088/"&lt;br /&gt;&lt;br /&gt;Remember to add that "/" after the port number. And the part with the address, you do actually put that in quotes when entering in the terminal. &lt;br /&gt;&lt;br /&gt;In our environment it is also necessary to add the software update server to the list of servers that will not pass throug our web proxy server because the software update won't work with a proxy between client and server...&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2375858330500735826-3988556676391607075?l=osxadmin.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://osxadmin.blogspot.com/feeds/3988556676391607075/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2375858330500735826&amp;postID=3988556676391607075' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2375858330500735826/posts/default/3988556676391607075'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2375858330500735826/posts/default/3988556676391607075'/><link rel='alternate' type='text/html' href='http://osxadmin.blogspot.com/2007/03/software-update-server.html' title='Software Update Server'/><author><name>macadmin</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2375858330500735826.post-2199564734421202914</id><published>2007-03-05T10:35:00.000+01:00</published><updated>2007-03-05T10:37:42.045+01:00</updated><title type='text'>create non-admin user</title><content type='html'>The user created in the last post creates an admin user.&lt;br /&gt;&lt;br /&gt;In order to remove admin rights all that has to be done is to take that user out of the admin group.&lt;br /&gt;&lt;br /&gt;on the local machine this can be done using the following command:&lt;br /&gt;&lt;br /&gt;niutil -destroyval . /groups/admin users username&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2375858330500735826-2199564734421202914?l=osxadmin.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://osxadmin.blogspot.com/feeds/2199564734421202914/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2375858330500735826&amp;postID=2199564734421202914' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2375858330500735826/posts/default/2199564734421202914'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2375858330500735826/posts/default/2199564734421202914'/><link rel='alternate' type='text/html' href='http://osxadmin.blogspot.com/2007/03/create-non-admin-user.html' title='create non-admin user'/><author><name>macadmin</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2375858330500735826.post-1434363068533535774</id><published>2007-03-05T10:33:00.000+01:00</published><updated>2007-03-05T10:35:05.032+01:00</updated><title type='text'>Create a new user via command line</title><content type='html'>To create a user: &lt;br /&gt;$ sudo /System/Library/ServerSetup/serversetup -createUser fullname &lt;br /&gt;shortname password &lt;br /&gt;The name, short name, and password must be typed in the order shown. If the full &lt;br /&gt;name includes spaces, type it in quotes. &lt;br /&gt;The command displays a 1 if the full name or short name is already in use. &lt;br /&gt;&lt;br /&gt;To create a user with a specific UID: &lt;br /&gt;$ sudo /System/Library/ServerSetup/serversetup -createUserWithID &lt;br /&gt;fullname shortname password userid &lt;br /&gt;The name, short name, password, and UID must be typed in the order shown. If the full &lt;br /&gt;name includes spaces, type it in quotes. &lt;br /&gt;The command displays a 1 if the full name, short name, or UID is already in use or if the &lt;br /&gt;UID you specified is less than 100. &lt;br /&gt;&lt;br /&gt;To create a user with a specific UID and home directory: &lt;br /&gt;$ sudo /System/Library/ServerSetup/serversetup -createUserWithIDIP &lt;br /&gt;fullname shortname password userid homedirpath &lt;br /&gt;The name, short name, password, and UID must be typed in the order shown. If the full &lt;br /&gt;name includes spaces, type it in quotes.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2375858330500735826-1434363068533535774?l=osxadmin.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://osxadmin.blogspot.com/feeds/1434363068533535774/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2375858330500735826&amp;postID=1434363068533535774' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2375858330500735826/posts/default/1434363068533535774'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2375858330500735826/posts/default/1434363068533535774'/><link rel='alternate' type='text/html' href='http://osxadmin.blogspot.com/2007/03/create-new-via-command-line-user.html' title='Create a new user via command line'/><author><name>macadmin</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2375858330500735826.post-905586699712081925</id><published>2007-03-05T10:32:00.001+01:00</published><updated>2007-03-05T10:32:59.684+01:00</updated><title type='text'>Backup a file....</title><content type='html'>sudo cp /etc/sudoers /etc/sudoers.`date +%Y%m%d_%H%M%S`&lt;br /&gt;This will create a file name like this /etc/sudoers.20051025_115428 which has not only the date of when you backed up this file, but also the time - useful if you're doing many revisions on one file in a day!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2375858330500735826-905586699712081925?l=osxadmin.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://osxadmin.blogspot.com/feeds/905586699712081925/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2375858330500735826&amp;postID=905586699712081925' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2375858330500735826/posts/default/905586699712081925'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2375858330500735826/posts/default/905586699712081925'/><link rel='alternate' type='text/html' href='http://osxadmin.blogspot.com/2007/03/backup-file.html' title='Backup a file....'/><author><name>macadmin</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2375858330500735826.post-4533527902488520843</id><published>2007-03-05T10:22:00.001+01:00</published><updated>2007-03-05T10:26:07.129+01:00</updated><title type='text'>No Startup Sound</title><content type='html'>sudo nvram SystemAudioVolume=" "&lt;br /&gt;&lt;br /&gt;Seems to use ASCII character values from 32 upwards to represent the different volumes - the default is "{" which is quite loud..&lt;br /&gt;&lt;br /&gt;to restore default behaviour :&lt;br /&gt;&lt;br /&gt;sudo nvram -d SystemAudioVolume&lt;br /&gt;&lt;br /&gt;tip found at:&lt;br /&gt;http://forum.onmac.net/archive/index.php/t-507.html&lt;br /&gt;&lt;br /&gt;The MacBook I tried this on however does not seem to do as it should.&lt;br /&gt;After a reboot the value of SystemAudioVolume seems to get set back to 'w'...&lt;br /&gt;&lt;br /&gt;Oh well, I'll just keep on using 'StartupSound.prefPane' found here:&lt;br /&gt;http://www5e.biglobe.ne.jp/~arcana/StartupSound/index.en.html&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2375858330500735826-4533527902488520843?l=osxadmin.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://osxadmin.blogspot.com/feeds/4533527902488520843/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2375858330500735826&amp;postID=4533527902488520843' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2375858330500735826/posts/default/4533527902488520843'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2375858330500735826/posts/default/4533527902488520843'/><link rel='alternate' type='text/html' href='http://osxadmin.blogspot.com/2007/03/no-startup-sound.html' title='No Startup Sound'/><author><name>macadmin</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2375858330500735826.post-6661539802403674715</id><published>2007-03-05T10:05:00.000+01:00</published><updated>2007-03-05T10:07:34.530+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='os x'/><category scheme='http://www.blogger.com/atom/ns#' term='mac'/><title type='text'>Getting started...</title><content type='html'>I have been using the internet for years to find solutions to my problems.&lt;br /&gt;Now I think the time has come for me to publish my knowledge as well so that others with similar problems might profit from my experience.&lt;br /&gt;&lt;br /&gt;So instead of writing down my stuff  for my own records I will now write them down here so that others might profit from them as well...&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2375858330500735826-6661539802403674715?l=osxadmin.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://osxadmin.blogspot.com/feeds/6661539802403674715/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2375858330500735826&amp;postID=6661539802403674715' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2375858330500735826/posts/default/6661539802403674715'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2375858330500735826/posts/default/6661539802403674715'/><link rel='alternate' type='text/html' href='http://osxadmin.blogspot.com/2007/03/getting-started.html' title='Getting started...'/><author><name>macadmin</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>
