Difference between revisions of "Home Directory Access"
(fixed a broken link, did a modest amount of cleanup) |
|||
(2 intermediate revisions by one other user not shown) | |||
Line 1: | Line 1: | ||
Users of CAC's storage services have a "storage03" directory which can be accessed from both Linux and Windows systems: | Users of CAC's storage services have a "storage03" directory which can be accessed from both Linux and Windows systems: | ||
− | |||
− | |||
Note, private clusters often have their own file servers, so users of private clusters may find that the linuxlogin path is not the same as their home directory on their private clusters. Also, Red Cloud users do not automatically have storage privileges on storage03, unless such storage is included in their CAC project. | Note, private clusters often have their own file servers, so users of private clusters may find that the linuxlogin path is not the same as their home directory on their private clusters. Also, Red Cloud users do not automatically have storage privileges on storage03, unless such storage is included in their CAC project. | ||
− | In Linux, it is generally safe to refer to your home directory as either <tt>~</tt>, <tt>~< | + | In Linux, it is generally safe to refer to your home directory as either <tt>~</tt>, <tt>~<username></tt>, or <tt>$HOME</tt>, so you never need to specify the exact mount point. On CAC's Windows systems, you can map your home directory to a letter drive (such as H:) using the "Map Network Drive" feature; however, it is often preferable to use the full UNC path to the network share, as given above. |
You can mount your CAC home directory on your local machine, as long as your machine is connected to either the Cornell campus network or [//it.cornell.edu/cuvpn CU VPN]. | You can mount your CAC home directory on your local machine, as long as your machine is connected to either the Cornell campus network or [//it.cornell.edu/cuvpn CU VPN]. | ||
− | ====Linux | + | ====Linux users==== |
You mount your storage03 directory via SMB/CIFS like this: | You mount your storage03 directory via SMB/CIFS like this: | ||
− | sudo mount -t cifs //storage03.cac.cornell.edu/< | + | sudo mount -t cifs //storage03.cac.cornell.edu/<username> /mnt/pt -o user=<username>,domain=CTC_ITH,uid=<localid>,vers=2.1 |
− | where <tt>< | + | where <tt><username></tt> is your CAC user name, <tt><localid></tt> is your local user name, and <tt>/mnt/pt</tt> is the name of a directory you have created ahead of time to be the mount point on your local filesystem. Enter the password for CAC account when prompted. See <tt>'''man mount.cifs'''</tt> for available options for the mount command. |
− | If you see errors, such as "missing codepage or helper program," then you have not installed the mount and umount packages for CIFS on your local machine. If problems persist, send your initial command and the results of <tt>'''dmesg | tail'''</tt> to [// | + | If you see errors, such as "missing codepage or helper program," then you have not installed the mount and umount packages for CIFS on your local machine. If problems persist, send your initial command and the results of <tt>'''dmesg | tail'''</tt> to [//www.cac.cornell.edu/help CAC Help]. |
− | ==== | + | ====macOS users==== |
:*In the Finder, either select '''''Connect to Server...''''' from the '''''Go''''' menu or use the shortcut <tt>'''cmd-K'''</tt>. <br /><br />[[Image:FileAccess1.jpg|310px]] | :*In the Finder, either select '''''Connect to Server...''''' from the '''''Go''''' menu or use the shortcut <tt>'''cmd-K'''</tt>. <br /><br />[[Image:FileAccess1.jpg|310px]] | ||
− | :* Enter '''''smb://storage03.cac.cornell.edu/< | + | :* Enter '''''smb://storage03.cac.cornell.edu/<username>''''' in the Server Address field as shown below. You may need to use '''smb://<username>@storage03.cac.cornell.edu/<username>'''. <br /><br />[[Image:FileAccess2.jpg|486px]] |
:* Enter your CAC user name and password to log in. You may need to use '''<username>@tc.cornell.edu''' in place of your username. | :* Enter your CAC user name and password to log in. You may need to use '''<username>@tc.cornell.edu''' in place of your username. | ||
Line 28: | Line 26: | ||
:* Choose "Map Network Drive..." from the menu that appears | :* Choose "Map Network Drive..." from the menu that appears | ||
:* Select "H:" from the drop-down menu (if you are already using this drive letter, select another letter) | :* Select "H:" from the drop-down menu (if you are already using this drive letter, select another letter) | ||
− | :* Folder: \\storage03.cac.cornell.edu\< | + | :* Folder: \\storage03.cac.cornell.edu\<username> |
:* Then: | :* Then: | ||
− | ::: -Check "Connect using different credentials". This will allow you to enter the domain associated with CAC and your | + | ::: -Check "Connect using different credentials". This will allow you to enter the domain associated with CAC and your username at CAC, rather than those associated with your own machine. |
− | ::: -User name: '''''CTC_ITH\ | + | ::: -User name: '''''CTC_ITH\<username>''''' |
::: -Password: your CAC password | ::: -Password: your CAC password | ||
:* Troubleshooting: If you have already mapped the drive and subsequently have problems, disconnect the drive and remap it. | :* Troubleshooting: If you have already mapped the drive and subsequently have problems, disconnect the drive and remap it. |
Latest revision as of 11:48, 7 October 2022
Users of CAC's storage services have a "storage03" directory which can be accessed from both Linux and Windows systems:
Note, private clusters often have their own file servers, so users of private clusters may find that the linuxlogin path is not the same as their home directory on their private clusters. Also, Red Cloud users do not automatically have storage privileges on storage03, unless such storage is included in their CAC project.
In Linux, it is generally safe to refer to your home directory as either ~, ~<username>, or $HOME, so you never need to specify the exact mount point. On CAC's Windows systems, you can map your home directory to a letter drive (such as H:) using the "Map Network Drive" feature; however, it is often preferable to use the full UNC path to the network share, as given above.
You can mount your CAC home directory on your local machine, as long as your machine is connected to either the Cornell campus network or CU VPN.
Linux users
You mount your storage03 directory via SMB/CIFS like this:
sudo mount -t cifs //storage03.cac.cornell.edu/<username> /mnt/pt -o user=<username>,domain=CTC_ITH,uid=<localid>,vers=2.1
where <username> is your CAC user name, <localid> is your local user name, and /mnt/pt is the name of a directory you have created ahead of time to be the mount point on your local filesystem. Enter the password for CAC account when prompted. See man mount.cifs for available options for the mount command.
If you see errors, such as "missing codepage or helper program," then you have not installed the mount and umount packages for CIFS on your local machine. If problems persist, send your initial command and the results of dmesg | tail to CAC Help.
macOS users
- In the Finder, either select Connect to Server... from the Go menu or use the shortcut cmd-K.
- Enter smb://storage03.cac.cornell.edu/<username> in the Server Address field as shown below. You may need to use smb://<username>@storage03.cac.cornell.edu/<username>.
- Enter your CAC user name and password to log in. You may need to use <username>@tc.cornell.edu in place of your username.
- In the Finder, either select Connect to Server... from the Go menu or use the shortcut cmd-K.
Windows users
- In a File Explorer window, right-click on "This PC"
- Choose "Map Network Drive..." from the menu that appears
- Select "H:" from the drop-down menu (if you are already using this drive letter, select another letter)
- Folder: \\storage03.cac.cornell.edu\<username>
- Then:
- -Check "Connect using different credentials". This will allow you to enter the domain associated with CAC and your username at CAC, rather than those associated with your own machine.
- -User name: CTC_ITH\<username>
- -Password: your CAC password
- Troubleshooting: If you have already mapped the drive and subsequently have problems, disconnect the drive and remap it.