Browsing articles tagged with "osxlion - Admins Goodies"
Nov 20, 2012
tom

reset root password in mysql without access to mysql table

I am having an issue on OS X 10.7.5 as I used to use MAMP but for .htaccess issues I am now using my own compiled local server from a long time ago, the problem is i forgot the root password for mysql. I have tried updating the password through terminal using mysql -u root, but I get this error message -> ERROR 1045 (28000): Access denied for user ‘root’@’localhost’ (using password: NO) Asked by […]

Continue Reading »
Nov 6, 2012
tom

OS X 10.7 doesn’t detect my WPA2 Enterprise server-side password changes

I have a Meraki wifi network that’s authenticating via RADIUS to an Active Directory. Users log in with their AD username and password via WPA2. That all works. However, when a user changes their AD password (due to expiration, forgotten password, whatever), their Mac doesn’t prompt for a new password; instead, it just can’t connect to the wifi. To fix this we have to go into Network Preferences -> Advanced -> Wifi -> Preferred Networks, […]

Continue Reading »
Oct 9, 2012
tom

Disable a wiki in Lion Server?

Any way to disable a wiki in Lion Server’s Wiki Server? It’s easy enough to delete one but how to temporarily disable one so it can be resurrected later? Asked by Meltemi How about changing the access permissions on it so only the owner can access it? Then it shouldn’t be visible to anyone but them. Answered by Dom Barnes Check more discussion of this question. Bookmark on Delicious Digg this post Recommend on Facebook […]

Continue Reading »
Jun 3, 2012
tom

Installed PHP 5.4 via OS X binary, but `php` in terminal still uses 5.3

I used a nice one-line command to install PHP 5.4 Mac OS X Lion, from php-osx.liip.ch. This is working perfectly in Apache – my local sites are now using PHP 5.4. But when I run php -v from the terminal, it still uses version 5.3. This is causing problems. which php gives me /usr/bin/php, so that’s where the old version is still installed. And after some digging I’ve found that the 5.4 binary is located […]

Continue Reading »
May 19, 2012
tom

How are group ids assigned?

I want to create a “developers” group on my OS-X system. I’m executing: sudo dscl . -create /groups/developers sudo dscl . -append /groups/developers passwd ‘blah’ My understanding from reading various sources is that I should assign an id to the group with sudo dscl . -append /groups/developers gid xxx where xxx is the desired id. My question is, what is an appropriate value for xxx? Is there a convention? Are there any BAD choices? Do […]

Continue Reading »
May 18, 2012
tom

MySQL on Mac OS X Lion – can’t connect over internet

I’ve installed MySQL on OSX Lion, however I can’t connect to the MySQL server via phpMyAdmin (or Sequel Pro). I have a domain with 1and1, and created a sub domain (server.domain.com) and created an A record to point to my internet IP (where the server is) and that all works fine. However when trying to use Sequel Pro to connect to server.domain.com it gives me this error: MySQL said: Access denied for user ‘root’@’server.echobarrier.com’ (using […]

Continue Reading »
May 16, 2012
tom

Joining an OS X 10.7 client to a 10.x Server on the command line

I have a Mac server that I can join clients to using System Preferences -> Users and Groups -> Login Options -> Network Account Server. However, I’d like to do this remotely without having to touch every Mac. I have a local user on each machine that can sudo to root. How can I join the Network Account Server via the shell? I’ve seen dsconfigad, but on a machine joined to my account server it […]

Continue Reading »
Apr 29, 2012
tom

Cannot access psql after installing postgres

I installed postgresql via homebrew on my 10.7.3. The install seemed successful and I was able to start up the server. However when I try to access psql I get the following error: psql: FATAL: role “larson” does not exist In this case larson is my username. Does anybody know what the issue is and what I can do to address it? Asked by andrewjl …Probably because you never created a user with that name […]

Continue Reading »
Apr 27, 2012
tom

Modifying kernel shared memory settings on a lion install

What’s the location of the sysctl.conf file on lion? In Snow Leopard it was in /etc/sysctl.conf but now that folder doesn’t contain it anymore. Searching for the file in spotlight yields no results. Have the shared memory settings been moved to a different conf file? What is it’s name? EDIT I am trying to modify the kernel shared memory settings of the machine. When I didn’t find the sysctl.conf file in the right place, I […]

Continue Reading »
Apr 4, 2012
tom

Active Directory password update not recognized on OS X 10.7.3?

We have a few Macs in our office which are bound to our Active Directory (Server 2k8R2) domain for login authentication and access to file shares. For the most part this has worked without trouble. I recently changed my AD password (from the Windows box that is my main desktop machine), and my iMac still wants my old password for logins—even after a reboot. It correctly prompts for the new password when I attempt to […]

Continue Reading »
Pages:12»