Archive for the ‘Software’ Category

NFS Share Directory in Solaris 7

I had the task to share a folder on a Solaris 7 machine so the files could be accessed from a modern day linux box. After some major research on over half a dozen sites, I found that I would need to add the following line in bold to a file called dfstab in the /etc/dfs/ directory of Solaris 7.

share -F nfs -o ro,root=[IP ADDRESS] [SOLARIS7 DIRECTORY]

[IP ADDRESS] = I used the address 10.10.10.10 mainly because the machine with IP address 10.10.10.10 needed to have root access to all files and folders in the directory. This effectively wipes out set permissions currently applied to files and folders.

[SOLARIS7 DIRECTORY] = I used /export/directory, as this is the directory of the folder I wanted to share on the Solaris machine.

After saving the dfstab file, you just need to restart the nfs server. From the command prompt, type the following in this order:

  1. /etc/init.d/nfs.server stop
  2. /etc/init.d/nfs.server start

At this point, the folder can be mounted from another linux box, via the /etc/fstab file for example!

Enable IIS Manager in Windows 7

To enable the IIS Manager in Windows 7, you’ll need to follow the following steps:

  1. From Windows 7′s Start Menu, search for ‘Turn Windows features on or off’ or find the application from the Control Panel.
  2. To enable IIS Management Console, browse to: Internet Information Services > Web Management Tools > IIS Management Console. Check the final checkbox.
  3. Click the OK button and try searching for ‘Internet Information Services (IIS) Manager’ from the Start Menu. If it appears, this means that the installation worked.

Unable to add to the Web site. Unable to add file. Access is denied.

While taking over a C# Web Application that had been migrated to work with Visual Studio 2008 (originally developed and migrated from Visual Studio .NET 2003), I occasionally ran into issues while trying to publish the web application to the production server (or any server for that matter). In the output log, there were multiple error messages, all stating:

Unable to add ‘XXX.aspx’ to the Web site. Unable to add file ‘XXX.aspx’. Access is denied.

Each XXX.aspx would be a different files. What I learned after browsing and searching Google is to make sure the files on the production (or target) server are not marked as Read Only. The solution was to:

  1. Go to the Publish directory
  2. Highlight all files and folders
  3. Right click and select Properties
  4. Make sure the Read-only attribute checkbox is unchecked (white and not gray or checked)

References:
http://forums.asp.net/p/1074678/3431238.aspx#3431238