Skip to main content

Use Different Credentials on MacOS

How to switch credentials, use a terminal window, or dismount a share on MacOS.

This article applies to: Shared File Services


Switch Credentials

To switch credentials to access your desired CIFS share, create an entry similar to the example below.  Modify your entry as needed and replace SomeRestrictedShare with the name of the share you wish to access.

smb://cit-pqs655-doc:@files.cornell.edu/CIT/SomeRestrictedShare

In this example, the share is restricted to doc accounts.  The entry, cit-pqs655-doc, shows that it is a doc account.  It belongs to a Cornell Active Directory (AD) group that has valid CIFS ACLs to the files stored at \\files.cornell.edu\CIT\SomeRestrictedShare.

Use a Terminal Window

Use a Terminal window to see the connection mappings. The Terminal command df shows:
 

Example of results for the Terminal command df
Filesystem 512-blocks Used Available Capacity iused ifree %iused Mounted on
//cit-pqs655-doc@files.cornell.edu/CIT/SomeRestrictedShare 125825016 71023904 54801112 57% 8877986 6850139 56% /Volumes/SomeRestrictedShare

Dismount

The desired mapping may fail if a previous mapping already exists for a different account, e.g., your NetID.  To dismount you can enter the following Terminal command:

Diskutil unmount /volumes/SomeRestrictedShare

About this Article

Last updated: 

Thursday, July 9, 2020 - 4:44pm

Was this page helpful?

Your feedback helps improve the site.

Comments?