From crank at pushhere.com Wed Aug 1 07:57:08 2007 From: crank at pushhere.com (Chris Rank) Date: Wed Aug 1 08:20:57 2007 Subject: Sending out disclaimer on outgoing SMTP Message-ID: <99D1C8E5-0782-4C7B-9639-0D62BCFA68A8@pushhere.com> Hey all, I am attempting to add a disclaimer to all outgoing email coming off of a X Server running the postfix/amavisd/cyrus package and am running into trouble getting it to work. I have decided to use altermime to do the actual heavy lifting here, and I am attempting to call it out of amavisd. I have attached to actual syntax I am attempting to use in amavisd. When I put this into the /etc/amavisd.conf file and restart services, I am getting failures that the SMTP server couldn't connect to 10024 i.e. amavisd. Anyone have any ideas. By the way, I really don't need to get into a larger discussion about if disclaimer text should be added...yadda yadda yadda...I am familiar with the stupid disclaimer website, etc. This is being used primarily as a way to force a company wide signature since Mail.app is not scriptable in that way. <==========BEGIN AMAVISD CONF ADDITION=======> $altermime = '/usr/bin/altermime'; @altermime_args_disclaimer = qw(--verbose --disclaimer=/etc/postfix/disclaimer.txt); $defang_maps_by_ccat{+CC_CATCHALL} = [ 'disclaimer' ]; @mynetworks = qw( ... ); $policy_bank{'MYNETS'} = { # mail originating from our networks allow_disclaimers => 1, } $interface_policy{'10026'} = 'OUTGOING_FILTER'; $policy_bank{'OUTGOING_FILTER'} = { # mail originating from the Internal network bypass_spam_checks_maps => [1], # don't spam-check outgoing mail bypass_banned_checks_maps => [0], # don't banned-check outgoing mail smtpd_discard_ehlo_keywords => ['8BITMIME'], allow_disclaimers => 1, # enables disclaimer insertion if available virus_admin_maps => ["virusalert\@$mydomain"], spam_admin_maps => ["virusalert\@$mydomain"], warnbadhsender => 1, forward_method => 'smtp:[127.0.0.1]:10025', # forward to 10027 }; From crank at pushhere.com Wed Aug 1 08:00:06 2007 From: crank at pushhere.com (Chris Rank) Date: Wed Aug 1 08:21:00 2007 Subject: SMTP disclaimer add Message-ID: Hey all, I am attempting to add a disclaimer to all outgoing email coming off of a X Server running the postfix/amavisd/cyrus package and am running into trouble getting it to work. I have decided to use altermime to do the actual heavy lifting here, and I am attempting to call it out of amavisd. I have attached to actual syntax I am attempting to use in amavisd. When I put this into the /etc/amavisd.conf file and restart services, I am getting failures that the SMTP server couldn't connect to 10024 i.e. amavisd. Anyone have any ideas. By the way, I really don't need to get into a larger discussion about if disclaimer text should be added...yadda yadda yadda...I am familiar with the stupid disclaimer website, etc. This is being used primarily as a way to force a company wide signature since Mail.app is not scriptable in that way. <==========BEGIN AMAVISD CONF ADDITION=======> $altermime = '/usr/bin/altermime'; @altermime_args_disclaimer = qw(--verbose --disclaimer=/etc/postfix/disclaimer.txt); $defang_maps_by_ccat{+CC_CATCHALL} = [ 'disclaimer' ]; @mynetworks = qw( ... ); $policy_bank{'MYNETS'} = { # mail originating from our networks allow_disclaimers => 1, } $interface_policy{'10026'} = 'OUTGOING_FILTER'; $policy_bank{'OUTGOING_FILTER'} = { # mail originating from the Internal network bypass_spam_checks_maps => [1], # don't spam-check outgoing mail bypass_banned_checks_maps => [0], # don't banned-check outgoing mail smtpd_discard_ehlo_keywords => ['8BITMIME'], allow_disclaimers => 1, # enables disclaimer insertion if available virus_admin_maps => ["virusalert\@$mydomain"], spam_admin_maps => ["virusalert\@$mydomain"], warnbadhsender => 1, forward_method => 'smtp:[127.0.0.1]:10025', # forward to 10027 }; From jerry.levan at eku.edu Wed Aug 1 13:55:36 2007 From: jerry.levan at eku.edu (Jerry LeVan) Date: Wed Aug 1 13:55:46 2007 Subject: sending mail on lan... Message-ID: Grrr, I can send mail all over the internet but I can't send mail to the machines on the local lan :( ( well I can do it with telnet...) I have machines say mbp and server and postfix running on both the machines. If I am on mbp and want to send mail to jerry@server how should I config Postfix and /etc/hosts to deal with "lan" mail, and conversely... My machines don't belong to a "real" domain just about everything I have tried seems to die in the address lookup for the server I am sending from. Any hints appreciated :) Jerry PS: I got a mac mini monday and so far have moved Subversion, Postgresql, and Moin to the "server". The mini is very quiet and certainly fast enough for a simple server. I think Apple ought to pitch the rascal as an easy to use home/small office server. I use SuperDuper for nightly backups. From shoop at iwiring.net Wed Aug 1 14:28:39 2007 From: shoop at iwiring.net (Dan Shoop) Date: Wed Aug 1 14:28:47 2007 Subject: sending mail on lan... In-Reply-To: References: Message-ID: <483A5B6A-D984-4D17-810B-BDEF9C844175@iwiring.net> On Aug 1, 2007, at 4:55 PM, Jerry LeVan wrote: > Grrr, > > I can send mail all over the internet but I can't send > mail to the machines on the local lan :( You don't send mail to machines on the lan you send mail to the server where those machines pick up their mail. That is most lan machines aren't MTAs and MDAs. -dhan ------------------------------------------------------------------------ Dan Shoop Tactical Operations Center: 1.866.901.8787 (24x7) Ph: 714.363.1174 AIM: iWiring From jerry.levan at eku.edu Wed Aug 1 14:38:25 2007 From: jerry.levan at eku.edu (Jerry LeVan) Date: Wed Aug 1 14:38:32 2007 Subject: sending mail on lan... In-Reply-To: <483A5B6A-D984-4D17-810B-BDEF9C844175@iwiring.net> References: <483A5B6A-D984-4D17-810B-BDEF9C844175@iwiring.net> Message-ID: <3133F5FD-DA49-425C-A06F-395D5032AD6B@eku.edu> On Aug 1, 2007, at 5:28 PM, Dan Shoop wrote: > > On Aug 1, 2007, at 4:55 PM, Jerry LeVan wrote: > >> Grrr, >> >> I can send mail all over the internet but I can't send >> mail to the machines on the local lan :( > > You don't send mail to machines on the lan you send mail to the > server where those machines pick up their mail. That is most lan > machines aren't MTAs and MDAs. > > -dhan That sounds wonky...I am running postfix on both machines...there has to be some way to send mail directly from one machine to the other... Once upon a time, many years ago we had a bunch of AT&T machines and I was able to send mail by specifying an actual ip address. "Mail" does not seem to like that ;( Jerry From andrewo at liveworld.com Wed Aug 1 14:45:49 2007 From: andrewo at liveworld.com (Andrew Oliver) Date: Wed Aug 1 15:15:20 2007 Subject: sending mail on lan... In-Reply-To: <3133F5FD-DA49-425C-A06F-395D5032AD6B@eku.edu> References: <483A5B6A-D984-4D17-810B-BDEF9C844175@iwiring.net> <3133F5FD-DA49-425C-A06F-395D5032AD6B@eku.edu> Message-ID: <542FCCF2-0717-4BC0-B68D-9BFB80F76DF6@liveworld.com> On Aug 1, 2007, at 2:38 PM, Jerry LeVan wrote: > > On Aug 1, 2007, at 5:28 PM, Dan Shoop wrote: > >> >> On Aug 1, 2007, at 4:55 PM, Jerry LeVan wrote: >> >> >>> Grrr, >> >>> >> >>> I can send mail all over the internet but I can't send >> >>> mail to the machines on the local lan :( >> >> You don't send mail to machines on the lan you send mail to the >> server where those machines pick up their mail. That is most lan >> machines aren't MTAs and MDAs. >> >> -dhan > > That sounds wonky...I am running postfix on both machines...there > has to > be some way to send mail directly from one machine to the other... > > Once upon a time, many years ago we had a bunch of AT&T machines and I > was able to send mail by specifying an actual ip address. "Mail" does > not seem to like that ;( I think that's the point - sending mail directly to an IP address is a non-scalable solution. Once the internet expanded past a few dozen machines this became apparent. That said, you can do it - the SMTP standards call for enclosing the IP address in brackets, so address your mail to: user@[192.168.1.2] and it'll go to that server. Still not sure why you don't want a central solution, though...? Andrew :) From jerry.levan at eku.edu Wed Aug 1 15:33:50 2007 From: jerry.levan at eku.edu (Jerry LeVan) Date: Wed Aug 1 15:33:58 2007 Subject: sending mail on lan... In-Reply-To: <561B1C81-85C9-455C-BA29-9EC1FA92F385@cslab.uwlax.edu> References: <483A5B6A-D984-4D17-810B-BDEF9C844175@iwiring.net> <3133F5FD-DA49-425C-A06F-395D5032AD6B@eku.edu> <561B1C81-85C9-455C-BA29-9EC1FA92F385@cslab.uwlax.edu> Message-ID: On Aug 1, 2007, at 5:48 PM, Milo Velimirovic wrote: > > On Aug 1, 2007, at 4:38 PM, Jerry LeVan wrote: > >> >> On Aug 1, 2007, at 5:28 PM, Dan Shoop wrote: >> >>> >>> On Aug 1, 2007, at 4:55 PM, Jerry LeVan wrote: >>> >>>> Grrr, >>>> >>>> I can send mail all over the internet but I can't send >>>> mail to the machines on the local lan :( >>> >>> You don't send mail to machines on the lan you send mail to the >>> server where those machines pick up their mail. That is most lan >>> machines aren't MTAs and MDAs. >>> >>> -dhan >> >> That sounds wonky...I am running postfix on both machines...there >> has to >> be some way to send mail directly from one machine to the other... >> >> Once upon a time, many years ago we had a bunch of AT&T machines >> and I >> was able to send mail by specifying an actual ip address. "Mail" does >> not seem to like that ;( > > Dan S. is describing the normal practice of what one does these > days. Typically you have one copmuter designated as a mail server. > It runs Postfix as an MTA/MDA and you set up your client computers > to talk to it... > > to do what you wnat to do (I think) you need to have both computers > know each other's names and IPs in the hosts file (or in their > netinfo machines directory if you haven't enabled Flat files in > Directory ACcess) > > In the Postfix config files you tell it what domains it accepts > mail for, that is, whatever constitutes a valid Right-Hand-Side of > an e-mail address. > > After that it should just work. > > I remember the bad old days of doing what you're describing with > Sendmail on NeXTs... much munching of sendmail config files... ick. > > - Milo > Well I told postfix that localdomain was ok and entered the info into /etc/hosts A fragment: 192.168.1.40 laser 192.168.1.50 vpc 192.168.1.60 jerrypc 192.168.1.70 linuxbox 192.168.1.80 mpb.localdomain mpb 192.168.1.90 server.localdomain server ::1 localhost when I send mail to jerry@server.localdomain the mail log shows.. Aug 1 18:23:02 mbp postfix/qmgr[3388]: C20E5145C25: from=, size=548, nrcpt=1 (queue active) Aug 1 18:23:02 mbp postfix/smtp[3461]: C20E5145C25: to=, orig_to=, relay=none, delay=0, status=bounced (Host or domain name not found. Name service error for name=server.localdomain type=A: Host not found) It looks like postfix is not using the hosts file. Is there any way to tell it to try hosts first then other thingees? Jerry From andrewo at liveworld.com Wed Aug 1 15:44:13 2007 From: andrewo at liveworld.com (Andrew Oliver) Date: Wed Aug 1 15:44:23 2007 Subject: sending mail on lan... In-Reply-To: References: <483A5B6A-D984-4D17-810B-BDEF9C844175@iwiring.net> <3133F5FD-DA49-425C-A06F-395D5032AD6B@eku.edu> <561B1C81-85C9-455C-BA29-9EC1FA92F385@cslab.uwlax.edu> Message-ID: On Aug 1, 2007, at 3:33 PM, Jerry LeVan wrote: > Well I told postfix that localdomain was ok and entered the info > into /etc/hosts > > A fragment: > 192.168.1.40 laser > 192.168.1.50 vpc > 192.168.1.60 jerrypc > 192.168.1.70 linuxbox > 192.168.1.80 mpb.localdomain mpb > 192.168.1.90 server.localdomain server > ::1 localhost > > when I send mail to jerry@server.localdomain the mail log shows.. > Aug 1 18:23:02 mbp postfix/qmgr[3388]: C20E5145C25: from= >, size=548, nrcpt=1 (queue active) > Aug 1 18:23:02 mbp postfix/smtp[3461]: C20E5145C25: to= >, orig_to=, relay=none, delay=0, status=bounced (Host > or domain name not found. Name service error for > name=server.localdomain type=A: Host not found) > > It looks like postfix is not using the hosts file. > > Is there any way to tell it to try hosts first then other thingees? This is not a hosts file issue, per se. Since you addressed the mail to 'jerry@server.localdomain' it performs a *MX lookup* on 'server.localdomain', not a simple name lookup - it's looking for the mail server responsible for server.localdomain, and that's what's failing. You should be able to get away with addressing the mail to: jerry@[server.localdomain] which tells the MTA to bypass the MX lookup and send to the specified host. The alternative is to setup DNS so that you can set an MX record for server.localdomain (and another for mbp.localdomain). Andrew :) From nat at mulle-kybernetik.com Thu Aug 2 05:14:59 2007 From: nat at mulle-kybernetik.com (Nat!) Date: Thu Aug 2 05:21:48 2007 Subject: Is Netinfo unstable in 10.4.9 or .10 ? Message-ID: <2042FF54-19F7-4A03-B10D-F2D4C2939B7B@mulle-kybernetik.com> I have a few MacMinis that I administrate and very unfortunately lately from time to time, about once a week or so, the machine _can_ be pinged but otherwise just refuses to serve. When I look into the system log after reboot, I see messages like: Aug 2 10:19:07 minihost DirectoryService[52]: SafeOpen::Call to netinfo_open was with argument domain name: .. and lasted 3 seconds while timeout was 3 Aug 2 10:19:17 minihost DirectoryService[52]: NetInfo connection failed for server 127.0.0.1/local Aug 2 10:19:19 minihost DirectoryService[52]: NetInfo connection failed for server 127.0.0.1/local Aug 2 10:19:21 minihost DirectoryService[52]: NetInfo connection failed for server 127.0.0.1/local Aug 2 10:29:23 minihost DirectoryService[52]: NetInfo connection failed for server 127.0.0.1/local Aug 2 10:29:25 minihost DirectoryService[52]: NetInfo connection failed for server 127.0.0.1/local Aug 2 10:45:19 minihost lookupd[122]: NetInfo connection failed for server 127.0.0.1/local Aug 2 10:45:19 minihost lookupd[122]: ni_statistics: Communication failure Aug 2 10:47:04 minihost lookupd[122]: NetInfo connection failed for server 127.0.0.1/local Aug 2 10:47:04 minihost lookupd[122]: ni_statistics: Communication failure Aug 2 10:48:49 minihost lookupd[122]: NetInfo connection failed for server 127.0.0.1/local Aug 2 10:49:19 minihost DirectoryService[52]: NetInfo connection failed for server 127.0.0.1/local Aug 2 10:50:44 minihost DirectoryService[52]: NetInfo connection failed for server 127.0.0.1/local Aug 2 11:10:39 minihost DirectoryService[52]: NetInfo connection failed for server 127.0.0.1/local After a reboot everything may work fine again for a few days. There is nothing special with these Minis. The Netinfo is only used for its default OSX purposes. Nameservers are ISP nameservers. Looking at the log it seems that the netinfo daemon just likes to go on strike occasionally. Thanks for any hints. Ciao Nat! ------------------------------------------------------ As an ex-Atari employee, who has known both high income and protracted unemployment, I can assure you that nobody should enter programming for the money. -- Chris Crawford From jerry.levan at eku.edu Thu Aug 2 14:02:30 2007 From: jerry.levan at eku.edu (Jerry LeVan) Date: Thu Aug 2 14:02:43 2007 Subject: sending mail on lan... Message-ID: <6C27C777-1253-4B97-B93D-E58B34CA14CD@eku.edu> Uggh, Yesterday I screwed up the postfix config so bad that I could not even send my to myself... Fortunately I was able to recover the error. By setting: mynetworks = 192.168.1.0/28, 127.0.0.0/8 I was able to send to other machines on my lan by using strings like user@[192.168.1.xxx] as the address. It appears that if a "name" is used ie jerry@server.localdomain that a name lookup occurs an one gets an error on a "A" address lookup. I enabled Flat Files in Directory Access, but nothing changed... I peeked at netinfo and thought that perhaps adding a "machine" entry might help, but could not figure out the "serves" entry. Dan Shoop suggested reading the lookupd man page, but found it to be relatively opaque... My current strategy is to have reports send to me on the machines where the report is generated I have installed qpopper on the macs and on my main work machine I have Mail accounts that look for mail for me on the other machines.... The linux box runs smtp and has a "caching name server" ( of which I know nothing...) and does not have any problem sending mail to the other machines on the lan. It is interesting that the host command fails for linux and macs on the lan. So, is there something I can do with Directory Access, NetInfo and Lookupd so that I don't get lookup errors in the mail system for machines on the lan? Jerry From jerry.levan at eku.edu Fri Aug 3 09:03:22 2007 From: jerry.levan at eku.edu (Jerry LeVan) Date: Fri Aug 3 09:03:28 2007 Subject: sending mail on lan... Message-ID: <7A393CDA-76DD-4C0A-A6F9-BD3085DDC225@eku.edu> Hmmm, Running lookupd in interactive mode shows that it knows all about the machines on the lan that are listed in the /etc/hosts file. It appears to me that I really need a "caching nameserver" on the machines. Apple does supply named and a named.conf file in /etc and has a launchd file to turn the rascal on. There are more config files in /var/named. Can some kind soul offer some guidance on how to add the machines on my subnet to the appropriate config files. I noticed in the sharing setup that the panel insists that ".local" be appended to the name... I modfied the /etc/hosts file to use "local" instead of "localdomain" and set the mydomain entry in the postfix.conf file from localdomain to local and reloaded postfix. Sending mail to server.local now gets and additional MX error Aug 3 09:48:55 mbp postfix/qmgr[3040]: 5C522148AFF: from=, size=293, nrcpt=1 (queue active) Aug 3 09:48:59 mbp postfix/smtp[3041]: 5C522148AFF: to=, relay=none, delay=4, status=deferred (Host or domain name not found. Name service error for name=server.local type=MX: Host not found, try again) if I name the domain "localdomain I get an error like: Aug 2 20:42:41 mbp postfix/qmgr[5394]: CD1A11475A5: from=, size=314, nrcpt=1 (queue active) Aug 2 20:42:41 mbp postfix/smtp[5883]: CD1A11475A5: to=, orig_to=, relay=none, delay=0, status=bounced (Host or domain name not found. Name service error for name=server.localdomain type=A: Host not found) Aug 2 20:42:41 mbp postfix/cleanup[5881]: EB8AB1475A7: message- id=<20070803004241.EB8AB1475A7@mbp.localdomain> I suspect I might have to add MX records also.... Thanks for any info Jerry From jfrancis at cca.k12.ia.us Fri Aug 3 11:50:41 2007 From: jfrancis at cca.k12.ia.us (Joe Francis) Date: Fri Aug 3 11:57:03 2007 Subject: Admin see volumes not share points Message-ID: Hello all- I know there is a way to set this but I do not remember. I have just installed a new Xserve. When I log in as an admin, I see my share points, but I want to see volumes. I know there is an article covering this. Does anyone remember how to do this or the article that discusses this? Thanks Joe -- Joe Francis Technology Director Clear Creek Amana Schools 319-430-6822 No trees were killed in the sending of this message. However, a large number of electrons were terribly inconvenienced. From jerry.levan at eku.edu Fri Aug 3 11:59:44 2007 From: jerry.levan at eku.edu (Jerry LeVan) Date: Fri Aug 3 11:59:53 2007 Subject: sending mail on lan... References: Message-ID: <01930A0A-5356-4F96-BE4A-0402397D77B6@eku.edu> hi all, I misspoke yesterday when I said my fedora box used a caching nameserver... What it does do is use a control file nsswitch.conf which can be used to give a lookup order for the c library when looking up (among other things) host to ip-addresses translations. An entry in this file that controls dns looks like hosts: file dns This tells the C library to check /etc/hosts before trying dns which is why (I think) that smtp can send mail to the other hosts on my lan... I don't think that the lib C on Mac has this capability... Jerry From patgmac at gmail.com Fri Aug 3 12:13:56 2007 From: patgmac at gmail.com (Patrick Gallagher) Date: Fri Aug 3 12:14:04 2007 Subject: Admin see volumes not share points In-Reply-To: References: Message-ID: <1fffb2dc0708031213i28cb4584o7266f2f29df09b8b@mail.gmail.com> On 8/3/07, Joe Francis wrote: > > Hello all- > I know there is a way to set this but I do not remember. > I have just installed a new Xserve. When I log in as an admin, I see my > share points, but I want to see volumes. I know there is an article > covering > this. Does anyone remember how to do this or the article that discusses > this? http://www.afp548.com/article.php?story=20041027091658897 Article is for 10.3 but I just confirmed it works in 10.4. -- Patrick Gallagher Emory College ACSA, ACTC, ACHDS, A+, Network+, RHCT http://patgmac.blogspot.com From shoop at iwiring.net Sat Aug 4 12:49:19 2007 From: shoop at iwiring.net (Dan Shoop) Date: Sat Aug 4 12:49:27 2007 Subject: sending mail on lan... In-Reply-To: <6C27C777-1253-4B97-B93D-E58B34CA14CD@eku.edu> References: <6C27C777-1253-4B97-B93D-E58B34CA14CD@eku.edu> Message-ID: <5730C184-1817-4531-81CE-67536C6B1DB4@iwiring.net> On Aug 2, 2007, at 5:02 PM, Jerry LeVan wrote: > Uggh, > > Yesterday I screwed up the postfix config so bad that I could > not even send my to myself... > > Fortunately I was able to recover the error. > > By setting: > mynetworks = 192.168.1.0/28, 127.0.0.0/8 > > I was able to send to other machines on my lan > by using strings like > > user@[192.168.1.xxx] > > as the address. > That would be the expected and documented behavior. Have you considered reading the postfix docs or better yet the O'Reilly Postfix "Dove" book??????? See http://www.oreilly.com/catalog/postfix/ > It appears that if a "name" is used ie jerry@server.localdomain > that a name lookup occurs an one gets an error on a "A" address > lookup. Actually it fails b/c there is no A record OR MX record for the domain server.localdomain. This also would be expected if you had no DNS for these hosts. Mail requires FQDNs. Read the RFC. > I enabled Flat Files in Directory Access, but nothing changed... Because mail requires DNS and FQDNs. > I peeked at netinfo and thought that perhaps adding a "machine" > entry might help, but could not figure out the "serves" entry. But mail uses DNS and FQDNs. > Dan Shoop suggested reading the lookupd man page, but found it > to be relatively opaque... Then you should consult your sysadmin. > The linux box runs smtp and has a "caching name server" ( of which > I know nothing...) and does not have any problem sending mail to > the other machines on the lan. Then you should consult your hostmaster. > It is interesting that the host command fails for linux and macs > on the lan. Because you don't have DNS and FQDNs?? > So, is there something I can do with Directory Access, NetInfo and > Lookupd so that I don't get lookup errors in the mail system for > machines on the lan? No, that is an invalid conclusion. It fails b/c you have neither FQDNs or DNS. -dhan ------------------------------------------------------------------------ Dan Shoop Tactical Operations Center: 1.866.901.8787 (24x7) Ph: 714.363.1174 AIM: iWiring From shoop at iwiring.net Sat Aug 4 13:09:40 2007 From: shoop at iwiring.net (Dan Shoop) Date: Sat Aug 4 13:09:47 2007 Subject: sending mail on lan... In-Reply-To: <01930A0A-5356-4F96-BE4A-0402397D77B6@eku.edu> References: <01930A0A-5356-4F96-BE4A-0402397D77B6@eku.edu> Message-ID: <23102093-B842-4DE8-85C1-1CDA29ADB2AF@iwiring.net> On Aug 3, 2007, at 2:59 PM, Jerry LeVan wrote: > hi all, > > I misspoke yesterday when I said my fedora box used a caching > nameserver... > > What it does do is use a control file nsswitch.conf which can be used > to give a lookup order for the c library when looking up (among > other things) > host to ip-addresses translations. This is somewhat similar to what lookupd does on OS X. > I don't think that the lib C on Mac has this capability... Because this is handled by lookupd. -dhan ------------------------------------------------------------------------ Dan Shoop Tactical Operations Center: 1.866.901.8787 (24x7) Ph: 714.363.1174 AIM: iWiring From shoop at iwiring.net Sat Aug 4 13:20:19 2007 From: shoop at iwiring.net (Dan Shoop) Date: Sat Aug 4 13:20:26 2007 Subject: sending mail on lan... In-Reply-To: <7A393CDA-76DD-4C0A-A6F9-BD3085DDC225@eku.edu> References: <7A393CDA-76DD-4C0A-A6F9-BD3085DDC225@eku.edu> Message-ID: <88CBF851-BDB9-4FC0-8925-E546F456D19D@iwiring.net> On Aug 3, 2007, at 12:03 PM, Jerry LeVan wrote: > Hmmm, > > Running lookupd in interactive mode shows that it knows all about > the machines on the lan that are listed in the /etc/hosts file. > > It appears to me that I really need a "caching nameserver" on the > machines. No, you need FQDNs if you plan on sending mail with domain names. > Apple does supply named and a named.conf file in /etc and has a > launchd file > to turn the rascal on. > > There are more config files in /var/named. > > Can some kind soul offer some guidance on how to add the machines on > my subnet to the appropriate config files. If you aren't well versed in DNS then this is not something that you should be fooling around with since it can impact more than just your machine(s). Consult your hostmaster for your zone. That said, both the "Grasshopper" and "Opossum" books are recommended from O'Reilly, the former being the canonical tome and the latter providing excellent recipes for deployments. They are "DNS and BIND" and "The DNS Cookbook" respectively. There's also a very good chapter in "Essential Systems Administration" that covers DNS /very/ well. > I noticed in the sharing setup that the panel insists that ".local" > be appended to the name... No, this is Bonjour. This is the mDNS name for the machine. > I modfied the /etc/hosts file to use "local" instead of "localdomain" > and set the mydomain entry in the postfix.conf file from localdomain > to local and reloaded postfix. :sigh: That is a huge mistake. .local is already in use by Bonjour. DO NOT do this. > Sending mail to server.local now gets and additional MX error > > Aug 3 09:48:55 mbp postfix/qmgr[3040]: 5C522148AFF: > from=, size=293, nrcpt=1 (queue active) > Aug 3 09:48:59 mbp postfix/smtp[3041]: 5C522148AFF: > to=, relay=none, delay=4, > status=deferred (Host or domain name not found. Name service error > for name=server.local type=MX: Host not found, try again) > > if I name the domain "localdomain I get an error like: > Aug 2 20:42:41 mbp postfix/qmgr[5394]: CD1A11475A5: > from=, size=314, nrcpt=1 (queue active) > Aug 2 20:42:41 mbp postfix/smtp[5883]: CD1A11475A5: > to=, orig_to=, relay=none, > delay=0, status=bounced (Host or domain name not found. Name > service error for name=server.localdomain type=A: Host not found) > Aug 2 20:42:41 mbp postfix/cleanup[5881]: EB8AB1475A7: message- > id=<20070803004241.EB8AB1475A7@mbp.localdomain> > > I suspect I might have to add MX records also.... I think your problem here is that you really don't have an understanding of how mail, MTAs specifically, operates, nor how it relates to DNS. There's plenty of good reading online that you should consult, and the chapters in "Essential Systems Administration", the "armadillo" book has a very good overview. Consider consulting your postmaster and reading this book. Once you understand how mail operates, then that would be a good time to start asking this list for more specific questions. But right now there's a whole $h!tload of backgrond stuff you need to know that is ill-suited for the list since there are better tutorials elsewhere and lists don't lend themselves to schooling. -dhan ------------------------------------------------------------------------ Dan Shoop Tactical Operations Center: 1.866.901.8787 (24x7) Ph: 714.363.1174 AIM: iWiring From hexstar at gmail.com Sat Aug 4 14:37:11 2007 From: hexstar at gmail.com (Hex Star) Date: Sat Aug 4 14:37:13 2007 Subject: sending mail on lan... In-Reply-To: <88CBF851-BDB9-4FC0-8925-E546F456D19D@iwiring.net> References: <7A393CDA-76DD-4C0A-A6F9-BD3085DDC225@eku.edu> <88CBF851-BDB9-4FC0-8925-E546F456D19D@iwiring.net> Message-ID: <5dc6fd9e0708041437k5bb47860t24c49e97beeb43c4@mail.gmail.com> I'm very interested in those books you mentioned Dan but Amazon doesn't appear to have them ( http://amazon.com/s/ref=nb_ss_gw/102-3233984-2545708?initialSearch=1&url=search-alias%3Dstripbooks&field-keywords=Grasshopper+o%27reilly&Go.x=0&Go.y=0&Go=Go)??? Where can I find and buy the books you've mentioned? Thanks! :) From roodavis at mac.com Sun Aug 5 16:47:58 2007 From: roodavis at mac.com (Rick Davis) Date: Sun Aug 5 16:48:03 2007 Subject: sending mail on lan... In-Reply-To: <20070805190003.C08AB1A1401@forums.omnigroup.com> References: <20070805190003.C08AB1A1401@forums.omnigroup.com> Message-ID: <10E2EFE6-ACA4-4451-88E6-63C52628D3DB@mac.com> On Aug 5, 2007, at 3:00 PM, Hex Star wrote: > Date: Sat, 4 Aug 2007 14:37:11 -0700 > From: "Hex Star" > Subject: Re: sending mail on lan... > To: "Dan Shoop" , macosx-admin@omnigroup.com > Message-ID: > <5dc6fd9e0708041437k5bb47860t24c49e97beeb43c4@mail.gmail.com> > Content-Type: text/plain; charset=ISO-8859-1 > > I'm very interested in those books you mentioned Dan but Amazon > doesn't > appear to have them ( > http://amazon.com/s/ref=nb_ss_gw/102-3233984-2545708? > initialSearch=1&url=search-alias%3Dstripbooks&field- > keywords=Grasshopper+o%27reilly&Go.x=0&Go.y=0&Go=Go)??? > Where can I find and buy the books you've mentioned? Thanks! :) > Okay. No offense to Hex, but this one had me rotflmao...searching for grasshopper...LOL. Do a search for "DNS and Bind" and the first two hits are the books you are looking for. All O'Reilly books have an animal on the cover. These two happen to be the Grasshopper and Opossum. Essential System Administration has an armadillo. LDAP System Administration has a mink. REALbasic has a Greyhound. Applescript has a Boston Terrier. I could go on as I have a veritable zoo on my bookshelf, but I think you get the gist. Rick Davis From PERBIX at lmsd.org Mon Aug 6 08:32:34 2007 From: PERBIX at lmsd.org (Perbix, Michael) Date: Mon Aug 6 08:42:17 2007 Subject: AD plug-in contacting Domain Controllers Message-ID: <45440A5F9E1FC84C8224429C82ACDCED022CDC86@MSCADMIN.lmsd.org> Does anyone know how OSX contacts the Domain Controllers when configured for AD. On the Windows side, the DC's are contacted at least once a month, and a timestamp is indicated on the computer account of last time the computer "checked in". Does OSX work the same way? What we would like to do is cut down on the amount of "rogue" computer entries in AD that have come about from laptops being renamed and re-imaged. What happens is the old computer account remains and then a new account is created under the new name. What I would like to do is 2 fold. I would like to look at the AD computer accounts by DATE and delete older ones that have not been updated in a few months time. Also, I would like to script something so that on imaging a pre-action script can check the AD for the existing computer name, MAC address, or new name, then delete the old account if needed. If the name is the same, then there is no issue, if the name is NOT the same then it should delete the old account before imaging. Can I search AD for computer account name AND search via MAC address from OSX? I would asume the only time I need to delete a computer account is if the computer name is different than the account existing in AD...so the workflow would be like this... Look at old computer name in ready to be imaged HD if old name matches new name, do nothing If old name is different than new name, delete account under old name. Look at MAC address and search AD for any accounts containing that MAC if old name matches new name, do nothing if old name is different than new name, delete account under old name. REPEAT until no more matches found. This way, upon reimaging the AD will be cleaned up as you go. Now, I know that this should also be the Technicians duty, before imaging, to unbind and thereby removing the old account...etc...but if I can automate it in any way, I would like to. So to summarize... Does AD plugin contact AD DC's on a regular defined basis and update that time stamp? If so, how often? How do I search AD for computer account name and MAC address? Does anyone else address this situation with a mass number of OSX clients on a regular basis? Thank you. From jerry.levan at eku.edu Mon Aug 6 09:22:27 2007 From: jerry.levan at eku.edu (Jerry LeVan) Date: Mon Aug 6 09:22:35 2007 Subject: sending mail on lan... Solved! Message-ID: I am happy to report that "skynet" became self aware today and is name serving for my small net. [mbp:~]$ cat /var/named/skynet.zone $TTL 86400 $ORIGIN skynet. @ 1D IN SOA @ root ( 42 ; serial (d. adams) 3H ; refresh 15M ; retry 1W ; expiry 1D ) ; minimum 1D IN NS localhost 1D IN NS server localhost 1D IN A 127.0.0.1 server IN A 192.168.1.90 mbp IN A 192.168.1.80 linuxbox IN A 192.168.1.70 jerrypc IN A 192.168.1.60 macjerry IN A 192.168.1.10 laser IN A 192.168.1.40 router IN A 192.168.1.1 moreover: [mbp:~]$ mail -s"From mbp to server" jerry@server Mail from mbp to server machine . EOT gives on mbp Aug 6 11:36:33 mbp postfix/pickup[3338]: C6E4014FE2F: uid=501 from= Aug 6 11:36:33 mbp postfix/cleanup[3339]: C6E4014FE2F: message- id=<20070806153633.C6E4014FE2F@mbp.skynet> Aug 6 11:36:33 mbp postfix/qmgr[2418]: C6E4014FE2F: from=, size=333, nrcpt=1 (queue active) Aug 6 11:36:35 mbp postfix/smtp[3341]: C6E4014FE2F: to=, orig_to=, relay=server.skynet [192.168.1.90], delay=2, status=sent (250 Ok: queued as 0FA6EC989C) Aug 6 11:36:35 mbp postfix/qmgr[2418]: C6E4014FE2F: removed and on the target server Aug 6 11:37:23 server postfix/qmgr[294]: 0FA6EC989C: from=, size=514, nrcpt=1 (queue active) Aug 6 11:37:23 server postfix/local[295]: 0FA6EC989C: to=, relay=local, delay=2, status=sent (delivered to mailbox) Aug 6 11:37:23 server postfix/qmgr[294]: 0FA6EC989C: removed The /etc/named.conf needs a small tweak or two. The main change is to add the forwarders option and include the name servers provided by your isp in the options. in the controls directive the port number is incorrect rndc uses 953. running rndc-confgen will generate a key that can be used for rndc. I recommend doing a "tail -f /var/log/system.log" and manually starting named to make sure that there are no syntax errors in the configurations files and everything works as expected. Once stuff is working I was able to enable the nameserver at boot time by using "Lingon" ( a cool free app that allows one to manipulate the launcher startup items). One also need to tweek the main.cf of postfix to recognize the domain (skynet in this case) an allow users on the domain skynet to send mail to other machines on skynet. Another nice factoid is that I only takes a couple of clicks in the network setup preferences to go back to using the isp in case the server becomes unavailable. Here is my copy of /etc/named.conf: include "/etc/rndc.key"; // Declares control channels to be used by the rndc utility. // // It is recommended that 127.0.0.1 be the only address used. // This also allows non-privileged users on the local host to manage // your name server. // // Default controls // controls { inet 127.0.0.1 port 953 allow {any;} keys { "rndc-key"; }; }; options { directory "/var/named"; forwarders { 68.168.160.2; } ; /* * If there is a firewall between you and nameservers you want * to talk to, you might need to uncomment the query-source * directive below. Previous versions of BIND always asked * questions using port 53, but BIND 8.1 uses an unprivileged * port by default. */ // query-source address * port 53; }; // // a caching only nameserver config // zone "." IN { type hint; file "named.ca"; }; zone "skynet" IN { type master; file "skynet.zone"; allow-update { none; }; }; zone "0.0.127.in-addr.arpa" IN { type master; file "named.local"; allow-update { none; }; }; zone "1.168.192.in-addr.arpa" IN { type master ; file "db.192.168.1"; allow-update { none; }; }; logging { category default { _default_log; }; channel _default_log { file "/Library/Logs/named.log"; severity info; print-time yes; }; }; From newslists at autonomy.caltech.edu Mon Aug 6 16:01:51 2007 From: newslists at autonomy.caltech.edu (R.L. Grigg) Date: Mon Aug 6 16:01:55 2007 Subject: OSX 10.4.10 Sound prefs icon Message-ID: Just got around to upgrading the last of our Macbooks to 10.4.10 and now I get a odd icon in the sys prefs for the Sound on one Macbook. Old icon: -------------- next part -------------- New icon: -------------- next part -------------- Our other 10.4 10 systems have the 'old' icon. What gives? Maybe the Sound icon is missing and this is a generic icon? Russ From newslists at autonomy.caltech.edu Mon Aug 6 17:30:07 2007 From: newslists at autonomy.caltech.edu (R.L. Grigg) Date: Mon Aug 6 17:30:10 2007 Subject: OSX 10.4.10 Sound prefs icon In-Reply-To: References: Message-ID: <3F64C68A-1966-43F7-9AFC-6EA9A965E100@autonomy.caltech.edu> OK so who knew the list stripped images. The 'old icon' is the normal speaker image and the new icon is a wall switch sort of like on the Sys prefs icon but much bigger. Russ On Aug 6, 2007, at 4:01 PM, R.L. Grigg wrote: > Just got around to upgrading the last of our Macbooks to 10.4.10 > and now I get a odd icon in the sys prefs for the Sound on one > Macbook. > > Old icon: > > New icon: > > Our other 10.4 10 systems have the 'old' icon. What gives? Maybe > the Sound icon is missing and this is a generic icon? > Russ > > _______________________________________________ > MacOSX-admin mailing list > MacOSX-admin@omnigroup.com > http://www.omnigroup.com/mailman/listinfo/macosx-admin From newslists at autonomy.caltech.edu Mon Aug 6 18:47:11 2007 From: newslists at autonomy.caltech.edu (R.L. Grigg) Date: Mon Aug 6 18:47:20 2007 Subject: OSX and DHCP server? Message-ID: I'm trying to connect an ethernet-enabled device to a OSX Macbook w/ RJ45 cable. and the device spec says it will configure itself if there's a DHCP server on the LAN, shouldn't this work? The device (a temp sensor) doesn't appear on nmap scans and I cant locate it on the LAN even tho the device is powered up and connected to the ethernet port of the Macbook, and the Network utility shows the en0 link status is Active and gives a IP address. Airport is off. Is there a setting on the Macbook to make this work or do I have to install OSX server? Russ From hmag at ozemail.com.au Tue Aug 7 02:02:20 2007 From: hmag at ozemail.com.au (Terry Allen) Date: Tue Aug 7 02:02:31 2007 Subject: OSX and DHCP server? In-Reply-To: References: Message-ID: >I'm trying to connect an ethernet-enabled device to a OSX Macbook >w/RJ45 cable. and the device spec says it will configure itself if >there's a DHCP server on the LAN, shouldn't this work? The device (a >temp sensor) doesn't appear on nmap scans and I cant locate it on >the LAN even tho the device is powered up and connected to the >ethernet port of the Macbook, and the Network utility shows the en0 >link status is Active and gives a IP address. Airport is off. Is >there a setting on the Macbook to make this work or do I have to >install OSX server? >Russ > Hi again, Russ, someone else may chime in with something, but for DHCP to be provided by the Macbook, you will need to have Internet Sharing & Web Sharing turned on in System Preferences. This will assign the device an IP from the Macbook, but I haven't ever tried to ping a device like this & suspect that you would not be able to as it will be on a different network segment. From what I remember last time I plugged something in using this method, the device pulled an IP from the Mac with an address of 192.168.1.2 (or was it 192.168.2.2) For you to be able to access the device it will need to be on the same network segment, or you will need to assign the device a static IP & ensure your Mac is on the same range - perhaps if you have a router with DHCP server, you can plug the device into a switch on the same LAN & thus be able to contact it. -- Bye for now, Terry Allen ___________________________________________________________________ hEARd Postal Address: hEARd, 26B Glenning Rd, Glenning Valley, NSW 2261, Australia Internet - WWW: http://heard.com.au http://itavservices.com EMAIL: hmag@ozemail.com.au Phone: Australia - 02 4388 1400 / International - + 61 2 43881400 Mobile: Australia - 04 28881400 / International - 61 4 28881400 ----------------------------------------------- Non profit promotion for new music - since 1994 ----------------------------------------------- From appledev at xs4all.nl Tue Aug 7 02:18:51 2007 From: appledev at xs4all.nl (=?ISO-8859-1?Q?Ren=E9_v_Amerongen?=) Date: Tue Aug 7 02:19:02 2007 Subject: Latest Safari crash 3.0.3 (522.12.1) Message-ID: <7E740FAA-0B3F-4579-966C-66553A0CAD49@xs4all.nl> Hi For some people here, Safari starts and after a lot of jumps it crashes. That said, for others it works ok. I did already remove all the preferences that safari creates when it starts. Then it keeps running ok. But after a log out/log in it crashes again, till I remove the pref files again. Even with accounts that isn't be used for weeks and did work perfectly, now suddenly it crashes. Somebody knows about this issue? How can I follow the startup of safari to check what files exactly it use? With activity.app it doesn't connect to safari to see what safari opens. So my main questions, how can I follow a app when it starts? Thanks From abialet at gmail.com Tue Aug 7 04:44:37 2007 From: abialet at gmail.com (Agustin Bialet) Date: Tue Aug 7 04:44:45 2007 Subject: Latest Safari crash 3.0.3 (522.12.1) In-Reply-To: <7E740FAA-0B3F-4579-966C-66553A0CAD49@xs4all.nl> References: <7E740FAA-0B3F-4579-966C-66553A0CAD49@xs4all.nl> Message-ID: <2370CA1E-BC36-4E48-8CEB-5A12384F5591@gmail.com> Hi, You can get the info you are looking for by using fs_usage. man fs_usage will give you all the details. Regards, Agust?n On Aug 7, 2007, at 6:18 AM, Ren? v Amerongen wrote: > Hi > > For some people here, Safari starts and after a lot of jumps it > crashes. > That said, for others it works ok. > > I did already remove all the preferences that safari creates when > it starts. > Then it keeps running ok. > But after a log out/log in it crashes again, till I remove the pref > files again. > > Even with accounts that isn't be used for weeks and did work > perfectly, now suddenly it crashes. > > Somebody knows about this issue? > > How can I follow the startup of safari to check what files exactly > it use? > > With activity.app it doesn't connect to safari to see what safari > opens. > > So my main questions, how can I follow a app when it starts? > > Thanks > _______________________________________________ > MacOSX-admin mailing list > MacOSX-admin@omnigroup.com > http://www.omnigroup.com/mailman/listinfo/macosx-admin From grail at goldweb.com.au Tue Aug 7 16:21:09 2007 From: grail at goldweb.com.au (Alex Satrapa) Date: Tue Aug 7 16:21:24 2007 Subject: OSX and DHCP server? In-Reply-To: References: Message-ID: <98078467-4A50-44D7-AAA7-79C6857A3634@goldweb.com.au> On 07/08/2007, at 19:02 , Terry Allen wrote: > Russ, someone else may chime in with something, but for DHCP to be > provided by the Macbook, you will need to have Internet Sharing & > Web Sharing turned on in System Preferences. To expand on the scenario, the address that the Mac assigns itself (from the 169.x.x.x network, if I remember correctly) is part of a number range allocated to "local". This is a magic network range used by devices that follow the ZeroConf specification (the Apple implementation is called Bonjour), so your Mac is assigning itself an address based on a procedure which the Ethernet-enabled device doesn't know. > ... perhaps if you have a router with DHCP server, you can plug the > device into a switch on the same LAN & thus be able to contact it. I've always found this to be the most reliable and convenient means to connect Ethernet devices together. No messing about with crossover cables (or messed up "auto detection"), no problems later on with my Mac trying to assign DHCP addresses on someone else's network, etc. If it is imperative that you be able to talk directly between the device and the Mac (in the field, for example, where you don't want to lug around an extra box with associated battery pack), Internet sharing is the way to go. Just remember that you'll have to switch Internet sharing off when you get back home or strange things will happen to your home network (which can usually be solved by turning off Internet sharing and waiting a few hours). Alex From jerry.levan at eku.edu Wed Aug 8 10:48:04 2007 From: jerry.levan at eku.edu (Jerry LeVan) Date: Wed Aug 8 10:48:16 2007 Subject: Copying root owned directories... Message-ID: <37A6A915-9FF2-47F5-A9FA-BAC6656D5CAA@eku.edu> Hi, I am puzzling over how to elegantly copy a root protected directory from one mac to another mac. ie I have a wiki and want to propagate changes on one machine to others as a sort of backup/convenience. For example I can push changes to my linux box by the following script ( transferToLinux.sh) invoked by something like (as root) transferToLinux.sh MacInfo #!/bin/sh /usr/bin/rsync -avu /usr/local/share/moin/mywiki/data/pages/$1/ root@linuxbox:/var/mywiki/data/pages/$1 echo logging into linuxbox and executing "chown -R apache:apache /var/ mywiki/data/pages/$1" ssh root@linuxbox "chown -R apache:apache /var/mywiki/data/pages/$1" Unfortunately if linuxbox is a mac then ssh and rsync don't authenticate since there is no root login on the mac... Are there any neat workarounds without having to enable the root account on the macs? My current workaround is to push to a linux box and then pull from the linux box with a similar rsync script (transferFromLinux.sh). #!/bin/sh /usr/bin/rsync -avu root@linuxbox:/var/mywiki/data/pages/$1/ /usr/ local/share/moin/mywiki/data/pages/$1 chown -R www:www /usr/local/share/moin/mywiki/data/pages/$1 Seems like there ought to be a simpler way... Thanks, Jerry From donkergroen at mac.com Wed Aug 8 11:32:48 2007 From: donkergroen at mac.com (Donkergroen bvba) Date: Wed Aug 8 11:33:02 2007 Subject: Copying root owned directories... In-Reply-To: <37A6A915-9FF2-47F5-A9FA-BAC6656D5CAA@eku.edu> References: <37A6A915-9FF2-47F5-A9FA-BAC6656D5CAA@eku.edu> Message-ID: <6B3C9698-B44E-49AA-BBB1-C22E53C89FB6@mac.com> Why do you want to do this as root ? and then you chown to www ? does user www have login enabled ? Can't you do it as user www ? You must have an admin user .... Dirk On 08 Aug 2007, at 19:48, Jerry LeVan wrote: > Hi, > > I am puzzling over how to elegantly copy a root protected directory > from one mac to another mac. > > ie I have a wiki and want to propagate changes on one machine to > others as a sort of backup/convenience. > > For example I can push changes to my linux box by the following > script ( transferToLinux.sh) invoked by something like (as root) > > transferToLinux.sh MacInfo > > #!/bin/sh > /usr/bin/rsync -avu /usr/local/share/moin/mywiki/data/pages/$1/ > root@linuxbox:/var/mywiki/data/pages/$1 > echo logging into linuxbox and executing "chown -R apache:apache / > var/mywiki/data/pages/$1" > ssh root@linuxbox "chown -R apache:apache /var/mywiki/data/pages/$1" > > Unfortunately if linuxbox is a mac then ssh and rsync don't > authenticate since > there is no root login on the mac... > > Are there any neat workarounds without having to enable the root > account on > the macs? > > My current workaround is to push to a linux box and then pull from > the linux box > with a similar rsync script (transferFromLinux.sh). > > #!/bin/sh > /usr/bin/rsync -avu root@linuxbox:/var/mywiki/data/pages/$1/ /usr/ > local/share/moin/mywiki/data/pages/$1 > chown -R www:www /usr/local/share/moin/mywiki/data/pages/$1 > > Seems like there ought to be a simpler way... > Thanks, > > Jerry > _______________________________________________ > MacOSX-admin mailing list > MacOSX-admin@omnigroup.com > http://www.omnigroup.com/mailman/listinfo/macosx-admin From mah at jump-ing.de Wed Aug 8 11:35:48 2007 From: mah at jump-ing.de (Markus Hitter) Date: Wed Aug 8 11:36:00 2007 Subject: Copying root owned directories... In-Reply-To: <37A6A915-9FF2-47F5-A9FA-BAC6656D5CAA@eku.edu> References: <37A6A915-9FF2-47F5-A9FA-BAC6656D5CAA@eku.edu> Message-ID: Am 08.08.2007 um 19:48 schrieb Jerry LeVan: > I am puzzling over how to elegantly copy a root protected directory > from one mac to another mac. Create a tar archive, copy it over, unpack it on the other side. In principle you could do it with a single line: sudo tar -C / -cf- myStuff | ssh otherMac sudo tar -xvf- As you'll notice, the above line won't work, because some "" and '' are missing and somehow the password for the second sudo has to be typed. I let it up to you to fiddle this out (I have the root password enabled here). Markus - - - - - - - - - - - - - - - - - - - Dipl. Ing. Markus Hitter http://www.jump-ing.de/ From patgmac at gmail.com Wed Aug 8 12:11:42 2007 From: patgmac at gmail.com (Patrick Gallagher) Date: Wed Aug 8 12:11:48 2007 Subject: OSX and DHCP server? In-Reply-To: <98078467-4A50-44D7-AAA7-79C6857A3634@goldweb.com.au> References: <98078467-4A50-44D7-AAA7-79C6857A3634@goldweb.com.au> Message-ID: <1fffb2dc0708081211s6fade8b6p5a45e2967b3f9787@mail.gmail.com> On 8/7/07, Alex Satrapa wrote: > To expand on the scenario, the address that the Mac assigns itself > (from the 169.x.x.x network, if I remember correctly) is part of a > number range allocated to "local". This is a magic network range used > by devices that follow the ZeroConf specification (the Apple > implementation is called Bonjour), so your Mac is assigning itself an > address based on a procedure which the Ethernet-enabled device > doesn't know. The 169.254.x.x address's have nothing to do with zeroconf/bonjour. This is link-local addressing that has been around probably as long as TCP/IP (or at least System 7 and Win95). http://tools.ietf.org/html/rfc3330 -- Patrick Gallagher Emory College ACSA, ACTC, ACHDS, A+, Network+, RHCT http://patgmac.blogspot.com From jerry.levan at eku.edu Wed Aug 8 12:34:52 2007 From: jerry.levan at eku.edu (Jerry LeVan) Date: Wed Aug 8 12:35:06 2007 Subject: Copying root owned directories... In-Reply-To: References: <37A6A915-9FF2-47F5-A9FA-BAC6656D5CAA@eku.edu> Message-ID: On Aug 8, 2007, at 2:35 PM, Markus Hitter wrote: > > Am 08.08.2007 um 19:48 schrieb Jerry LeVan: > >> I am puzzling over how to elegantly copy a root protected directory >> from one mac to another mac. > > Create a tar archive, copy it over, unpack it on the other side. > > In principle you could do it with a single line: > > sudo tar -C / -cf- myStuff | ssh otherMac sudo tar -xvf- > > As you'll notice, the above line won't work, because some "" and '' > are missing and somehow the password for the second sudo has to be > typed. I let it up to you to fiddle this out (I have the root > password enabled here). > > > Markus Marcus I do *not* have the root password enabled on my macs :) If I did the rsync stuff would work. I just noticed that I can mount the target mac system from the Go menu and select Connect to Server... Then if I "sudo -s" on the host I can see everything on the mounted target when running terminal so I could do basically do an rsync from the host to the mounted directory on the host :) Jerry From kremels at kreme.com Wed Aug 8 18:25:05 2007 From: kremels at kreme.com (LuKreme) Date: Wed Aug 8 18:25:21 2007 Subject: Copying root owned directories... In-Reply-To: <37A6A915-9FF2-47F5-A9FA-BAC6656D5CAA@eku.edu> References: <37A6A915-9FF2-47F5-A9FA-BAC6656D5CAA@eku.edu> Message-ID: <263A5C95-924F-42F2-A3B5-426B07301DF6@kreme.com> On 8-Aug-2007, at 11:48, Jerry LeVan wrote: > I am puzzling over how to elegantly copy a root protected directory > from one mac to another mac. Use rsync --daemon on one machine, setup a share, and sync the directory over. > #!/bin/sh > /usr/bin/rsync -avu /usr/local/share/moin/mywiki/data/pages/$1/ > root@linuxbox:/var/mywiki/data/pages/$1 > echo logging into linuxbox and executing "chown -R apache:apache / > var/mywiki/data/pages/$1" > ssh root@linuxbox "chown -R apache:apache /var/mywiki/data/pages/$1" no no, this is NOT the way to go. on the Linuxbox: # /usr/local/bin/rsync --daemon # cat rsyncd.conf: [wikiroot] path = /path/to/wiki comment = Root readonly = no auth users = wikime secrets file = /usr/local/etc/rsyncd.secrets # cat rsyncd.secrets: wikime:MySecretPasswordGoesHere On the Mac: # cat /var/tmp/linuxbox.password MySecretPasswordGoesHere # rsync -avu --password-file=/var/tmp/linuxbox.password /usr/local/ share/moin/mywiki/data/pages/$1/ linuxbox::wikiroot/$1 you can duplicate on the Mac to go the other direction, but I'd user a different password. > My current workaround is to push to a linux box and then pull from > the linux box > with a similar rsync script (transferFromLinux.sh). That works as well, but I don't allow root login via ssh (or any other method). -- And the three men I admire most, the father son and the holly ghost, they caught the last train for the coast... From newslists at autonomy.caltech.edu Fri Aug 10 11:11:03 2007 From: newslists at autonomy.caltech.edu (R.L. Grigg) Date: Fri Aug 10 11:11:14 2007 Subject: hostconfig process Message-ID: <0E8C5D12-42C0-4714-9DAA-AD22749EE074@autonomy.caltech.edu> Theres a remote OSX 10.4.10 system that I administor by ssh, and after I modify /etc/hostconfig, what process do I need to kill -HUP to have it read up the new settings so I dont have to reboot it. Russ From justin at mac.com Fri Aug 10 16:06:09 2007 From: justin at mac.com (Justin C. Walker) Date: Fri Aug 10 16:05:43 2007 Subject: hostconfig process In-Reply-To: <0E8C5D12-42C0-4714-9DAA-AD22749EE074@autonomy.caltech.edu> References: <0E8C5D12-42C0-4714-9DAA-AD22749EE074@autonomy.caltech.edu> Message-ID: On Aug 10, 2007, at 11:11 , R.L. Grigg wrote: > Theres a remote OSX 10.4.10 system that I administor by ssh, and > after I modify /etc/hostconfig, what process do I need to kill -HUP > to have it read up the new settings so I dont have to reboot it You need to reboot to have this file re-scanned. In essence, it provides a lot of basic settings for the system (processes that may run only at boot-time, or long-lived processes that have nothing to do with the boot process) to use, and without restarting the whole system, you won't get what you want. This may have changed in recent releases, but AFAIK, this is the still the case. Justin -- Justin C. Walker, Curmudgeon-At-Large Institute for the Absorption of Federal Funds -------- Some people have a mental horizon of radius zero, and call it their point of view. -- David Hilbert -------- From jerry.levan at eku.edu Sat Aug 11 13:04:19 2007 From: jerry.levan at eku.edu (Jerry LeVan) Date: Sat Aug 11 13:04:26 2007 Subject: hostconfig process In-Reply-To: <20070811190003.686FA1A529D@forums.omnigroup.com> References: <20070811190003.686FA1A529D@forums.omnigroup.com> Message-ID: > > ---------------------------------------------------------------------- > > Message: 1 > Date: Fri, 10 Aug 2007 16:06:09 -0700 > From: "Justin C. Walker" > Subject: Re: hostconfig process > To: omniadmin OSX > Message-ID: > Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed > > > On Aug 10, 2007, at 11:11 , R.L. Grigg wrote: > >> Theres a remote OSX 10.4.10 system that I administor by ssh, and >> after I modify /etc/hostconfig, what process do I need to kill -HUP >> to have it read up the new settings so I dont have to reboot it > > You need to reboot to have this file re-scanned. In essence, it > provides a lot of basic settings for the system (processes that may > run only at boot-time, or long-lived processes that have nothing to > do with the boot process) to use, and without restarting the whole > system, you won't get what you want. > > This may have changed in recent releases, but AFAIK, this is the > still the case. > > Justin > Have you tried "hostname -s newnane" (and setting the host name in hostconfig). Jerry From appledev at xs4all.nl Sun Aug 12 15:48:23 2007 From: appledev at xs4all.nl (=?ISO-8859-1?Q?Ren=E9_v_Amerongen?=) Date: Sun Aug 12 15:48:30 2007 Subject: Latest Safari crash 3.0.3 (522.12.1) In-Reply-To: <2370CA1E-BC36-4E48-8CEB-5A12384F5591@gmail.com> References: <7E740FAA-0B3F-4579-966C-66553A0CAD49@xs4all.nl> <2370CA1E-BC36-4E48-8CEB-5A12384F5591@gmail.com> Message-ID: <36DF56E7-E174-4BD9-97AD-183B4B92A91E@xs4all.nl> The problem finaly was, that those people have a languages selected in the system pref panel, that was not ( yet ) available in Safari. F.e Dutch. The menu items couldn't get build and did crash. I know its beta, but I did expect that this kind of things should be catched. Regards RvA Op 7-aug-2007, om 13:44 heeft Agustin Bialet het volgende geschreven: > Hi, > > You can get the info you are looking for by using fs_usage. man > fs_usage will give you all the details. > > Regards, > Agust?n > > > On Aug 7, 2007, at 6:18 AM, Ren? v Amerongen wrote: > >> Hi >> >> For some people here, Safari starts and after a lot of jumps it >> crashes. >> That said, for others it works ok. >> >> I did already remove all the preferences that safari creates when >> it starts. >> Then it keeps running ok. >> But after a log out/log in it crashes again, till I remove the >> pref files again. >> >> Even with accounts that isn't be used for weeks and did work >> perfectly, now suddenly it crashes. >> >> Somebody knows about this issue? >> >> How can I follow the startup of safari to check what files exactly >> it use? >> >> With activity.app it doesn't connect to safari to see what safari >> opens. >> >> So my main questions, how can I follow a app when it starts? >> >> Thanks >> _______________________________________________ >> MacOSX-admin mailing list >> MacOSX-admin@omnigroup.com >> http://www.omnigroup.com/mailman/listinfo/macosx-admin > > _______________________________________________ > MacOSX-admin mailing list > MacOSX-admin@omnigroup.com > http://www.omnigroup.com/mailman/listinfo/macosx-admin > > From Philip.Moetteli at tele2.ch Mon Aug 13 06:00:44 2007 From: Philip.Moetteli at tele2.ch (=?ISO-8859-1?Q?Philip_M=F6tteli?=) Date: Mon Aug 13 07:01:05 2007 Subject: CarbonLib Problems Message-ID: Hello, I have several programs, like all the PalmDesktip programs and HP all- in-one printer programs, which all suddenly show me the following kind of error message before quitting: The application "SomeApplication" could not be launched because of a shared library error: "2<>" I tried to replace my "/System/Library/CFMSupport/CarbonLib" with the one from another PowerPC machine. But that didn't help. Has anybody an idea, what could be kaputt here? Thanks Phil From saigon at ufl.edu Mon Aug 13 08:38:04 2007 From: saigon at ufl.edu (Trang Le) Date: Mon Aug 13 08:38:11 2007 Subject: iLife8 Message-ID: <7788BF48-E234-4EE7-9E0F-14E50780E728@ufl.edu> I just installed iLife 8 on my intel iMac with OS 10.4.10 on it. All applications work correctly except iDVD. IDVD opens fine the first time, but after that it crashed as soon as I double clcked on the icon. I browsed Apple web site and followed the suggestion on customize reinstall and none of the worked. Any ideas? Trang Le CIRCA University of Florida From shawnce at gmail.com Mon Aug 13 08:43:11 2007 From: shawnce at gmail.com (Shawn Erickson) Date: Mon Aug 13 08:43:15 2007 Subject: iLife8 In-Reply-To: <7788BF48-E234-4EE7-9E0F-14E50780E728@ufl.edu> References: <7788BF48-E234-4EE7-9E0F-14E50780E728@ufl.edu> Message-ID: On 8/13/07, Trang Le wrote: > I just installed iLife 8 on my intel iMac with OS 10.4.10 on it. All > applications work correctly except iDVD. IDVD opens fine the first > time, but after that it crashed as soon as I double clcked on the > icon. I browsed Apple web site and followed the suggestion on > customize reinstall and none of the worked. Any ideas? Look under ~/Library/Preferences/ for iDVD related preference files (likely "com.apple.iDVD" or something like that). Then move those files to the desktop or trash. Then try launching iDVD again. If you still have problems make sure to look at the console log for any clues on what could be going wrong (not knowing what you exactly mean by "crash"). -Shawn From saigon at ufl.edu Mon Aug 13 08:56:06 2007 From: saigon at ufl.edu (Trang Le) Date: Mon Aug 13 08:56:17 2007 Subject: iLife8 In-Reply-To: References: <7788BF48-E234-4EE7-9E0F-14E50780E728@ufl.edu> Message-ID: I double-clicked on the iDVD icon in the Applications folder. The iDVD icon appeared on the dock very briefly, then it disappeared. Nothing happened. Trang Le On Aug 13, 2007, at 11:43 AM, Shawn Erickson wrote: > On 8/13/07, Trang Le wrote: >> I just installed iLife 8 on my intel iMac with OS 10.4.10 on it. All >> applications work correctly except iDVD. IDVD opens fine the first >> time, but after that it crashed as soon as I double clcked on the >> icon. I browsed Apple web site and followed the suggestion on >> customize reinstall and none of the worked. Any ideas? > > Look under ~/Library/Preferences/ for iDVD related preference files > (likely "com.apple.iDVD" or something like that). Then move those > files to the desktop or trash. Then try launching iDVD again. > > If you still have problems make sure to look at the console log for > any clues on what could be going wrong (not knowing what you exactly > mean by "crash"). > > -Shawn > From justin at mac.com Mon Aug 13 09:59:39 2007 From: justin at mac.com (Justin C. Walker) Date: Mon Aug 13 09:59:01 2007 Subject: iLife8 In-Reply-To: References: <7788BF48-E234-4EE7-9E0F-14E50780E728@ufl.edu> Message-ID: <17CA4164-763B-4ECE-A082-B8954DE56965@mac.com> On Aug 13, 2007, at 08:56 , Trang Le wrote: > I double-clicked on the iDVD icon in the Applications folder. The > iDVD icon appeared on the dock very briefly, then it disappeared. > Nothing happened. Check the system and console logs. You can use the Console app (in / Applications/Utilities) and look at each. Typically, a crash will be recorded in the log files, and there will be a crash report in either /Library/Logs/Crashreporter or ~/Library/ Logs/Crashreporter. The crash reports will be named either App.crash.log or something like com.company.app.crash.log. And please don't cross-post. Justin -- Justin C. Walker, Curmudgeon-at-Large () The ASCII Ribbon Campaign /\ Help Cure HTML Email From shoop at iwiring.net Tue Aug 14 13:11:41 2007 From: shoop at iwiring.net (Dan Shoop) Date: Tue Aug 14 13:11:50 2007 Subject: hostconfig process In-Reply-To: References: <20070811190003.686FA1A529D@forums.omnigroup.com> Message-ID: <522D825B-4EC5-4C3E-933C-C02A07805536@iwiring.net> On Aug 11, 2007, at 4:04 PM, Jerry LeVan wrote: > >> >> --------------------------------------------------------------------- >> - >> >> Message: 1 >> Date: Fri, 10 Aug 2007 16:06:09 -0700 >> From: "Justin C. Walker" >> Subject: Re: hostconfig process >> To: omniadmin OSX >> Message-ID: >> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed >> >> >> On Aug 10, 2007, at 11:11 , R.L. Grigg wrote: >> >>> Theres a remote OSX 10.4.10 system that I administor by ssh, and >>> after I modify /etc/hostconfig, what process do I need to kill -HUP >>> to have it read up the new settings so I dont have to reboot it >> >> You need to reboot to have this file re-scanned. In essence, it >> provides a lot of basic settings for the system (processes that may >> run only at boot-time, or long-lived processes that have nothing to >> do with the boot process) to use, and without restarting the whole >> system, you won't get what you want. >> >> This may have changed in recent releases, but AFAIK, this is the >> still the case. >> >> Justin >> > > Have you tried "hostname -s newnane" (and setting the host name in > hostconfig). Have you read hostconfig??? There's a lot more it defines than hostname. It defines global variables that are use by SystemStartup items and many other things. Also hostname set like that won't stick, and can change even while the system is booted, because it's just plain the wrong way to set it. -dhan ------------------------------------------------------------------------ Dan Shoop Tactical Operations Center: 1.866.901.8787 (24x7) Ph: 714.363.1174 AIM: iWiring From shoop at iwiring.net Tue Aug 14 13:13:24 2007 From: shoop at iwiring.net (Dan Shoop) Date: Tue Aug 14 13:13:31 2007 Subject: CarbonLib Problems In-Reply-To: References: Message-ID: <847521F8-6937-49FE-9256-E9623FA601C3@iwiring.net> On Aug 13, 2007, at 9:00 AM, Philip M?tteli wrote: > Hello, > > > I have several programs, like all the PalmDesktip programs and HP > all-in-one printer programs, which all suddenly show me the > following kind of error message before quitting: > > The application "SomeApplication" could not be launched because of > a shared library error: > "2<>" > > > I tried to replace my "/System/Library/CFMSupport/CarbonLib" with > the one from another PowerPC machine. But that didn't help. > > > Has anybody an idea, what could be kaputt here? > How about giving us a real error message. Obfuscating things does just that. If we had more perhaps we could tell you more. -dhan ------------------------------------------------------------------------ Dan Shoop Tactical Operations Center: 1.866.901.8787 (24x7) Ph: 714.363.1174 AIM: iWiring From larkost at softhome.net Tue Aug 14 13:19:54 2007 From: larkost at softhome.net (Karl Kuehn) Date: Tue Aug 14 13:21:27 2007 Subject: CarbonLib Problems In-Reply-To: <847521F8-6937-49FE-9256-E9623FA601C3@iwiring.net> References: <847521F8-6937-49FE-9256-E9623FA601C3@iwiring.net> Message-ID: <10E3DF1A-7497-4AAA-84B2-411E634BD322@softhome.net> > I have several programs, like all the PalmDesktip programs and HP > all-in-one printer programs, which all suddenly show me the > following kind of error message before quitting: > > The application "SomeApplication" could not be launched because of > a shared library error: > "2<>" This sounds vaguely like the problem that one of the iTunes updaters cause by munging the prebinding database. The Carbon linker was especially impacted by the problem. The solution to that problem was to re-run prebinding, most often by running the most recent combo update. -- Karl Kuehn larkost@softhome.net From jwelch at bynkii.com Tue Aug 14 13:43:02 2007 From: jwelch at bynkii.com (John C. Welch) Date: Tue Aug 14 13:43:26 2007 Subject: CarbonLib Problems In-Reply-To: <10E3DF1A-7497-4AAA-84B2-411E634BD322@softhome.net> Message-ID: On 8/14/07 15:19 PM, "Karl Kuehn" wrote: >> I have several programs, like all the PalmDesktip programs and HP >> all-in-one printer programs, which all suddenly show me the >> following kind of error message before quitting: >> >> The application "SomeApplication" could not be launched because of >> a shared library error: >> "2<>" > > This sounds vaguely like the problem that one of the iTunes updaters > cause by munging the prebinding database. The Carbon linker was > especially impacted by the problem. The solution to that problem was > to re-run prebinding, most often by running the most recent combo > update. I've seen similar errors from Illustrator when its permissions were pooched, but it can also mean you need to reinstall the OS. -- John C. Welch Writer/Analyst Bynkii.com Mac and other opinions jwelch@bynkii.com From jerry.levan at eku.edu Tue Aug 14 15:19:58 2007 From: jerry.levan at eku.edu (Jerry LeVan) Date: Tue Aug 14 15:20:06 2007 Subject: hostconfig process In-Reply-To: <522D825B-4EC5-4C3E-933C-C02A07805536@iwiring.net> References: <20070811190003.686FA1A529D@forums.omnigroup.com> <522D825B-4EC5-4C3E-933C-C02A07805536@iwiring.net> Message-ID: <175032CA-D82C-402E-A818-CE5FE0AB0E89@eku.edu> On Aug 14, 2007, at 4:11 PM, Dan Shoop wrote: > > On Aug 11, 2007, at 4:04 PM, Jerry LeVan wrote: > >> >>> >>> -------------------------------------------------------------------- >>> -- >>> >>> Message: 1 >>> Date: Fri, 10 Aug 2007 16:06:09 -0700 >>> From: "Justin C. Walker" >>> Subject: Re: hostconfig process >>> To: omniadmin OSX >>> Message-ID: >>> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed >>> >>> >>> On Aug 10, 2007, at 11:11 , R.L. Grigg wrote: >>> >>>> Theres a remote OSX 10.4.10 system that I administor by ssh, and >>>> after I modify /etc/hostconfig, what process do I need to kill -HUP >>>> to have it read up the new settings so I dont have to reboot it >>> >>> You need to reboot to have this file re-scanned. In essence, it >>> provides a lot of basic settings for the system (processes that may >>> run only at boot-time, or long-lived processes that have nothing to >>> do with the boot process) to use, and without restarting the whole >>> system, you won't get what you want. >>> >>> This may have changed in recent releases, but AFAIK, this is the >>> still the case. >>> >>> Justin >>> >> >> Have you tried "hostname -s newnane" (and setting the host name in >> hostconfig). > > Have you read hostconfig??? > > There's a lot more it defines than hostname. It defines global > variables that are use by SystemStartup items and many other things. > > Also hostname set like that won't stick, and can change even while > the system is booted, because it's just plain the wrong way to set it. > > > -dhan Chill out dan, try to focus on solutions rather than criticisms... [mbp:~]$ uname -a Darwin mbp 8.10.1 Darwin Kernel Version 8.10.1: Wed May 23 16:33:00 PDT 2007; root:xnu-792.22.5~1/RELEASE_I386 i386 i386 [mbp:~]$ ping mbp PING mbp (192.168.1.80): 56 data bytes 64 bytes from 192.168.1.80: icmp_seq=0 ttl=64 time=0.052 ms 64 bytes from 192.168.1.80: icmp_seq=1 ttl=64 time=0.093 ms ^C --- mbp ping statistics --- 2 packets transmitted, 2 packets received, 0% packet loss round-trip min/avg/max/stddev = 0.052/0.072/0.093/0.021 ms [mbp:~]$ sudo hostname jack [mbp:~]$ uname -a Darwin jack 8.10.1 Darwin Kernel Version 8.10.1: Wed May 23 16:33:00 PDT 2007; root:xnu-792.22.5~1/RELEASE_I386 i386 i386 [mbp:~]$ ping jack PING jack (192.168.1.80): 56 data bytes 64 bytes from 192.168.1.80: icmp_seq=0 ttl=64 time=0.046 ms 64 bytes from 192.168.1.80: icmp_seq=1 ttl=64 time=0.092 ms ^C --- jack ping statistics --- 2 packets transmitted, 2 packets received, 0% packet loss round-trip min/avg/max/stddev = 0.046/0.069/0.092/0.023 ms [mbp:~]$ sudo hostname mbp Jerry From justin at mac.com Tue Aug 14 15:37:18 2007 From: justin at mac.com (Justin C. Walker) Date: Tue Aug 14 15:36:30 2007 Subject: hostconfig process In-Reply-To: <175032CA-D82C-402E-A818-CE5FE0AB0E89@eku.edu> References: <20070811190003.686FA1A529D@forums.omnigroup.com> <522D825B-4EC5-4C3E-933C-C02A07805536@iwiring.net> <175032CA-D82C-402E-A818-CE5FE0AB0E89@eku.edu> Message-ID: On Aug 14, 2007, at 15:19 , Jerry LeVan wrote: > On Aug 14, 2007, at 4:11 PM, Dan Shoop wrote: >> On Aug 11, 2007, at 4:04 PM, Jerry LeVan wrote: >>>>> Theres a remote OSX 10.4.10 system that I administor by ssh, and >>>>> after I modify /etc/hostconfig, what process do I need to kill - >>>>> HUP >>>>> to have it read up the new settings so I dont have to reboot it [snip] >>> Have you tried "hostname -s newnane" (and setting the host name >>> in hostconfig). >> >> Have you read hostconfig??? >> >> There's a lot more it defines than hostname. It defines global >> variables that are use by SystemStartup items and many other things. >> >> Also hostname set like that won't stick, and can change even while >> the system is booted, because it's just plain the wrong way to set >> it. >> >> >> -dhan > > Chill out dan, try to focus on solutions rather than criticisms... I think Dan's main point is that 'hostname' has little to do with the OP's question. He wants to modify "/etc/hostconfig", not change the host name. Justin -- They said it couldn't be done but sometimes it doesn't work out that way. - Casey Stengel -- From newslists at autonomy.caltech.edu Tue Aug 14 16:43:20 2007 From: newslists at autonomy.caltech.edu (R.L. Grigg) Date: Tue Aug 14 16:43:24 2007 Subject: hostconfig process In-Reply-To: References: <0E8C5D12-42C0-4714-9DAA-AD22749EE074@autonomy.caltech.edu> Message-ID: On Aug 10, 2007, at 4:06 PM, Justin C. Walker wrote: > > On Aug 10, 2007, at 11:11 , R.L. Grigg wrote: > >> Theres a remote OSX 10.4.10 system that I administor by ssh, and >> after I modify /etc/hostconfig, what process do I need to kill - >> HUP to have it read up the new settings so I dont have to reboot it > > You need to reboot to have this file re-scanned. In essence, it > provides a lot of basic settings for the system (processes that may > run only at boot-time, or long-lived processes that have nothing to > do with the boot process) to use, and without restarting the whole > system, you won't get what you want. > > This may have changed in recent releases, but AFAIK, this is the > still the case. For example in Sys Prefs under Sharing when you select to enable Apple Remote Desktop it modifies the settings in /etc/hostconfig: ARDAGENT=-YES- and then somehow enables it without a reboot. I assume by restarting some process. Just wondering which one? Or is there a simpler way to do this. Russ From shoop at iwiring.net Tue Aug 14 16:50:08 2007 From: shoop at iwiring.net (Dan Shoop) Date: Tue Aug 14 16:50:12 2007 Subject: hostconfig process In-Reply-To: References: <20070811190003.686FA1A529D@forums.omnigroup.com> <522D825B-4EC5-4C3E-933C-C02A07805536@iwiring.net> <175032CA-D82C-402E-A818-CE5FE0AB0E89@eku.edu> Message-ID: On Aug 14, 2007, at 6:19 PM, Jerry LeVan wrote: > > On Aug 14, 2007, at 4:11 PM, Dan Shoop wrote: > >> >> On Aug 11, 2007, at 4:04 PM, Jerry LeVan wrote: >> >>> >>>> >>>> ------------------------------------------------------------------- >>>> --- >>>> >>>> Message: 1 >>>> Date: Fri, 10 Aug 2007 16:06:09 -0700 >>>> From: "Justin C. Walker" >>>> Subject: Re: hostconfig process >>>> To: omniadmin OSX >>>> Message-ID: >>>> Content-Type: text/plain; charset=US-ASCII; delsp=yes; >>>> format=flowed >>>> >>>> >>>> On Aug 10, 2007, at 11:11 , R.L. Grigg wrote: >>>> >>>>> Theres a remote OSX 10.4.10 system that I administor by ssh, and >>>>> after I modify /etc/hostconfig, what process do I need to kill - >>>>> HUP >>>>> to have it read up the new settings so I dont have to reboot it >>>> >>>> You need to reboot to have this file re-scanned. In essence, it >>>> provides a lot of basic settings for the system (processes that may >>>> run only at boot-time, or long-lived processes that have nothing to >>>> do with the boot process) to use, and without restarting the whole >>>> system, you won't get what you want. >>>> >>>> This may have changed in recent releases, but AFAIK, this is the >>>> still the case. >>>> >>>> Justin >>>> >>> >>> Have you tried "hostname -s newnane" (and setting the host name >>> in hostconfig). >> >> Have you read hostconfig??? >> >> There's a lot more it defines than hostname. It defines global >> variables that are use by SystemStartup items and many other things. >> >> Also hostname set like that won't stick, and can change even while >> the system is booted, because it's just plain the wrong way to set >> it. >> >> >> -dhan > > Chill out dan, try to focus on solutions rather than criticisms... The critiquing process is how peers learn from their peers and work and analysis is reviewed. If you can't stand for critical analysis of your work you have no place in the sciences, including computing sciences. Through such critique bad practices are revealed dn confirmation gained for good practices. This is the value of critical review, a hallmark of the scientific process. Since hostconfig is used for a wide variety of things, focusing on setting hostname through other means misses the question entirely. It's a non-sequitur; you might as well have told him how to tie his shoes. (I'm presuming you'd have gotten that right, while your advice here is not only off topic but outright wrong.) /etc/hostconfig is read by rc files and every instantiation of every SystemStartup item. Moreover using even hostconfig to set hostname has not only been depreciated in Tiger it is specifically stated by Apple as something *not* to do. Apple specifically states that no setting (other than - Automatic-) for hostname be in hostconfig for Tiger and beyond. See technote 303697 where they even go so far as to bold the word "not" in a whole subsection titled "Leave hostname alone." But far more poignantly using `hostname` to set set the hostname under OS X at all is completely off the mark and has never been the correct method to set this parameter. Not only does it not provided persistence across reboots but it won't even hold for any running instance of the OS. It could therefore change very in-expectantly and to great damage. (And it will, just trigger any change in networking.) The correct method for setting hostname is to use `scutil --set HostName ` instead or `changeip` if running OS X Server. Only then will it get properly registered by the OS and maintain persistence. > [mbp:~]$ uname -a > Darwin mbp 8.10.1 Darwin Kernel Version 8.10.1: Wed May 23 16:33:00 > PDT 2007; root:xnu-792.22.5~1/RELEASE_I386 i386 i386 > [mbp:~]$ ping mbp > PING mbp (192.168.1.80): 56 data bytes > 64 bytes from 192.168.1.80: icmp_seq=0 ttl=64 time=0.052 ms > 64 bytes from 192.168.1.80: icmp_seq=1 ttl=64 time=0.093 ms > ^C > --- mbp ping statistics --- > 2 packets transmitted, 2 packets received, 0% packet loss > round-trip min/avg/max/stddev = 0.052/0.072/0.093/0.021 ms > [mbp:~]$ sudo hostname jack > [mbp:~]$ uname -a > Darwin jack 8.10.1 Darwin Kernel Version 8.10.1: Wed May 23 > 16:33:00 PDT 2007; root:xnu-792.22.5~1/RELEASE_I386 i386 i386 > [mbp:~]$ ping jack > PING jack (192.168.1.80): 56 data bytes > 64 bytes from 192.168.1.80: icmp_seq=0 ttl=64 time=0.046 ms > 64 bytes from 192.168.1.80: icmp_seq=1 ttl=64 time=0.092 ms > ^C > --- jack ping statistics --- > 2 packets transmitted, 2 packets received, 0% packet loss > round-trip min/avg/max/stddev = 0.046/0.069/0.092/0.023 ms > [mbp:~]$ sudo hostname mbp > I fail to see how that properly demonstrates anything other than example of something not to do. It certainly isn't persistent nor does it register the change with the OS. It's in fact dangerous. As for being "chill", you presume I maintain anything but a frosty demeanor on this side of the screen. ;) -dhan ------------------------------------------------------------------------ Dan Shoop Tactical Operations Center: 1.866.901.8787 (24x7) Ph: 714.363.1174 AIM: iWiring From shoop at iwiring.net Tue Aug 14 16:52:32 2007 From: shoop at iwiring.net (Dan Shoop) Date: Tue Aug 14 16:52:38 2007 Subject: hostconfig process In-Reply-To: References: <0E8C5D12-42C0-4714-9DAA-AD22749EE074@autonomy.caltech.edu> Message-ID: On Aug 14, 2007, at 7:43 PM, R.L. Grigg wrote: > On Aug 10, 2007, at 4:06 PM, Justin C. Walker wrote: >> >> On Aug 10, 2007, at 11:11 , R.L. Grigg wrote: >> >>> Theres a remote OSX 10.4.10 system that I administor by ssh, and >>> after I modify /etc/hostconfig, what process do I need to kill - >>> HUP to have it read up the new settings so I dont have to reboot it >> >> You need to reboot to have this file re-scanned. In essence, it >> provides a lot of basic settings for the system (processes that >> may run only at boot-time, or long-lived processes that have >> nothing to do with the boot process) to use, and without >> restarting the whole system, you won't get what you want. >> >> This may have changed in recent releases, but AFAIK, this is the >> still the case. > > For example in Sys Prefs under Sharing when you select to enable > Apple Remote Desktop it modifies the settings in /etc/hostconfig: > ARDAGENT=-YES- > and then somehow enables it without a reboot. I assume by > restarting some process. Just wondering which one? Or is there a > simpler way to do this. Actually you're misinterpreting that. When you invoke System Preferences to enable ARD it writes the value to hostconfig (so the system knows to start it next time) but also goes ahead and starts the agent through kickstart. The affect of changing the qualifier in hostconfig is a side effect not the change itself. -dhan ------------------------------------------------------------------------ Dan Shoop Tactical Operations Center: 1.866.901.8787 (24x7) Ph: 714.363.1174 AIM: iWiring From newslists at autonomy.caltech.edu Tue Aug 14 17:15:00 2007 From: newslists at autonomy.caltech.edu (R.L. Grigg) Date: Tue Aug 14 17:15:04 2007 Subject: hostconfig process In-Reply-To: References: <0E8C5D12-42C0-4714-9DAA-AD22749EE074@autonomy.caltech.edu> Message-ID: On Aug 14, 2007, at 4:52 PM, Dan Shoop wrote: > > On Aug 14, 2007, at 7:43 PM, R.L. Grigg wrote: > >> On Aug 10, 2007, at 4:06 PM, Justin C. Walker wrote: >>> >>> On Aug 10, 2007, at 11:11 , R.L. Grigg wrote: >>> >>>> Theres a remote OSX 10.4.10 system that I administor by ssh, and >>>> after I modify /etc/hostconfig, what process do I need to kill - >>>> HUP to have it read up the new settings so I dont have to reboot it >>> >>> You need to reboot to have this file re-scanned. In essence, it >>> provides a lot of basic settings for the system (processes that >>> may run only at boot-time, or long-lived processes that have >>> nothing to do with the boot process) to use, and without >>> restarting the whole system, you won't get what you want. >>> >>> This may have changed in recent releases, but AFAIK, this is the >>> still the case. >> >> For example in Sys Prefs under Sharing when you select to enable >> Apple Remote Desktop it modifies the settings in /etc/hostconfig: >> ARDAGENT=-YES- >> and then somehow enables it without a reboot. I assume by >> restarting some process. Just wondering which one? Or is there a >> simpler way to do this. > > Actually you're misinterpreting that. > > When you invoke System Preferences to enable ARD it writes the > value to hostconfig (so the system knows to start it next time) but > also goes ahead and starts the agent through kickstart. The affect > of changing the qualifier in hostconfig is a side effect not the > change itself. > Yes thats what I was wanting to be clear about. The hostconfig file is modified, the ARDAgent process gets kickstarted, its relaunched, and reads the modified hostconfig file to know what to do. Similarly if I enable 'Remote Login' in Sys Prefs I notice it doesn't modify hostconfig but /System/Library/LaunchDaemons/ssh.plist. What process does Sys Prefs kickstart to get this change into effect? Russ From shoop at iwiring.net Tue Aug 14 18:38:32 2007 From: shoop at iwiring.net (Dan Shoop) Date: Tue Aug 14 18:38:38 2007 Subject: hostconfig process In-Reply-To: References: <0E8C5D12-42C0-4714-9DAA-AD22749EE074@autonomy.caltech.edu> Message-ID: <64002290-1D30-4E64-8CBF-24CBBA6B8F30@iwiring.net> On Aug 14, 2007, at 8:15 PM, R.L. Grigg wrote: > On Aug 14, 2007, at 4:52 PM, Dan Shoop wrote: >> >> On Aug 14, 2007, at 7:43 PM, R.L. Grigg wrote: >> >>> On Aug 10, 2007, at 4:06 PM, Justin C. Walker wrote: >>>> >>>> On Aug 10, 2007, at 11:11 , R.L. Grigg wrote: >>>> >>>>> Theres a remote OSX 10.4.10 system that I administor by ssh, >>>>> and after I modify /etc/hostconfig, what process do I need to >>>>> kill -HUP to have it read up the new settings so I dont have to >>>>> reboot it >>>> >>>> You need to reboot to have this file re-scanned. In essence, it >>>> provides a lot of basic settings for the system (processes that >>>> may run only at boot-time, or long-lived processes that have >>>> nothing to do with the boot process) to use, and without >>>> restarting the whole system, you won't get what you want. >>>> >>>> This may have changed in recent releases, but AFAIK, this is the >>>> still the case. >>> >>> For example in Sys Prefs under Sharing when you select to enable >>> Apple Remote Desktop it modifies the settings in /etc/hostconfig: >>> ARDAGENT=-YES- >>> and then somehow enables it without a reboot. I assume by >>> restarting some process. Just wondering which one? Or is there a >>> simpler way to do this. >> >> Actually you're misinterpreting that. >> >> When you invoke System Preferences to enable ARD it writes the >> value to hostconfig (so the system knows to start it next time) >> but also goes ahead and starts the agent through kickstart. The >> affect of changing the qualifier in hostconfig is a side effect >> not the change itself. >> > > Yes thats what I was wanting to be clear about. The hostconfig file > is modified, the ARDAgent process gets kickstarted, its relaunched, > and reads the modified hostconfig file to know what to do. :sigh: Except that it's that last part that is in error. It does not re-read hostconfig, it just writes to it, that's only read at system startup. `kickstart` is the name of the ARD program that starts ARD. That is kickstart does not need to know about hostconfig *at all* b/c it's already what the startup item invokes at system startup iff[sic] this value was set in hostconfig. That is hostconfig is *only* checked at system startup. (Or a startup item is invoked through systemstarter.) > Similarly if I enable 'Remote Login' in Sys Prefs I notice it > doesn't modify hostconfig but /System/Library/LaunchDaemons/ssh.plist. Correct. Because that's handled by launchd. > What process does Sys Prefs kickstart to get this change into effect? :larger sigh: It doesn't. RTFM about launchd. Setting launch to do something has launchd handle it all. -dhan ------------------------------------------------------------------------ Dan Shoop Tactical Operations Center: 1.866.901.8787 (24x7) Ph: 714.363.1174 AIM: iWiring From jerry.levan at eku.edu Tue Aug 14 18:39:01 2007 From: jerry.levan at eku.edu (Jerry LeVan) Date: Tue Aug 14 18:39:10 2007 Subject: hostconfig process Message-ID: > > On Aug 14, 2007, at 6:19 PM, Jerry LeVan wrote: > > > > > On Aug 14, 2007, at 4:11 PM, Dan Shoop wrote: > > > >> > >> On Aug 11, 2007, at 4:04 PM, Jerry LeVan wrote: > >> > >>> > >>>> > >>>> > ------------------------------------------------------------------- > >>>> --- > >>>> > >>>> Message: 1 > >>>> Date: Fri, 10 Aug 2007 16:06:09 -0700 > >>>> From: "Justin C. Walker" > >>>> Subject: Re: hostconfig process > >>>> To: omniadmin OSX > >>>> Message-ID: > >>>> Content-Type: text/plain; charset=US-ASCII; delsp=yes; > >>>> format=flowed > >>>> > >>>> > >>>> On Aug 10, 2007, at 11:11 , R.L. Grigg wrote: > >>>> > >>>>> Theres a remote OSX 10.4.10 system that I administor by ssh, and > >>>>> after I modify /etc/hostconfig, what process do I need to kill - > >>>>> HUP > >>>>> to have it read up the new settings so I dont have to reboot it > >>>> > >>>> You need to reboot to have this file re-scanned. In essence, it > >>>> provides a lot of basic settings for the system (processes > that may > >>>> run only at boot-time, or long-lived processes that have > nothing to > >>>> do with the boot process) to use, and without restarting the > whole > >>>> system, you won't get what you want. > >>>> > >>>> This may have changed in recent releases, but AFAIK, this is the > >>>> still the case. > >>>> > >>>> Justin > >>>> > >>> > >>> Have you tried "hostname -s newnane" (and setting the host name > >>> in hostconfig). > >> > >> Have you read hostconfig??? > >> > >> There's a lot more it defines than hostname. It defines global > >> variables that are use by SystemStartup items and many other > things. > >> > >> Also hostname set like that won't stick, and can change even while > >> the system is booted, because it's just plain the wrong way to set > >> it. > >> > >> > >> -dhan > > > > Chill out dan, try to focus on solutions rather than criticisms... > > The critiquing process is how peers learn from their peers and work > and analysis is reviewed. If you can't stand for critical analysis of > your work you have no place in the sciences, including computing > sciences. Through such critique bad practices are revealed dn > confirmation gained for good practices. This is the value of critical > review, a hallmark of the scientific process. > > Since hostconfig is used for a wide variety of things, focusing on > setting hostname through other means misses the question entirely. > It's a non-sequitur; you might as well have told him how to tie his > shoes. (I'm presuming you'd have gotten that right, while your advice > here is not only off topic but outright wrong.) > > /etc/hostconfig is read by rc files and every instantiation of every > SystemStartup item. > > Moreover using even hostconfig to set hostname has not only been > depreciated in Tiger it is specifically stated by Apple as something > *not* to do. Apple specifically states that no setting (other than - > Automatic-) for hostname be in hostconfig for Tiger and beyond. See > technote 303697 where they even go so far as to bold the word "not" > in a whole subsection titled "Leave hostname alone." > > But far more poignantly using `hostname` to set set the hostname > under OS X at all is completely off the mark and has never been the > correct method to set this parameter. Not only does it not provided > persistence across reboots but it won't even hold for any running > instance of the OS. It could therefore change very in-expectantly and > to great damage. (And it will, just trigger any change in networking.) > > The correct method for setting hostname is to use `scutil --set > HostName ` instead or `changeip` if running OS X Server. Only > then will it get properly registered by the OS and maintain > persistence. Yah, well I did indeed blow it, I thought that the original poster was simply trying to set the hostname remotely... That being said... See you made my point! You could have replied that the scutil and configd utiliies might be more appropriate but you chose to be pedantic and as always incomplete. Changing a hostname can be a complex action, I doubt that scutil is going to modify bind configuration options... I would hope that this forum is for exchanging ideas and rendering assistance to OSX admins. I suspect that the users of the forum are not 'publishing papers' and are not in need of your 'critiquing' and 'critical analysis' of their postings. I think/hope that most users of the forum would prefer responses that are positive rather than "that's not the right way". Jerry From jwelch at bynkii.com Tue Aug 14 20:50:55 2007 From: jwelch at bynkii.com (John C. Welch) Date: Tue Aug 14 20:51:13 2007 Subject: hostconfig process In-Reply-To: Message-ID: On 8/14/07 20:39 PM, "Jerry LeVan" wrote: >> The correct method for setting hostname is to use `scutil --set >> HostName ` instead or `changeip` if running OS X Server. Only >> then will it get properly registered by the OS and maintain >> persistence. > > Yah, well I did indeed blow it, I thought that the original poster > > was simply trying to set the hostname remotely... > > That being said... > > See you made my point! You could have replied that > > the scutil and configd utiliies might be more appropriate > > but you chose to be pedantic and as always incomplete. > > Changing a hostname can be a complex action, I doubt that scutil is > > going to modify bind configuration options... > > I would hope that this forum is for exchanging ideas and rendering > > assistance to OSX admins. I suspect that the users of the forum > > are not 'publishing papers' and are not in need of your 'critiquing' > > and 'critical analysis' of their postings. > > I think/hope that most users of the forum would prefer responses that > > are positive rather than "that's not the right way". Actually, I think Dan could give everyone a handjob and a hundred dollar bill, and it wouldn't matter. However, for Mac OS X client, I'd not use scutil anyway, but rather networksetup, as it's got a much cleaner way to go about this. -- John C. Welch Writer/Analyst Bynkii.com Mac and other opinions jwelch@bynkii.com From justin at mac.com Tue Aug 14 21:46:08 2007 From: justin at mac.com (Justin C. Walker) Date: Tue Aug 14 21:45:19 2007 Subject: hostconfig process In-Reply-To: References: <0E8C5D12-42C0-4714-9DAA-AD22749EE074@autonomy.caltech.edu> Message-ID: <4A4B93D9-A5D5-4182-BFE5-ACE704E7393B@mac.com> On Aug 14, 2007, at 16:43 , R.L. Grigg wrote: > On Aug 10, 2007, at 4:06 PM, Justin C. Walker wrote: >> >> On Aug 10, 2007, at 11:11 , R.L. Grigg wrote: >> >>> Theres a remote OSX 10.4.10 system that I administor by ssh, and >>> after I modify /etc/hostconfig, what process do I need to kill - >>> HUP to have it read up the new settings so I dont have to reboot it >> >> You need to reboot to have this file re-scanned. In essence, it >> provides a lot of basic settings for the system (processes that >> may run only at boot-time, or long-lived processes that have >> nothing to do with the boot process) to use, and without >> restarting the whole system, you won't get what you want. >> >> This may have changed in recent releases, but AFAIK, this is the >> still the case. > > For example in Sys Prefs under Sharing when you select to enable > Apple Remote Desktop it modifies the settings in /etc/hostconfig: > ARDAGENT=-YES- > and then somehow enables it without a reboot. I assume by > restarting some process. Just wondering which one? Or is there a > simpler way to do this. Are you getting a clearer picture of what is going on? If you are just interested in ARDAGENT, Dan gave you the answer, I think. For the general case, it's a bit too twisty to nail down and be able to bank on across releases: if it's "/etc/hostconfig" you want to modify, reboot is in order. If you are after a specific item therein, there may be an answer that does not require reboot (but that could change the next time the OS changes). Justin -- Justin C. Walker, Curmudgeon-At-Large Institute for the Absorption of Federal Funds -------- If you're not confused, You're not paying attention -------- From kremels at kreme.com Tue Aug 14 23:55:40 2007 From: kremels at kreme.com (LuKreme) Date: Tue Aug 14 23:56:05 2007 Subject: Latest Safari crash 3.0.3 (522.12.1) In-Reply-To: <36DF56E7-E174-4BD9-97AD-183B4B92A91E@xs4all.nl> References: <7E740FAA-0B3F-4579-966C-66553A0CAD49@xs4all.nl> <2370CA1E-BC36-4E48-8CEB-5A12384F5591@gmail.com> <36DF56E7-E174-4BD9-97AD-183B4B92A91E@xs4all.nl> Message-ID: <566F2F9C-5DF9-4032-9EEF-C338ECB72A23@kreme.com> On Aug 12, 2007, at 5:48 PM, Ren? v Amerongen wrote: > The menu items couldn't get build and did crash. I know its beta, > but I did expect that this kind of things should be catched. It was caught. By you. Hope you reported it on Radar. From newslists at autonomy.caltech.edu Wed Aug 15 09:12:17 2007 From: newslists at autonomy.caltech.edu (R.L. Grigg) Date: Wed Aug 15 09:12:22 2007 Subject: hostconfig process In-Reply-To: <4A4B93D9-A5D5-4182-BFE5-ACE704E7393B@mac.com> References: <0E8C5D12-42C0-4714-9DAA-AD22749EE074@autonomy.caltech.edu> <4A4B93D9-A5D5-4182-BFE5-ACE704E7393B@mac.com> Message-ID: <5391C00E-F6FD-4AD1-83B6-B782EB316C22@autonomy.caltech.edu> On Aug 14, 2007, at 9:46 PM, Justin C. Walker wrote: > > On Aug 14, 2007, at 16:43 , R.L. Grigg wrote: > >> On Aug 10, 2007, at 4:06 PM, Justin C. Walker wrote: >>> >>> On Aug 10, 2007, at 11:11 , R.L. Grigg wrote: >>> >>>> Theres a remote OSX 10.4.10 system that I administor by ssh, and >>>> after I modify /etc/hostconfig, what process do I need to kill - >>>> HUP to have it read up the new settings so I dont have to reboot it >>> >>> You need to reboot to have this file re-scanned. In essence, it >>> provides a lot of basic settings for the system (processes that >>> may run only at boot-time, or long-lived processes that have >>> nothing to do with the boot process) to use, and without >>> restarting the whole system, you won't get what you want. >>> >>> This may have changed in recent releases, but AFAIK, this is the >>> still the case. >> >> For example in Sys Prefs under Sharing when you select to enable >> Apple Remote Desktop it modifies the settings in /etc/hostconfig: >> ARDAGENT=-YES- >> and then somehow enables it without a reboot. I assume by >> restarting some process. Just wondering which one? Or is there a >> simpler way to do this. > > Are you getting a clearer picture of what is going on? If you are > just interested in ARDAGENT, Dan gave you the answer, I think. For > the general case, it's a bit too twisty to nail down and be able to > bank on across releases: if it's "/etc/hostconfig" you want to > modify, reboot is in order. If you are after a specific item > therein, there may be an answer that does not require reboot (but > that could change the next time the OS changes). > Yes thanks I'm just trying to bridge the gap between theory and reality. For the ARDAGENT case, it seems that ARDHelper parses the hostconfig file for the ARDAGENT=-YES- line, and if -YES- launches ARDAgent. For the sshd case, its launch is based on the .plist, but I'm still overlooking something: % sudo launchctl load -w /System/Library/LaunchDaemons/ssh.plist Workaround Bonjour: Unknown error: 0 Thanks Russ From costabel at wanadoo.fr Wed Aug 15 09:26:08 2007 From: costabel at wanadoo.fr (Martin Costabel) Date: Wed Aug 15 09:26:13 2007 Subject: hostconfig process In-Reply-To: References: Message-ID: <46C32920.2060004@wanadoo.fr> John C. Welch wrote: [] > bill, and it wouldn't matter. However, for Mac OS X client, I'd not use > scutil anyway, but rather networksetup, as it's got a much cleaner way to go > about this. /usr/sbin/networksetup exists on Mac OS X server. On Tiger client, it comes in two flavors, networksetup-jaguar and networksetup-panther (how clean is that on Tiger?), the latter symlinked to networksetup; but you won't see it if you don't happen to have /System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Support in your PATH. Together with its brother systemsetup, this is a promising candidate for the "worst-documented and most obscure Mac OS X command" contest. Anyway, you can't set the hostname with it, only the computername. Dan's scutil --set HostName, although also undocumented, has the advantage of working. -- Martin From mike at pinataperspective.com Wed Aug 15 11:07:21 2007 From: mike at pinataperspective.com (Mike Friedman) Date: Wed Aug 15 11:07:45 2007 Subject: Backup Email Providers Message-ID: This is slightly off topic, but can anyone recommend a backup email provider? One of my clients has been hosting their own email and because of a horrible DSL experience with AT&T's Evil Empire, they've been offline quite a bit lately, which has caused some problems. So we're looking for a backup email provider to occasionally take up the slack with a backup MX record. Thanks in advance for any recommendations. ======================= Mike Friedman MGF Consulting Computers without Attitude http://www.mgfconsulting.net 415-648-6560 (office) 415-823-9990 (mobile) Yahoo Messenger/AIM: sfmike64 ========================== This is not the best of all possible worlds, in case you missed the irony in Voltaire. Mike Friedman San Francisco, CA From shoop at iwiring.net Wed Aug 15 11:45:46 2007 From: shoop at iwiring.net (Dan Shoop) Date: Wed Aug 15 11:45:57 2007 Subject: Backup Email Providers In-Reply-To: References: Message-ID: <18301743-C4B6-4043-8BAC-2C834E00D440@iwiring.net> On Aug 15, 2007, at 2:07 PM, Mike Friedman wrote: > This is slightly off topic, but can anyone recommend a backup email > provider? One of my clients has been hosting their own email and > because of a horrible DSL experience with AT&T's Evil Empire, > they've been offline quite a bit lately, which has caused some > problems. > > So we're looking for a backup email provider to occasionally take > up the slack with a backup MX record. > I'd recommend DynDNS. They offer secondary MX and primary MX (aka MailHop, which can relay to any port at any IP.) Rates are low, less than a round of beers at the bar for an annual service plan. However realize that SMTP mail sent through real MTAs will queue so technically this is unnecessary. -dhan ------------------------------------------------------------------------ Dan Shoop Tactical Operations Center: 1.866.901.8787 (24x7) Ph: 714.363.1174 AIM: iWiring From newslists at autonomy.caltech.edu Wed Aug 15 12:08:23 2007 From: newslists at autonomy.caltech.edu (R.L. Grigg) Date: Wed Aug 15 12:08:31 2007 Subject: Preventing connection to open wireless networks Message-ID: Is there a way on OSX 10.4.10 to disable it from connecting to open wireless networks? Ie to make it only able to connect to WPA networks? System Prefs doesnt seem to have that option. Russ From jwelch at bynkii.com Wed Aug 15 12:24:45 2007 From: jwelch at bynkii.com (John C. Welch) Date: Wed Aug 15 12:25:04 2007 Subject: hostconfig process In-Reply-To: <46C32920.2060004@wanadoo.fr> Message-ID: On 8/15/07 11:26 AM, "Martin Costabel" wrote: >> bill, and it wouldn't matter. However, for Mac OS X client, I'd not use >> scutil anyway, but rather networksetup, as it's got a much cleaner way to go >> about this. > > /usr/sbin/networksetup exists on Mac OS X server. On Tiger client, it > comes in two flavors, networksetup-jaguar and networksetup-panther (how > clean is that on Tiger?), the latter symlinked to networksetup; but you > won't see it if you don't happen to have > /System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Support > in your PATH. If you just use /System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Support/ networksetup, you automatically get the proper one for your OS. You just fully path it, and bob's your uncle. > > Together with its brother systemsetup, this is a promising candidate for > the "worst-documented and most obscure Mac OS X command" contest. Huh? It's rather fully documented, and it's hardly obscure. It's also found on every default install of the OS since 10.3 > > Anyway, you can't set the hostname with it, only the computername. > Dan's scutil --set HostName, although also undocumented, has the > advantage of working. Well, that depends if it's setting the hostname at the same time as the computer name. (I forget, and I honestly don't feel like checking) Of course, if your DNS has different ideas about the hostname for that IP address, then that will probably override things anyway. -- John C. Welch Writer/Analyst Bynkii.com Mac and other opinions jwelch@bynkii.com From kremels at kreme.com Wed Aug 15 16:01:19 2007 From: kremels at kreme.com (LuKreme) Date: Wed Aug 15 16:01:43 2007 Subject: Backup Email Providers In-Reply-To: References: Message-ID: <35CD0A93-AF4E-4DE5-8C5E-302F838606D7@kreme.com> On Aug 15, 2007, at 1:07 PM, Mike Friedman wrote: > This is slightly off topic, but can anyone recommend a backup email > provider? One of my clients has been hosting their own email and > because of a horrible DSL experience with AT&T's Evil Empire, > they've been offline quite a bit lately, which has caused some > problems. > > So we're looking for a backup email provider to occasionally take > up the slack with a backup MX record. DynDNS.org provides very reliable services and is quite cheap. More importantly it is trivial to setup. From kremels at kreme.com Wed Aug 15 00:07:22 2007 From: kremels at kreme.com (LuKreme) Date: Wed Aug 15 16:22:24 2007 Subject: hostconfig process In-Reply-To: <4A4B93D9-A5D5-4182-BFE5-ACE704E7393B@mac.com> References: <0E8C5D12-42C0-4714-9DAA-AD22749EE074@autonomy.caltech.edu> <4A4B93D9-A5D5-4182-BFE5-ACE704E7393B@mac.com> Message-ID: <4AC3EC44-DA3B-410A-A938-0A8A56F8D8DB@kreme.com> On Aug 14, 2007, at 11:46 PM, Justin C. Walker wrote: > if it's "/etc/hostconfig" you want to modify, reboot is in order. > If you are after a specific item therein, there may be an answer > that does not require reboot (but that could change the next time > the OS changes). Well, yes in practice most of the time for most values of 'require' but it is possible to do nearly anything, if you really want to work at it, without rebooting. I've seen someone load a new kernel<1> without rebooting a machine, but that was just showing off and of course it took quite a lot longer than rebooting and still required restarting every process. We called it the 'hot boot' to distinguish it from a cold boot or a merely warm boot. :) Funny part is, about 15 minutes after the hot boot there was a power outage and the machine had to be shut down anyway, but Mr showoff did collect a beer from each of the people who bet he couldn't do it. <1> This was not OS X, but some UNIX ish system (AT&T System V iirc). From shoop at iwiring.net Wed Aug 15 17:16:01 2007 From: shoop at iwiring.net (Dan Shoop) Date: Wed Aug 15 17:16:06 2007 Subject: Preventing connection to open wireless networks In-Reply-To: References: Message-ID: <710CBF16-F37D-414B-80D6-C688E58DCEAD@iwiring.net> On Aug 15, 2007, at 3:08 PM, R.L. Grigg wrote: > Is there a way on OSX 10.4.10 to disable it from connecting to open > wireless networks? Ie to make it only able to connect to WPA > networks? System Prefs doesnt seem to have that option. > You have the ability to limit connections to only networks you have defined. Not sure what, if any, merit there is to limiting connections to only WPA wifi points. If the need/concern is "security" than this is woolly thinking. Use a VPN. -dhan ------------------------------------------------------------------------ Dan Shoop Tactical Operations Center: 1.866.901.8787 (24x7) Ph: 714.363.1174 AIM: iWiring From shoop at iwiring.net Wed Aug 15 17:24:34 2007 From: shoop at iwiring.net (Dan Shoop) Date: Wed Aug 15 17:24:39 2007 Subject: hostconfig process In-Reply-To: References: Message-ID: <2F6D261F-C40D-4D15-91BF-07D6DAC7E74F@iwiring.net> On Aug 14, 2007, at 11:50 PM, John C. Welch wrote: > However, for Mac OS X client, I'd not use > scutil anyway, but rather networksetup, as it's got a much cleaner > way to go > about this. > networksetup wasn't present in all versions of OS X yet IIRC scutil has been. Hence why I suggested it. -dhan ------------------------------------------------------------------------ Dan Shoop Tactical Operations Center: 1.866.901.8787 (24x7) Ph: 714.363.1174 AIM: iWiring From shoop at iwiring.net Wed Aug 15 17:24:37 2007 From: shoop at iwiring.net (Dan Shoop) Date: Wed Aug 15 17:24:42 2007 Subject: hostconfig process In-Reply-To: <5391C00E-F6FD-4AD1-83B6-B782EB316C22@autonomy.caltech.edu> References: <0E8C5D12-42C0-4714-9DAA-AD22749EE074@autonomy.caltech.edu> <4A4B93D9-A5D5-4182-BFE5-ACE704E7393B@mac.com> <5391C00E-F6FD-4AD1-83B6-B782EB316C22@autonomy.caltech.edu> Message-ID: On Aug 15, 2007, at 12:12 PM, R.L. Grigg wrote: > For the ARDAGENT case, it seems that ARDHelper parses the > hostconfig file for the ARDAGENT=-YES- line, and if -YES- launches > ARDAgent. It does not. I thought I made this clear. > For the sshd case, its launch is based on the .plist, but I'm still > overlooking something: > % sudo launchctl load -w /System/Library/LaunchDaemons/ssh.plist > Workaround Bonjour: Unknown error: 0 No it's launch is not based on the .plist (especially since the plist could have it disabled) it's launch is based on launchd knowing if it's supposed to keep the service active because it's loaded as a launchdeamom and is marked as being active. Note this latter point. The plist could be there, it could be loaded and it could not be active or configured to launch. As for what you're overlooking it's that you are still approaching this from the wrong way and trying to mold your observations to incorrect operations. RTFM the Mac OS X Internals book. It's all quite simple. -dhan ------------------------------------------------------------------------ Dan Shoop Tactical Operations Center: 1.866.901.8787 (24x7) Ph: 714.363.1174 AIM: iWiring From shoop at iwiring.net Wed Aug 15 17:31:22 2007 From: shoop at iwiring.net (Dan Shoop) Date: Wed Aug 15 17:31:27 2007 Subject: Xserve G5 with megaraid can not boot after sudden powerloss In-Reply-To: <9EF2ED69-DF6E-4A61-B640-C3B599CD38E5@cunde.de> References: <9EF2ED69-DF6E-4A61-B640-C3B599CD38E5@cunde.de> Message-ID: <38E35381-7FB3-40DB-98DA-DF95A3DC972B@iwiring.net> On Aug 14, 2007, at 9:54 AM, Christoph Ewering wrote: > Hello! > > I just got a call from a customer that they accidently unplugged a > running server. And after they restarted the server it will show a > grey screen and a blinking sign. The server is a Xserve G5 with a > megaraid card running a RAID-5 array that contains one journaled > volume with the operating system. > > Now I am a little bit confused - why the server can not boot any more? > This should not happen, right? > Looks like the filesystem was damaged, right? But how? The megaraid > has a backup-battery (if I remember right) and the filesystem on > the volume is journaled. So I was thinking that a sudden powerloss > could not damage the filesystem in such a way that the system i > unbootable. > > The server has no heavy load when it was unplugged - to be more > clear - this special server is idling 99.9% of the day, but it > contains one service that is needed from time to time. > > I appreciate every hint how to repair this megaraid problem. > > Should I start from DVD and repair with DiskUtility? Something I > can check with megaraid? I think I can boot the server with a MacOS > X 10.4.7 DVD. It's well known that the MegaRAID card (and many others) may not properly flush cache to disk during shutdown (especially during unorderly shutdown). It's one of the reasons they're no longer sold. -dhan ------------------------------------------------------------------------ Dan Shoop Tactical Operations Center: 1.866.901.8787 (24x7) Ph: 714.363.1174 AIM: iWiring From newslists at autonomy.caltech.edu Wed Aug 15 18:03:56 2007 From: newslists at autonomy.caltech.edu (R.L. Grigg) Date: Wed Aug 15 18:04:00 2007 Subject: hostconfig process In-Reply-To: References: <0E8C5D12-42C0-4714-9DAA-AD22749EE074@autonomy.caltech.edu> <4A4B93D9-A5D5-4182-BFE5-ACE704E7393B@mac.com> <5391C00E-F6FD-4AD1-83B6-B782EB316C22@autonomy.caltech.edu> Message-ID: On Aug 15, 2007, at 5:24 PM, Dan Shoop wrote: > > On Aug 15, 2007, at 12:12 PM, R.L. Grigg wrote: >> For the ARDAGENT case, it seems that ARDHelper parses the >> hostconfig file for the ARDAGENT=-YES- line, and if -YES- launches >> ARDAgent. > > It does not. I thought I made this clear. I guess you didn't make it clear to my system, cuz thats the way its working here. > >> For the sshd case, its launch is based on the .plist, but I'm >> still overlooking something: >> % sudo launchctl load -w /System/Library/LaunchDaemons/ssh.plist >> Workaround Bonjour: Unknown error: 0 > > No it's launch is not based on the .plist (especially since the > plist could have it disabled) it's launch is based on launchd > knowing if it's supposed to keep the service active because it's > loaded as a launchdeamom and is marked as being active. Note this > latter point. The plist could be there, it could be loaded and it > could not be active or configured to launch. This much I understand, but what is the mechanism involved here? > > As for what you're overlooking it's that you are still approaching > this from the wrong way and trying to mold your observations to > incorrect operations. Wow! I would have never guessed! Thats why these user lists are so helpful... > > RTFM the Mac OS X Internals book. It's all quite simple. Not many of us have the luxury of sitting down to read a tome when we're getting yelled at to get things going asap. A useful tip from another user can help out tremendously in a pinch. Thanks! Russ From jwelch at bynkii.com Wed Aug 15 21:05:13 2007 From: jwelch at bynkii.com (John C. Welch) Date: Wed Aug 15 21:05:29 2007 Subject: hostconfig process In-Reply-To: <2F6D261F-C40D-4D15-91BF-07D6DAC7E74F@iwiring.net> Message-ID: On 8/15/07 19:24 PM, "Dan Shoop" wrote: >> However, for Mac OS X client, I'd not use >> scutil anyway, but rather networksetup, as it's got a much cleaner >> way to go >> about this. >> > > networksetup wasn't present in all versions of OS X yet IIRC scutil > has been. Hence why I suggested it. True, although it's default in Mac OS X 10.3 and newer. If you have an ARD infrastructure you have it as well. Besides, IIRC, in Jag and earlier, scutil was a bit more painful than it is these days. -- John C. Welch Writer/Analyst Bynkii.com Mac and other opinions jwelch@bynkii.com From shoop at iwiring.net Wed Aug 15 21:38:30 2007 From: shoop at iwiring.net (Dan Shoop) Date: Wed Aug 15 21:38:36 2007 Subject: hostconfig process In-Reply-To: References: <0E8C5D12-42C0-4714-9DAA-AD22749EE074@autonomy.caltech.edu> <4A4B93D9-A5D5-4182-BFE5-ACE704E7393B@mac.com> <5391C00E-F6FD-4AD1-83B6-B782EB316C22@autonomy.caltech.edu> Message-ID: <70C66D45-C422-4D0D-8AB0-4F5159A13B81@iwiring.net> On Aug 15, 2007, at 9:03 PM, R.L. Grigg wrote: > On Aug 15, 2007, at 5:24 PM, Dan Shoop wrote: >> >> On Aug 15, 2007, at 12:12 PM, R.L. Grigg wrote: >>> For the ARDAGENT case, it seems that ARDHelper parses the >>> hostconfig file for the ARDAGENT=-YES- line, and if -YES- >>> launches ARDAgent. >> >> It does not. I thought I made this clear. > > I guess you didn't make it clear to my system, cuz thats the way > its working here. What makes you think this? I'd like to see your "proof". Perhaps, just perhaps , there's some other factor that is at play here and the presense of the line in hostconfig is an ancillary effect. Perhaps if you ran fslogger you might know more ;) While it may "seem" like when the sun is directly overhead at high noon that it causes Big Ben to strike twelve, this is in fact not the case at all. Coincidence is not causality and correlation does not imply causation. >> >>> For the sshd case, its launch is based on the .plist, but I'm >>> still overlooking something: >>> % sudo launchctl load -w /System/Library/LaunchDaemons/ssh.plist >>> Workaround Bonjour: Unknown error: 0 >> >> No it's launch is not based on the .plist (especially since the >> plist could have it disabled) it's launch is based on launchd >> knowing if it's supposed to keep the service active because it's >> loaded as a launchdeamom and is marked as being active. Note this >> latter point. The plist could be there, it could be loaded and it >> could not be active or configured to launch. > > This much I understand, but what is the mechanism involved here? launchd If you don't understand that then let's just say "kernel magicks" and be done. >> >> As for what you're overlooking it's that you are still approaching >> this from the wrong way and trying to mold your observations to >> incorrect operations. > > Wow! I would have never guessed! Thats why these user lists are so > helpful... You shouldn't need user lists for this. "It is a capital mistake to theorise before one has data. Insensibly one begins to twist facts to suit theories, instead of theories to suit facts." - Sherlock Holmes in "A SCANDAL IN BOHEMIA" by Sir Arthur Conan Doyle >> RTFM the Mac OS X Internals book. It's all quite simple. > > Not many of us have the luxury of sitting down to read a tome when > we're getting yelled at to get things going asap. A useful tip from > another user can help out tremendously in a pinch. Yet you appear to have plenty of time for wild theories, wild goose chases, and babble. If indeed efficiency of time was of value to you, you might find that reading about how things operate, even if just that section of a book or a man page, might well reward itself and payoff with interest compared to time spent chasing unrewarding misconceptions. That is to say it's the lazy man that reads once, and then thinks correctly. Instead you presume everyone else has plenty of time to waste helping you when you could have helped yourself. That the time required to solicit a useful tip from another is quicker than finding the answer for yourself immediately. That is a luxury that I doubt either of us have, and moreover pursuing the wrong course is far more wasteful. -dhan ------------------------------------------------------------------------ Dan Shoop Tactical Operations Center: 1.866.901.8787 (24x7) Ph: 714.363.1174 AIM: iWiring From newslists at autonomy.caltech.edu Thu Aug 16 13:21:16 2007 From: newslists at autonomy.caltech.edu (R.L. Grigg) Date: Thu Aug 16 13:21:21 2007 Subject: hostconfig process In-Reply-To: <70C66D45-C422-4D0D-8AB0-4F5159A13B81@iwiring.net> References: <0E8C5D12-42C0-4714-9DAA-AD22749EE074@autonomy.caltech.edu> <4A4B93D9-A5D5-4182-BFE5-ACE704E7393B@mac.com> <5391C00E-F6FD-4AD1-83B6-B782EB316C22@autonomy.caltech.edu> <70C66D45-C422-4D0D-8AB0-4F5159A13B81@iwiring.net> Message-ID: <4E19A285-7D5F-4978-9E9F-47740A51D56F@autonomy.caltech.edu> On Aug 15, 2007, at 9:38 PM, Dan Shoop wrote: > > On Aug 15, 2007, at 9:03 PM, R.L. Grigg wrote: > >> On Aug 15, 2007, at 5:24 PM, Dan Shoop wrote: >>> >>> On Aug 15, 2007, at 12:12 PM, R.L. Grigg wrote: >>>> For the ARDAGENT case, it seems that ARDHelper parses the >>>> hostconfig file for the ARDAGENT=-YES- line, and if -YES- >>>> launches ARDAgent. >>> >>> It does not. I thought I made this clear. >> >> I guess you didn't make it clear to my system, cuz thats the way >> its working here. > > What makes you think this? I'd like to see your "proof". 'Proof is in the pudding' as they say. 'It just works' here the way I described -- even when Big Ben isn't chiming. I'm sorry if this violates Shoop's Law. > > Perhaps, just perhaps , there's some other factor that > is at play here and the presense of the line in hostconfig is an > ancillary effect. > > Perhaps if you ran fslogger you might know more ;) Perhaps if you actually tried it, you might know more, too. ;) > > While it may "seem" like when the sun is directly overhead at high > noon that it causes Big Ben to strike twelve, this is in fact not > the case at all. > > Coincidence is not causality and correlation does not imply causation. "There are more things in Heaven and Earth, Dan, than are dreamt of in your philosophy." > >>> >>>> For the sshd case, its launch is based on the .plist, but I'm >>>> still overlooking something: >>>> % sudo launchctl load -w /System/Library/LaunchDaemons/ >>>> ssh.plist >>>> Workaround Bonjour: Unknown error: 0 >>> >>> No it's launch is not based on the .plist (especially since the >>> plist could have it disabled) it's launch is based on launchd >>> knowing if it's supposed to keep the service active because it's >>> loaded as a launchdeamom and is marked as being active. Note this >>> latter point. The plist could be there, it could be loaded and it >>> could not be active or configured to launch. >> >> This much I understand, but what is the mechanism involved here? > > launchd > > If you don't understand that then let's just say "kernel magicks" > and be done. Funny, google doesn't return any results for "kernel magicks". Should I remove the quotes from the search string? > >>> >>> As for what you're overlooking it's that you are still >>> approaching this from the wrong way and trying to mold your >>> observations to incorrect operations. >> >> Wow! I would have never guessed! Thats why these user lists are so >> helpful... > > You shouldn't need user lists for this. By golly, since I havent gotten anything useful in response to my queries, I'd say you're quite right! A open and shut case of unreal expectations. My bad. > > "It is a capital mistake to theorise before one has data. > Insensibly one begins to twist facts to suit theories, instead of > theories to suit facts." - Sherlock Holmes in "A SCANDAL IN > BOHEMIA" by Sir Arthur Conan Doyle > >>> RTFM the Mac OS X Internals book. It's all quite simple. >> >> Not man