From filipp at mac.com Sat Mar 1 01:30:08 2008 From: filipp at mac.com (Filipp Lepalaan) Date: Sat Mar 1 02:32:07 2008 Subject: [X-Unix] MySQL and PhpMyAdmin In-Reply-To: References: Message-ID: <532816A8-30E0-46A8-848D-4A735E6315D5@mac.com> Hi Craig, Could this be because root is only allowed access from localhost (for example) and your using a different hostname in phpmyadmin (like the Bonjour name)? -filipp On 29.02.2008, at 17:42, Craig Hoffman wrote: > Hi There, > I have a strange problem with MySQL and PhpMyAdmin. I installed > MySQL (latest version -- package install), then installed PhpMyAdmin > (latest version) on a Macbook. The install went fine and > everything worked. I logged in MySQL via PhpMyAdmin to change the > root password. I also added the new root password to PhpMyAdmin > config file. Restarted MySQL. Now PhpMyAdmin is telling me "Access > denied for user "root" (using password: Yes). I've checked several > times the password and its correct in both PhpMyAdmin and MySQL. > What's strange is I can log into MySQL via command with the new root > password and it works fine. > > Any thoughts? > _______________________ > Craig Hoffman > iChat / AIM: m0untaind0g > _______________________ > > > > > _______________________________________________ > X-Unix mailing list > X-Unix@listserver.themacintoshguy.com > http://listserver.themacintoshguy.com/mailman/listinfo/x-unix From choffman at eclimb.net Sat Mar 1 06:55:36 2008 From: choffman at eclimb.net (Craig Hoffman) Date: Sat Mar 1 06:55:45 2008 Subject: [X-Unix] MySQL and PhpMyAdmin In-Reply-To: <532816A8-30E0-46A8-848D-4A735E6315D5@mac.com> References: <532816A8-30E0-46A8-848D-4A735E6315D5@mac.com> Message-ID: <3535CB4F-3D18-4481-AF1A-0926AA1F3994@eclimb.net> In this case, I don't think so. In the config file for PhpMyAdmin its set to localhost. I've tried different hostnames (IP, Bonjour, Etc..) and no luck. _______________________ Craig Hoffman iChat / AIM: m0untaind0g _______________________ On Mar 1, 2008, at 2:30 AM, Filipp Lepalaan wrote: > Hi Craig, > > Could this be because root is only allowed access from localhost > (for example) and > your using a different hostname in phpmyadmin (like the Bonjour name)? > > > -filipp > > On 29.02.2008, at 17:42, Craig Hoffman wrote: > >> Hi There, >> I have a strange problem with MySQL and PhpMyAdmin. I installed >> MySQL (latest version -- package install), then installed >> PhpMyAdmin (latest version) on a Macbook. The install went fine >> and everything worked. I logged in MySQL via PhpMyAdmin to change >> the root password. I also added the new root password to >> PhpMyAdmin config file. Restarted MySQL. Now PhpMyAdmin is >> telling me "Access denied for user "root" (using password: Yes). >> I've checked several times the password and its correct in both >> PhpMyAdmin and MySQL. What's strange is I can log into MySQL via >> command with the new root password and it works fine. >> >> Any thoughts? >> _______________________ >> Craig Hoffman >> iChat / AIM: m0untaind0g >> _______________________ >> >> >> >> >> _______________________________________________ >> X-Unix mailing list >> X-Unix@listserver.themacintoshguy.com >> http://listserver.themacintoshguy.com/mailman/listinfo/x-unix > > _______________________________________________ > X-Unix mailing list > X-Unix@listserver.themacintoshguy.com > http://listserver.themacintoshguy.com/mailman/listinfo/x-unix From rossman at columbia.edu Sun Mar 9 12:34:16 2008 From: rossman at columbia.edu (Ken Rossman) Date: Sun Mar 9 12:34:24 2008 Subject: [X-Unix] Altering system parameters (e.g. IP addresses) on Mac OS X server In-Reply-To: <20071221145514.GB204@Macintosh.local> References: <8A00FEE8-546B-4555-A806-0E2F4A9B575A@gmail.com> <20071217182751.GG485@4321.tv> <20071217231947.GA202@Macintosh.local> <20071221145514.GB204@Macintosh.local> Message-ID: <04FC9E98-F332-4154-9047-7ED5AFFF0945@columbia.edu> Folks, I have a need to change some IP address range info on a Mac server platform (running OS X server), but don't have a physical console, and can't remote desktop into it. I can only (at present) open a command line (ssh) shell to it. I need to change the server's default IP address to a different network range, then reboot it, and hope I can still get on it. What are the command line incantations I need (beyond just editing / etc/hosts, which I have done already) to make the server's default en0 address change from one network to another. Thanks, K From ecrist at secure-computing.net Sun Mar 9 12:38:51 2008 From: ecrist at secure-computing.net (=?utf-8?B?RXJpYyBGIENyaXN0?=) Date: Sun Mar 9 12:41:56 2008 Subject: [X-Unix] Altering system parameters (e.g. IP addresses) on Mac OS Xserver In-Reply-To: <04FC9E98-F332-4154-9047-7ED5AFFF0945@columbia.edu> References: <8A00FEE8-546B-4555-A806-0E2F4A9B575A@gmail.com><20071217182751.GG485@4321.tv><20071217231947.GA202@Macintosh.local><20071221145514.GB204@Macintosh.local><04FC9E98-F332-4154-9047-7ED5AFFF0945@columbia.edu> Message-ID: <1994528068-1205091692-cardhu_decombobulator_blackberry.rim.net-1787843921-@bxe131.bisx.prod.on.blackberry> Why do you have to reboot? --- Eric F Crist Secure Computing Networks -----Original Message----- From: Ken Rossman Date: Sun, 9 Mar 2008 15:34:16 To:"A place to discuss Mac OS X from the perspective of the command line." Subject: [X-Unix] Altering system parameters (e.g. IP addresses) on Mac OS X server Folks, I have a need to change some IP address range info on a Mac server platform (running OS X server), but don't have a physical console, and can't remote desktop into it. I can only (at present) open a command line (ssh) shell to it. I need to change the server's default IP address to a different network range, then reboot it, and hope I can still get on it. What are the command line incantations I need (beyond just editing / etc/hosts, which I have done already) to make the server's default en0 address change from one network to another. Thanks, K _______________________________________________ X-Unix mailing list X-Unix@listserver.themacintoshguy.com http://listserver.themacintoshguy.com/mailman/listinfo/x-unix From rossman at columbia.edu Sun Mar 9 12:45:56 2008 From: rossman at columbia.edu (Ken Rossman) Date: Sun Mar 9 12:46:38 2008 Subject: [X-Unix] Altering system parameters (e.g. IP addresses) on Mac OS Xserver In-Reply-To: <1994528068-1205091692-cardhu_decombobulator_blackberry.rim.net-1787843921-@bxe131.bisx.prod.on.blackberry> References: <8A00FEE8-546B-4555-A806-0E2F4A9B575A@gmail.com><20071217182751.GG485@4321.tv><20071217231947.GA202@Macintosh.local><20071221145514.GB204@Macintosh.local><04FC9E98-F332-4154-9047-7ED5AFFF0945@columbia.edu> <1994528068-1205091692-cardhu_decombobulator_blackberry.rim.net-1787843921-@bxe131.bisx.prod.on.blackberry> Message-ID: > Why do you have to reboot? I probably don't... you're right... (silly me - this is not Windows) :-) From ecrist at secure-computing.net Sun Mar 9 13:04:36 2008 From: ecrist at secure-computing.net (=?utf-8?B?RXJpYyBGIENyaXN0?=) Date: Sun Mar 9 13:07:26 2008 Subject: [X-Unix] Altering system parameters (e.g. IP addresses) on Mac OSXserver In-Reply-To: References: <8A00FEE8-546B-4555-A806-0E2F4A9B575A@gmail.com><20071217182751.GG485@4321.tv><20071217231947.GA202@Macintosh.local><20071221145514.GB204@Macintosh.local><04FC9E98-F332-4154-9047-7ED5AFFF0945@columbia.edu><1994528068-1205091692-cardhu_decombobulator_blackberry.rim.net-1787843921-@bxe131.bisx.prod.on.blackberry> Message-ID: <539006055-1205093237-cardhu_decombobulator_blackberry.rim.net-1216566457-@bxe131.bisx.prod.on.blackberry> Ken, was driving when I sent the last message. Ifconfig will get you a 'running' solution. I don't know where OS X keeps it's setting permanently. This will get you going for now, though. A reboot will over-write the new settings. --- Eric F Crist Secure Computing Networks -----Original Message----- From: Ken Rossman Date: Sun, 9 Mar 2008 15:45:56 To:ecrist@secure-computing.net,"A place to discuss Mac OS X from the perspective of the command line." Subject: Re: [X-Unix] Altering system parameters (e.g. IP addresses) on Mac OS Xserver > Why do you have to reboot? I probably don't... you're right... (silly me - this is not Windows) :-) _______________________________________________ X-Unix mailing list X-Unix@listserver.themacintoshguy.com http://listserver.themacintoshguy.com/mailman/listinfo/x-unix From seasoft at west.net Sun Mar 9 13:25:54 2008 From: seasoft at west.net (Richard Hartman) Date: Sun Mar 9 13:26:01 2008 Subject: [X-Unix] Mysterious Volume in Terminal Message-ID: <343A9E03-1CDB-4B01-BD81-AC87E7188154@west.net> This is giving me fits. When booted from the (unpartitioned) internal drive of my Intel iMac (OS 10.5.2), *with all firewire and usb drives unplugged*, I see the following in terminal: $ ls -la /Vol* total 24 drwxrwxrwt@ 5 root admin 170 Mar 9 12:48 . drwxrwxr-t@ 60 root admin 2108 Mar 4 12:41 .. -rw-rw-rw-@ 1 rjh admin 6148 May 17 2007 .DS_Store drwxr-xr-x 3 root admin 102 Nov 6 19:08 Back2 lrwxr-xr-x 1 root admin 1 Mar 9 12:48 iMac20 -> / The "Back2" volume does not show in the Finder or on the desktop, does not show as a partition of my internal drive (in Drive Utility), or anywhere else other than the above listing. I HAD a "Back2" volume a long while back on a firewire drive, but it no longer exists on any drive (it was on a drive later reformatted and, in any case, not even plugged into the mac at the moment). If I cd into the "Back2" volume and view its contents, it appears to comprise the long-since lost Back2 firewire volume. I can drill down and open files that no longer even exist in my iMac20 directory structure, so the indicated "Back2" data is actually present. I have done a repair from Disk Utility, which gave a clean bill of health. The console & system logs show no mention of Back2, and DiskWarrior 4.0 sees nothing either. My best guess: I inadvertently made a superduper clone of Back2 onto my internal hard drive at some point (evidently, from the time stamps on the terminal directories, last November). Could that be the cause of what I am seeing? Here is some of the Back2 directory info; the time stamps seem to point to November 2007, which is about when Back2 disappeared from the scene. ======================== $ ls -la /Volumes/Back2/ total 0 drwxr-xr-x 3 root admin 102 Nov 6 19:08 . drwxrwxrwt@ 5 root admin 170 Mar 9 12:48 .. drwxr-xr-x 7 root admin 238 Nov 6 19:26 Users $ ls -la /Volumes/Back2/Users total 16 drwxr-xr-x 7 root admin 238 Nov 6 19:26 . drwxr-xr-x 3 root admin 102 Nov 6 19:08 .. -rw-rw-r--@ 1 rjh admin 6148 Oct 15 12:51 .DS_Store -rw-r--r-- 1 root wheel 0 Dec 25 2005 .localized drwxr-xr-x 14 root admin 476 Nov 6 19:25 Shared drwxr-xr-x 44 root admin 1496 Nov 6 19:25 rjh drwxr-xr-x 17 root admin 578 Nov 6 19:26 sss ================== How do I delete this rogue volume and make it disappear from my Volumes listing? And, presumably, recover a bit of disk space in the process. Grateful for any guidance here, Richard From rossman at columbia.edu Sun Mar 9 13:37:11 2008 From: rossman at columbia.edu (Ken Rossman) Date: Sun Mar 9 13:37:35 2008 Subject: [X-Unix] Altering system parameters (e.g. IP addresses) on Mac OSXserver In-Reply-To: <539006055-1205093237-cardhu_decombobulator_blackberry.rim.net-1216566457-@bxe131.bisx.prod.on.blackberry> References: <8A00FEE8-546B-4555-A806-0E2F4A9B575A@gmail.com><20071217182751.GG485@4321.tv><20071217231947.GA202@Macintosh.local><20071221145514.GB204@Macintosh.local><04FC9E98-F332-4154-9047-7ED5AFFF0945@columbia.edu><1994528068-1205091692-cardhu_decombobulator_blackberry.rim.net-1787843921-@bxe131.bisx.prod.on.blackberry> <539006055-1205093237-cardhu_decombobulator_blackberry.rim.net-1216566457-@bxe131.bisx.prod.on.blackberry> Message-ID: Eric, > Ken, was driving when I sent the last message. Ifconfig will get > you a 'running' > solution. That much I understood, and I tried doing a "live" reset of the IP address, but then lost connectivity (even after changing my own local net address on the laptop I was using to direct-connect to this machine). Not sure why that happened. > I don't know where OS X keeps it's setting permanently. This will > get you going > for now, though. A reboot will over-write the new settings. And that, for the long run, is what I am after -- a permanent IP address change that will survive reboots. I know that on a Sun, for example, you put the name of the host, as seen in the local /etc/hosts file, in a file called /etc/ hostname., but it does not look like Mac OS X uses a mechanism like this. Maybe OSX uses (or used in the past) some entry in netinfo. I did not see any places in any boot-time startup files where an ifconfig was issued to set the host local address (as read from some other file, for example). K From ecrist at secure-computing.net Sun Mar 9 13:47:13 2008 From: ecrist at secure-computing.net (=?utf-8?B?RXJpYyBGIENyaXN0?=) Date: Sun Mar 9 13:50:07 2008 Subject: [X-Unix] Altering system parameters (e.g. IP addresses) on MacOSXserver In-Reply-To: References: <8A00FEE8-546B-4555-A806-0E2F4A9B575A@gmail.com><20071217182751.GG485@4321.tv><20071217231947.GA202@Macintosh.local><20071221145514.GB204@Macintosh.local><04FC9E98-F332-4154-9047-7ED5AFFF0945@columbia.edu><1994528068-1205091692-cardhu_decombobulator_blackberry.rim.net-1787843921-@bxe131.bisx.prod.on.blackberry><539006055-1205093237-cardhu_decombobulator_blackberry.rim.net-1216566457-@bxe131.bisx.prod.on.blackberry> Message-ID: <1661702963-1205095794-cardhu_decombobulator_blackberry.rim.net-154915031-@bxe131.bisx.prod.on.blackberry> Ken, if you can give me a few hours, I'll get you the complete answer. You lost your connection because the server IP changed. Connect with the new IP and you should be fine, I'll get you the permanent fix when I'm at a terminal and not my blackberry. :) --- Eric F Crist Secure Computing Networks -----Original Message----- From: Ken Rossman Date: Sun, 9 Mar 2008 16:37:11 To:ecrist@secure-computing.net Cc:"A place to discuss Mac OS X from the perspective of the command line." Subject: Re: [X-Unix] Altering system parameters (e.g. IP addresses) on Mac OSXserver Eric, > Ken, was driving when I sent the last message. Ifconfig will get > you a 'running' > solution. That much I understood, and I tried doing a "live" reset of the IP address, but then lost connectivity (even after changing my own local net address on the laptop I was using to direct-connect to this machine). Not sure why that happened. > I don't know where OS X keeps it's setting permanently. This will > get you going > for now, though. A reboot will over-write the new settings. And that, for the long run, is what I am after -- a permanent IP address change that will survive reboots. I know that on a Sun, for example, you put the name of the host, as seen in the local /etc/hosts file, in a file called /etc/ hostname., but it does not look like Mac OS X uses a mechanism like this. Maybe OSX uses (or used in the past) some entry in netinfo. I did not see any places in any boot-time startup files where an ifconfig was issued to set the host local address (as read from some other file, for example). K _______________________________________________ X-Unix mailing list X-Unix@listserver.themacintoshguy.com http://listserver.themacintoshguy.com/mailman/listinfo/x-unix From rossman at columbia.edu Sun Mar 9 13:58:02 2008 From: rossman at columbia.edu (Ken Rossman) Date: Sun Mar 9 13:58:08 2008 Subject: [X-Unix] Altering system parameters (e.g. IP addresses) on MacOSXserver In-Reply-To: <1661702963-1205095794-cardhu_decombobulator_blackberry.rim.net-154915031-@bxe131.bisx.prod.on.blackberry> References: <8A00FEE8-546B-4555-A806-0E2F4A9B575A@gmail.com><20071217182751.GG485@4321.tv><20071217231947.GA202@Macintosh.local><20071221145514.GB204@Macintosh.local><04FC9E98-F332-4154-9047-7ED5AFFF0945@columbia.edu><1994528068-1205091692-cardhu_decombobulator_blackberry.rim.net-1787843921-@bxe131.bisx.prod.on.blackberry><539006055-1205093237-cardhu_decombobulator_blackberry.rim.net-1216566457-@bxe131.bisx.prod.on.blackberry> <1661702963-1205095794-cardhu_decombobulator_blackberry.rim.net-154915031-@bxe131.bisx.prod.on.blackberry> Message-ID: <5D0AB444-B5B5-4002-A403-9AA14F9B882F@columbia.edu> Eric, > Ken, if you can give me a few hours, I'll get you the complete answer. Thanks... that would be useful. Awhile back, I took a class in Mac OS X server admin, and still have the books. Just not sure right now where those are, but I would think the answer is in there. I remember issuing a whole lot of (Apple-ish) long and mixed-case command line incantations to do various things with various system tables and such. Just don't recall any particulars. Glad to see things on Mac OS X moving a good bit more in the direction of being "Linux-ish" or generally "Unix-ish" in any case... > You lost your connection because the server IP changed. Connect > with the new > IP and you should be fine. Ah, but that was exactly what I did, and it did not work. I had my PowerBook direct-ether-connected point-to-point to the server, and was able to ssh in using the old address range. issued the ifconfig command (adding in specific broadcast and netmask fields as well as the IP address change), then changed the PowerBook interface address to be in the same subnet range as what I just changed the server to, but no luck. I know I must have just done something stupid, but I'm not spotting it. > I'll get you the permanent fix when I'm at a terminal and not my > blackberry. :) OK, I'll take you up on that! :-) Thanks, K From baltwo at san.rr.com Sun Mar 9 14:17:12 2008 From: baltwo at san.rr.com (John Baltutis) Date: Sun Mar 9 14:17:53 2008 Subject: [X-Unix] Mysterious Volume in Terminal In-Reply-To: <20080309205042.880D7125FA58@listserver.themacintoshguy.com> References: <20080309205042.880D7125FA58@listserver.themacintoshguy.com> Message-ID: On 03/09/08, Richard Hartman wrote: > > This is giving me fits. > > When booted from the (unpartitioned) internal drive of my Intel iMac > (OS 10.5.2), *with all firewire and usb drives unplugged*, I see the > following in terminal: > > $ ls -la /Vol* > total 24 > drwxrwxrwt@ 5 root admin 170 Mar 9 12:48 . > drwxrwxr-t@ 60 root admin 2108 Mar 4 12:41 .. > -rw-rw-rw-@ 1 rjh admin 6148 May 17 2007 .DS_Store > drwxr-xr-x 3 root admin 102 Nov 6 19:08Back2 > lrwxr-xr-x 1 root admin 1 Mar 9 12:48 iMac20 -> / > > The "Back2" volume does not show in the Finder or on the desktop,does > not show as a partition of my internal drive (in Drive Utility), or > anywhere else other than the above listing. > > I HAD a "Back2" volume a long while back on a firewire drive, butit > no longer exists on any drive (it was on a drive later reformatted > and, in any case, not even plugged into the mac at the moment). > > If I cd into the "Back2" volume and view its contents, it appearsto > comprise the long-since lost Back2 firewire volume. I can drill down > and open files that no longer even exist in my iMac20 directory > structure, so the indicated "Back2" data is actually present. > > I have done a repair from Disk Utility, which gave a clean bill of > health. The console & system logs show no mention of Back2, and > DiskWarrior 4.0 sees nothing either. > > My best guess: I inadvertently made a superduper clone of Back2 onto > my internal hard drive at some point (evidently, from the time stamps > on the terminal directories, last November). Could that be the cause > of what I am seeing? > > Here is some of the Back2 directory info; the time stamps seem to > point to November 2007, which is about when Back2 disappeared from the > scene. > ======================== > $ ls -la /Volumes/Back2/ > total 0 > drwxr-xr-x 3 root admin 102 Nov 6 19:08 . > drwxrwxrwt@ 5 root admin 170 Mar 9 12:48 .. > drwxr-xr-x 7 root admin 238 Nov 6 19:26 Users > > How do I delete this rogue volume and make it disappear from my > Volumes listing? And, presumably, recover a bit of disk space in the > process. A classic "false backup/clone" which occurs when using SuperDuper! or Carbon Copy Cloner and the app loses connection to the original target HD. See for details. Just run this in the Terminal: sudo rm -R /Volumes/Back2 From seasoft at west.net Sun Mar 9 15:01:24 2008 From: seasoft at west.net (Richard Hartman) Date: Sun Mar 9 15:01:36 2008 Subject: [X-Unix] Mysterious Volume in Terminal In-Reply-To: References: <20080309205042.880D7125FA58@listserver.themacintoshguy.com> Message-ID: <4B88308B-AF7E-40C4-9213-43EF87F0445F@west.net> On Mar 9, 2008, at 2:13 PM, Scott E Lasley wrote: > I've run into this sort of thing before when a backup script went > haywire. Back2 is a directory in the /Volumes directory, not an > actual volume that would show up in the Finder or disk utilities. > Notice the drwxr-xr-x permissions for Back2 vs the lrwxr-xr-x > permissions for iMac20. If you open the /Volumes directory, e.g. > using the Go->Go to Folder... menu item, you will see Back2 and can > delete it. Or you can delete it from Terminal using sudo rm -r / > Volumes/Back2. Deleting from the Finder is safer in case of a typo > in the sudo rm command. > > In my case, the simple script I used called rsync to back up to a > volume named Backup: rsync -av /Users /Volumes/Backup. When the > script ran once and the Backup volume was not mounted, rsync created > a /Volumes/Backup directory and backed up /Users to that directory. > > > hth, > Scott On Mar 9, 2008, at 2:17 PM, John Baltutis wrote: > On 03/09/08, Richard Hartman wrote: >> >> This is giving me fits. >> snip >> How do I delete this rogue volume and make it disappear from my >> Volumes listing? And, presumably, recover a bit of disk space in the >> process. > > A classic "false backup/clone" which occurs when using SuperDuper! > or Carbon > Copy Cloner and the app loses connection to the original target HD. > See > for details. Just > run this in > the Terminal: > > sudo rm -R /Volumes/Back2 You guys are marvelous. I kind of thought something like this was going on, but was too intimidated to try the deletion. Problem Solved; thanks so very much. Richard From ecrist at secure-computing.net Sun Mar 9 16:12:35 2008 From: ecrist at secure-computing.net (Eric F Crist) Date: Sun Mar 9 16:12:58 2008 Subject: [X-Unix] Altering system parameters (e.g. IP addresses) on MacOSXserver In-Reply-To: <5D0AB444-B5B5-4002-A403-9AA14F9B882F@columbia.edu> References: DEFANGED[19149]:<8A00FEE8-546B-4555-A806-0E2F4A9B575A@gmail.com><20071217182751.GG485@4321.tv><20071217231947.GA202@Macintosh.local><20071221145514.GB204@Macintosh.local><04FC9E98-F332-4154-9047-7ED5AFFF0945@columbia.edu><1994528068-1205091692-cardhu_decombobulator_blackberry.rim.net-1787843921-@bxe131.bisx.prod.on.blackberry><539006055-1205093237-cardhu_decombobulator_blackberry.rim.net-1216566457-@bxe131.bisx.prod.on.blackberry> <1661702963-1205095794-cardhu_decombobulator_blackberry.rim.net-154915031-@bxe131.bisx.prod.on.blackberry> <5D0AB444-B5B5-4002-A403-9AA14F9B882F@columbia.edu> Message-ID: Ok Ken, as promised: You should have a command called networksetup. This allows you to change all(most?) of the settings you would find in the network preference pane. To permanently change the static IP address of a given system, run the following command: # networksetup -listallnetworkservices This command will list all your network ports. Why you have to call them by their name escapes me, but whatver. Next, run the following command: # networksetup -setmanual The only funk above is the network_service item. This is really just the network adapter's name. So, to set an IP of 10.0.0.2 with a subnet of 255.0.0.0 and a default route of 10.0.0.1 on my MacBook Pro's ethernet address, I'd do the following: # networksetup -setmanual Ethernet 10.0.0.2 255.0.0.0 10.0.0.1 Note, you've gotta be root (or sudo it). This **WILL** persist through reboots. HTH Eric On Mar 9, 2008, at 3:58 PM, Ken Rossman wrote: > Eric, > >> Ken, if you can give me a few hours, I'll get you the complete >> answer. > > Thanks... that would be useful. Awhile back, I took a class in Mac > OS X server > admin, and still have the books. Just not sure right now where > those are, but > I would think the answer is in there. I remember issuing a whole > lot of > (Apple-ish) long and mixed-case command line incantations to do > various things > with various system tables and such. Just don't recall any > particulars. > > Glad to see things on Mac OS X moving a good bit more in the > direction of being > "Linux-ish" or generally "Unix-ish" in any case... > >> You lost your connection because the server IP changed. Connect >> with the new >> IP and you should be fine. > > Ah, but that was exactly what I did, and it did not work. I had my > PowerBook > direct-ether-connected point-to-point to the server, and was able to > ssh in > using the old address range. issued the ifconfig command (adding in > specific > broadcast and netmask fields as well as the IP address change), then > changed > the PowerBook interface address to be in the same subnet range as > what I just > changed the server to, but no luck. > > I know I must have just done something stupid, but I'm not spotting > it. > >> I'll get you the permanent fix when I'm at a terminal and not my >> blackberry. :) > > OK, I'll take you up on that! :-) > > Thanks, > K > ----- Eric F Crist Secure Computing Networks From rossman at columbia.edu Sun Mar 9 16:25:35 2008 From: rossman at columbia.edu (Ken Rossman) Date: Sun Mar 9 16:25:45 2008 Subject: [X-Unix] Altering system parameters (e.g. IP addresses) on MacOSXserver In-Reply-To: References: DEFANGED[19149]:<8A00FEE8-546B-4555-A806-0E2F4A9B575A@gmail.com><20071217182751.GG485@4321.tv><20071217231947.GA202@Macintosh.local><20071221145514.GB204@Macintosh.local><04FC9E98-F332-4154-9047-7ED5AFFF0945@columbia.edu><1994528068-1205091692-cardhu_decombobulator_blackberry.rim.net-1787843921-@bxe131.bisx.prod.on.blackberry><539006055-1205093237-cardhu_decombobulator_blackberry.rim.net-1216566457-@bxe131.bisx.prod.on.blackberry> <1661702963-1205095794-cardhu_decombobulator_blackberry.rim.net-154915031-@bxe131.bisx.prod.on.blackberry> <5D0AB444-B5B5-4002-A403-9AA14F9B882F@columbia.edu> Message-ID: <141023B7-E09C-41A4-9AE2-C2593DDC75A6@columbia.edu> Eric, > Ok Ken, as promised: > > You should have a command called networksetup. This allows you to > change > all(most?) of the settings you would find in the network preference > pane. Ah, yes, I recall that command now, though I never used it much in the past. > To permanently change the static IP address of a given system, run the > following command: > > # networksetup -listallnetworkservices OK, got it... > This command will list all your network ports. Why you have to > call them by > their name escapes me, but whatver. Just Apple's way of doing things, I guess. > Next, run the following command: > > # networksetup -setmanual > > > The only funk above is the network_service item. This is really > just the > network adapter's name. So, to set an IP of 10.0.0.2 with a subnet of > 255.0.0.0 and a default route of 10.0.0.1 on my MacBook Pro's ethernet > address, I'd do the following: > > # networksetup -setmanual Ethernet 10.0.0.2 255.0.0.0 10.0.0.1= OK, thanks, the rest I can figure out, I think... just needed the right command incantation. The numbers I can work out for myself... > Note, you've gotta be root (or sudo it). Yup. > This **WILL** persist through reboots. Thanks a bunch!!! I appreciate your help! K From w.northcott at unsw.edu.au Sun Mar 9 16:54:57 2008 From: w.northcott at unsw.edu.au (Bill Northcott) Date: Sun Mar 9 16:55:04 2008 Subject: [X-Unix] Altering system parameters (e.g. IP addresses) on Mac OS X server In-Reply-To: <20080309205043.13003125FA5E@listserver.themacintoshguy.com> References: <20080309205043.13003125FA5E@listserver.themacintoshguy.com> Message-ID: On 10/03/2008, at 7:50 AM, Ken wrote: > I have a need to change some IP address range info on a Mac server > platform > (running OS X server), but don't have a physical console, and can't > remote > desktop into it. I can only (at present) open a command line (ssh) > shell to it. Firstly, you would do better to post a question like this on the MacOS Server list. Secondly as I am sure you would be aware changing the IP address on something like MacOS X Server is non-trivial. Changing the IP requires certificates to be recreated and settings changed in a large number of places. Apple have provided a script for this specific purpose which you should use. I can attest that it works well. Also look at a server documentation http://www.apple.com/server/documentation . There is a whole manual on the CLI which of course accessible through ssh. You can do anything with a command which you can do in the GUI. There are also a heap of things you can do with a command that you cannot do in the GUI - like change the IP address. Of course some things are easier to do in the GUI. Bill Northcott From philip.robar at gmail.com Sun Mar 9 16:59:06 2008 From: philip.robar at gmail.com (Robar Philip) Date: Sun Mar 9 16:59:23 2008 Subject: [X-Unix] Altering system parameters (e.g. IP addresses) on Mac OS X server In-Reply-To: <04FC9E98-F332-4154-9047-7ED5AFFF0945@columbia.edu> References: <8A00FEE8-546B-4555-A806-0E2F4A9B575A@gmail.com> <20071217182751.GG485@4321.tv> <20071217231947.GA202@Macintosh.local> <20071221145514.GB204@Macintosh.local> <04FC9E98-F332-4154-9047-7ED5AFFF0945@columbia.edu> Message-ID: <81AB3D83-92AE-4E31-91C4-8914D95D1A7C@gmail.com> On Mar 9, 2008, at 12:34 PM, Ken Rossman wrote: > Folks, > > I have a need to change some IP address range info on a Mac server > platform > (running OS X server), but don't have a physical console, and can't > remote > desktop into it. I can only (at present) open a command line (ssh) > shell to it. http://developer.apple.com/documentation/Darwin/Reference/Manpages/man8/changeip.8.html http://docs.info.apple.com/article.html?path=ServerAdmin/10.5/en/c7sa13.html : Server Admin 10.5 Help Changing the IP Address of a Server You can change the IP address of a server using the Network pane of System Preferences or the networksetup tool. When a network address change is detected, no matter how the change happened, changeip is invoked. The tool changeip goes through all configuration files and places where the Server?s IP address is stored, and changes the address to conform to the new address. The server?s IP address can be changed without changeip being invoked from the command-line. From ecrist at secure-computing.net Sun Mar 9 17:39:41 2008 From: ecrist at secure-computing.net (Eric F Crist) Date: Sun Mar 9 17:40:08 2008 Subject: [X-Unix] Altering system parameters (e.g. IP addresses) on Mac OS X server In-Reply-To: References: <20080309205043.13003125FA5E@listserver.themacintoshguy.com> Message-ID: On Mar 9, 2008, at 6:54 PM, Bill Northcott wrote: > On 10/03/2008, at 7:50 AM, Ken wrote: >> I have a need to change some IP address range info on a Mac server >> platform >> (running OS X server), but don't have a physical console, and can't >> remote >> desktop into it. I can only (at present) open a command line (ssh) >> shell to it. > > Firstly, you would do better to post a question like this on the > MacOS Server list. Apparently not, his question was answered. What better could he do? > > Secondly as I am sure you would be aware changing the IP address on > something like MacOS X Server is non-trivial. Changing the IP > requires certificates to be recreated and settings changed in a > large number of places. If you do it correctly, it is trivial. If you properly set up your certificates, SSL I'm assuming, they're built around host names rather than IP addresses. > > Apple have provided a script for this specific purpose which you > should use. I can attest that it works well. It's not a script, it's a binary command. > > Also look at a server documentation http://www.apple.com/server/documentation > . There is a whole manual on the CLI which of course accessible > through ssh. You can do anything with a command which you can do in > the GUI. There are also a heap of things you can do with a command > that you cannot do in the GUI - like change the IP address. Of > course some things are easier to do in the GUI. Your first piece of valuable information. Congrats. ----- Eric F Crist Secure Computing Networks From luomat at gmail.com Tue Mar 11 14:12:06 2008 From: luomat at gmail.com (TjL) Date: Tue Mar 11 14:14:11 2008 Subject: [X-Unix] Altering system parameters (e.g. IP addresses) on Mac OS X server In-Reply-To: <04FC9E98-F332-4154-9047-7ED5AFFF0945@columbia.edu> References: <8A00FEE8-546B-4555-A806-0E2F4A9B575A@gmail.com> <20071217182751.GG485@4321.tv> <20071217231947.GA202@Macintosh.local> <20071221145514.GB204@Macintosh.local> <04FC9E98-F332-4154-9047-7ED5AFFF0945@columbia.edu> Message-ID: I'm coming in late to the party, not with a solution but with an idea that might help. There are various places around which will assign a hostname to a dynamic IP'd machine. I use DynDNS, which is free. There are daemons for various OSes that run on boot and update the hostname with the new IP address whenever it changes. Most of these can also be made to email that information to you as well. I'm thinking that might help for two reasons: 1) if you can access it via hostname even if it changes, not knowing the IP is no longer the single point of failure. 2) If you can get the IP address emailed to you whenever it changes, then you've got that as additional information (I actually just needed to know my IP address a few months ago and was able to find it by going back and looking through the folder where those notices get automatically filed). Unfortunately I've only used daemons like this for FreeBSD and Windows, so I don't have one to suggest, but I'm sure a little Googling would lead you to one. FWIW TjL From macosxforme at gmail.com Fri Mar 14 05:41:19 2008 From: macosxforme at gmail.com (David Haines) Date: Fri Mar 14 05:41:37 2008 Subject: [X-Unix] Altering system parameters (e.g. IP addresses) on Mac OS X server In-Reply-To: References: <20080309205043.13003125FA5E@listserver.themacintoshguy.com> Message-ID: On Mar 9, 2008, at 8:39 PM, Eric F Crist wrote: > On Mar 9, 2008, at 6:54 PM, Bill Northcott wrote: > >> On 10/03/2008, at 7:50 AM, Ken wrote: >>> I have a need to change some IP address range info on a Mac server >>> platform >>> (running OS X server), but don't have a physical console, and can't >>> remote >>> desktop into it. I can only (at present) open a command line (ssh) >>> shell to it. >> >> Firstly, you would do better to post a question like this on the >> MacOS Server list. > > Apparently not, his question was answered. What better could he do? When changing the IP in OS X Server, many things could/will break - you also need to run changeip, man changeip for more info From ecrist at secure-computing.net Sun Mar 23 16:04:35 2008 From: ecrist at secure-computing.net (Eric F Crist) Date: Sun Mar 23 16:05:02 2008 Subject: [X-Unix] rsync and openvpn woes Message-ID: <6B9D6618-78D9-4D14-AA09-42B58CDC88E9@secure-computing.net> Hey folks, I've got a number of openvpn tunnels setup with Tunnelblick. In addition, as I've posted previously, I've got a backup script that runs via cron at */6 every day to backup my home directory and applications directory. My problem is that, every time the backup script starts, my openvpn connection dies. I'm wondering if anyone has any insight. Thanks! ----- Eric F Crist Secure Computing Networks