Mounting NCSSM M, T and V Drives on Linux 1. Make sure you have the Samba utilities installed. Most people already will. Try running smbclient from the command line. If it's not found, install samba from your install cd or download it at www.samba.org. Find a root if you need help installing. *Neverland Roots* Jim Beckner becknerj@ncssm.edu Jay Goel goelj@ncssm.edu Michael Tipton tiptonm@ncssm.edu 2. Become root: $ su 3. Make directories to mount the network drives: # mkdir /mnt/m # mkdir /mnt/t 4. Add the following lines to your /etc/fstab file: //Royall/ClassGradYear/ /mnt/m smbfs uid=UID,gid=GID,workgroup=ncssm 1 0 //janus/transfer /mnt/t smbfs uid=UID,gid=GID,workgroup=ncssm 1 0 5. Replace ClassGradYear with your graduation year (e.g. 2006). 6. Each of the entries in the 4th column are options. The workgroup should stay ncssm. You should replace UID and GID with the user and group id's that you want to own all the files on the M and T drives. These are probably the id's of your user account. Try typing: $ cat /etc/passwd|grep USERID Replace USERID with yours, of course, and the first number is your UID, the second is your GID. 7. Create a file to hold your userid and your password in your home directory: # touch ~/.samba This will create the file # chmod 700 ~/.samba This makes it so that only the owner (this time it is root) will be able to see it. # vi ~/.samba In vi, press i to enter insert mode and add the following information: username='your ncssm username' password='your ncssm password' Hit escape to exit insert mode, type :wq to write and quit vi. This file will not be able to be seen at all except by its owner, which we have set to root. By adding this file 8. The network drives are now set up to be mounted next time you restart. To do it now: # mount -a