Problem: You get an error “Access is denied: [dll name]” trying to deploy a strong named assembly/.dll to the GAC on Windows Server 2008.

"Access Is Denied" error message

"Access Is Denied" error message

Solution:

1. Run the Command Prompt as Administrator and enter the command: explorer %windir%\assembly .

2. Run the Command Prompt as Administrator and enter the command:
explorer [path to directory where the dll is located].

3. Drag and drop the dll from the source directory to the GAC.

That should be it. Your assembly is now deployed to tha Global Assembly Cache. Remember to recycle your web application’s Application Pool, so that the new .dll can be loaded.

What follows here is a list of tasks that I perform from time to time on Mac OS X. I do not do a lot of Mac OS X (Darwin) administration, but every now and then I do the odd MySQL or Apache installation and configuration. Many times when tuning these types of server applications and services, I typically encounter a few scenarios not considered in the installation guide. It is at these times that I am forced to venture on my own into the world of system administration. The problem is that I do not do it enough to remember all the typical shell commands, and workarounds, or maybe I just have a very poor memory from all the coffee that I have been drinking over the years. Either way it often results in me having to rediscover, again, how to do certain things in the Mac shell. This short list solves that by serving as a quick reference.

Maybe it will be of use to other novice system administrators.

User And Group Administration

  1. Add a user to a group in the bash shell on Mac OS X
    To make a user part of a group in the bash shell, type:
    sudo dscl . -append /groups/[groupName] GroupMembership [userName]To check whether the user was successfully added to the group, reopen a new shell and use the groups command to check which groups the user is part of.

Scripting

  1. Make Mac OS X script executable
    Let’s say the file is called GhostBlade: The command to make it executable is chmod +x GhostBlade.  if you want it to run from the finder, rename the file to GhostBlade.command .

That’s it, for now. Feel free to send me your Mac OS X admin tips and tricks, and I’ll gladly to add them to the list.