Get prompted when connecting to a shared folder

I am posting this because it doesn’t look like it is widely, or widely enough, known.

When you are bound to directory service like Active Directory, and you try to connect to a shared folder on a kerberized server/computer, in the background you computer gets a ticket and tries to authenticate to gain access. In OS X if this fails you don’t get prompted to enter a valid set of credentials and an error message is presented.

The error reads something like:

There was a problem connecting to the server “”

You do not have permission to access this server.


The Windows folks are used to this. They usually go to PC, map network drive, use different credentials.

But when they have to do it on a Mac… they have no clue!

Well here is how to do it.

Go to Finder–> Go –> Connect to Server (or (⌘) + K)

And enter the server details with this format:


This way you will force the connection to use a different set of credentials and prompt you for the password.

You could replace the asterisk with the actual password to avoid even get asked for it, but is not a good practice to type your password in places other than password boxes.

At the same time you could  replace the username with an asterisk to force it to prompt you also for that. So this is also valid and will prompt you for both in an AFP connection:


Posted in IT and stuff Tagged with: , , , , , ,

How to quickly lock your Mac

Many Windows users are used to lock their computers with a keyboard combination when they leave their desks, which is a very good practice (not talking about RAM content here, let’s move on!). One thing I’ve got asked a couple of times is how to do the same thing on a Mac, and well the thing is that there are a couple of options to secure your computer when you are away but are not exactly like the Windows.

Because of this I though of writing this article and enumerating  the ways you can accomplish this.

  1. (⌘) + (⌥) + (⏏) : Immediately sleep your Mac.
  2. (⌘) + (⇧) + Q : Then enter to logout gracefully
  3. Close the lid of you laptop. D’oh!
  4. System Preferences –> Mission Control –> Hot Corners… –> Start Screen Saver
  5. /Applications/Utilities/Keychain –> Preferences –> Show keychain status in menu bar –> Click –> Lock Screen
  6. And finally the last method I learned recently with the help Greg Neagle:
  • Open Automator and create a new Service; A services that receives no input in any application.
  • System Preferences –> Keyboard –> Shortcuts –> Services; Scroll to the bottom, click on add shortcut for your new service and press your desired key combination.

Automator Keyboard

Here the code portion

	tell application "Finder" to if exists file "CGSession" of folder "Resources" of folder "Contents" of document file "" of folder "Menu Extras" of folder "CoreServices" of folder "Library" of folder "System" of startup disk then
		do shell script "/System/Library/CoreServices/Menu\\ Extras/ -suspend"
	end if
end try
Posted in IT and stuff Tagged with: ,

Changes to EX300

Last year I got certified as RHCSA and since then I have been practicing and learning more about managing a RHEL based infrastructure and, some point, in the (near?) future I’d like to get the RHCE certification.

As you may already know Red Hat released RHEL version 7 and with it they updated the requirements for the EX300 exam. There are some obvious changes to the system like the move to systemd, but if you are like me and already have some books and resources for the old RHEL6 what you want to know is what is actually new and mandatory for the new exam.

So for those folks like me that want to polish the new stuff I thought I’d share my notes on the changes I see at first sight, between the old and the new.


Highlighted in yellow are the new requirements.

Posted in IT and stuff Tagged with: , ,