The Medical
University of South Carolina   About MUSC  ·  Education  ·  Medical Center  ·  Research  ·  Library   

The Medical University of South Carolina

MUSC Web Server Developers' Corner

Though you could use FTP/SFTP to manage your website on the command line, if you are making a lot of changes, this can be excessive. To allow for you to directly manage your site, you can mount a drive to your local Unix or Linux machine.

To mount your web site:

Step 1.) As root, I recommend setting the user sticky bit on smbmnt and smbumount as this keeps you having to run these commands as root. After this step, you should be able to do everything else as your own user id. (You could also setup sudo rules for the smbmount and smbumount commands.)

> chmod u+s /usr/bin/smbmnt
> chmod u+s /usr/bin/smbumount


Step 2.) I keep a directory directory in my home directory, </home/cramert/>, called mnt where I put all my mounted directories.

> mkdir mnt
> cd mnt


Step 3.) In mnt I create a directory for the file system I am mounting, in this case it would be webserver

> mkdir webserver

Step 4.) Now mount the file system. Make sure that you fully qualify the path to your directory. When you run the following smbmount command you will be promoted for you password.

> smbmount //wwwdev.musc.edu/webserver /home/cramert/mnt/webserver -o username=MNA_ID

171 Ashley Avenue Charleston SC 29425 (843) 792-2300