So you want to access a Windows UNC share in Linux? No problem if you know the magic commands and have root access. This can be a great alternative to running cygwin if you are able to access a linux box (directly or via a virtual machine).
First, start by creating your mount point…
sudo mkdir /mnt/share1
Then, actually mount your UNC share to the mount point…
sudo mount -t cifs "//server/share1" /mnt/share -o username=my,password=secret
This would make \\server\share1 available to you on the Linux box as /mnt/share. Note the use of the options parameter (-o) to specify username and password.
Ok, so this is not the most bleeding edge post, but hopefully useful if you need it. Here’s what you need to do if you need to get ColdFusion8 to start on server reboot (since it doesn’t appear to install itself as a service) using Ubuntu server.
First, create a service script and make sure it’s executable like so…
sudo touch /etc/init.d/coldfusion
sudo chmod 755 /etc/init.d/coldfusion
Next, you need to actually put something in the script…
sudo nano /etc/init.d/coldfusion
Here’s what to put in the file…
### BEGIN INIT INFO
# Short-Description: ColdFusion8 service
### END INIT INFO
case "$1" in
Finally, you need to tell Ubuntu to use your service and make it available
sudo update-rc.d coldfusion defaults