Hot answers tagged

95

Use the open(1) command and a URL: open 'smb://username:password@server/share' Pros: Creates the mount point in /Volumes for you. Cons: Requires the Finder to be running.


33

I will admit, I hadn't noticed that the defaults write command stopped working in Mavericks. However, when I DO clean network mounts, instead of your one liner find and rm, I use this: dot_clean . The manfile explains: dot_clean -- Merge ._* files with corresponding native files. I don't use the -m flag, but you may find it helpful in your situation. -m ...


33

SUCCESS!! After 2 months of (moderate) misery I've finally found the reason SMB didn't work with my Sierra Mac Mini. TL;DR The reason was this installed kext: com.intel.kext.intelhaxm (6.0.1) 8FF2C637-0A5E-367E-B007-5B08655B1E8A <7 5 4 3 1> You can check if you have it installed with the following command from an ordinary Terminal: kextstat | grep -...


33

Digging through the console I found this telling error: NetAuthSysAgent already_mounted: share <TIMEMACHINE> already mounted TIMEMACHINE is my share name in this case. As the error suggests, Time Machine is trying to mount the share again which it can't do because it's mounted already. But wait! If I disconnect from the share will leave my list! ...


24

umount is the opposite of mount. You'll need to know the name of the mount point - that is, the name in /Volumes that corresponds to that network drive. umount /Volumes/VolumeName Per man umount, umount may fail for any number of reasons, and the recommend command is instead diskutil: diskutil unmount /Volumes/VolumeName


18

The smbutil command can dump the attributes for all shares or you can target one particular share and parse out the version string: smbutil statshares -a In the case of the listing below: site-test-mbp01:~ me$ df Filesystem 512-blocks Used Available Capacity iused ifree %iused Mounted on /...


15

Apple Filing Protocol is deprecated1, not "dead". There's a big distinction and that is being deprecated, it's still included and still works at the time of last development but it has been superseded by something else - in this case SMB2. It also means there will be no further development. Will it stop working in future versions of macOS? There will ...


13

Using AppleScript is convenient because it stores your passwords in the Keychain. Bash function: function mymount { osascript <<EOF mount volume "smb://user@fqdn1/volume1" mount volume "smb://user@fqdn2/volume2" EOF } Invoke ‘mymount’ from bash, enter passwords via the standard Keychain popup, and if all goes well the requested volumes will be ...


13

The following is what I use to mount Samba shares via launchd: /usr/bin/osascript -e "try" -e "mount volume \"smb://guest@${host}\"" -e "end try" Using osascript's mount means any keychain access needed is done "automagically", there's no progress indicator or Finder window, and the command waits for the mount to be available before proceeding (try it with ...


13

The solution is in Catalina release note https://developer.apple.com/documentation/macos_release_notes/macos_catalina_10_15_beta_2_release_notes NetBIOS is disabled in macOS 10.15 to speed up mounting, browsing, and connecting to SMB shares. Some older printers and file servers may require NetBIOS to connect. (51119111) To enable NetBIOS, you can create ...


12

Just tried, and this does work in Mavericks (at least for disabling .DS_Store not network shares): defaults write com.apple.desktopservices DSDontWriteNetworkStores -bool true You just need to remember to restart Finder as well: killall Finder


10

When you access a file share, you could try using CMD + k in Finder (Connect to server), and then type the address as a CIFS or SMB path - ie. cifs://my.server/SomeFileShare or smb://my.server/SomeFileShare Disclaimer: I don't have Mavericks, and no access to my Mac right now. And I'm not even certain that Finder doesn't somehow jump on AFP anyhow. Edit: Ok, ...


10

This answer assumes a few things: your iMac is already connected to the network (most likely via ethernet) that your credentials are all setup (based on your question, they are) that you’ve been given the host address for the share drive To connect to the share drive, you should only have to: Make sure the Finder is active Press commandK (or, in the top ...


9

This is going to be a throughly unsatisfying answer, but it comes down to the fact that random network drives were not meant to be used as time machine backup targets. I'd wager one of the things you did in your guide was to run a terminal command along the lines of: defaults write com.apple.systempreferences TMShowUnsupportedNetworkVolumes 1 Unsupported ...


9

I had the same problem (1025 failures to open smb device, syserr = No such file or directory) and finally tracked it down to the /dev/nsmb0 device not being correctly configured because of a conflicting kext from a very old 3rd party app. If you cat /dev/nsmb0 and get "Device not configured", it's possibly a similar issue. To solve it, I looked at all the ...


9

There's a number of options for doing this, but the easiest way is to just use your Login Items. More specifically: In the Finder, press CommandK (or click on the Go menu and select Connect to Server...) Now enter the server address Click on the Connect button IMPORTANT: If you're a registered user, when entering your login details you must ensure you ...


8

Your IT department shouldn't have just abandoned you at this point. They should have worked through it with you. We can't really answer this without knowing more detail of the network setup there, but the basic premise would be to start from Finder > Go > Connect to Server... simply type smb://[address you should have already been given] & hit Enter. ...


8

Neither the remote disk nor the remote volume is encrypted by Time Machine. Instead a special "sparse bundle (disk image)" ("backupbundle" for Catalina) is created on the network drive. In fact it's no uniform disk image file like a dmg but a special folder containing sub-folders and config/log files. The content of the source volume(s) is saved as AES-128-...


7

Here's how I solved this problem - the scorched earth method - find all preference files with the server name and remove them. Replace server_name with the name of the server giving you grief, replace file_name with the name of the preference files you find: in a terminal: cd ~/Library/Preferences/ sudo grep -R "server_name" . for each file returned: ...


7

I found out, that the following process adds a folder mounted on a samba share to the sidebar/favorites in my finder. They 'survive' a restart of my mac. I guess they also work as intended if you reboot the NAS/server/whatever. To achieve that, do execute the following steps: Mount the shared folder (it should be listed in the sidebar under 'Shared' within ...


7

Prior to Mac OS X Lion, Mac OS X Client came with SAMBA Server and Client and what you defined to share was all that was shared. Since Mac OS X Lion, and continuing with OS X Mountain Lion and other releases of OS X, SAMBA has been replaced with SAMBX due to SAMBA moving to GPLv3. As a result SAMBA is basically broken in the OS since 10.7. The Mac OS X 10.7 ...


7

To add to @nohillside answer you can share a FAT32 formatted drive but not set permissions as the filesystem doesn't support it. If you want to control access to files on the USB by permissions then format it using a filesystem that supports it (such as HFS) and changes will be avaliable in File Sharing.


6

What worked for me to make them mount during boot: ==> /etc/auto_master <== # # Automounter master map # +auto_master # Use directory service /net -hosts -nobrowse,hidefromfinder,nosuid /home auto_home -nobrowse,hidefromfinder /Network/Servers -fstab /- -static /- auto_smb # add this ...


6

You can access the advanced tab by right clicking just to the left of the word Add, selecting Customize Toolbar, and dragging the advanced tab onto the tool bar.


6

For me the solution was to check if SMB server was active on windows pc (and it was not!!, just SMB client is active by default): go in search field at the right of WINDOWS icon and type: WINDOWS FEATURES scroll the list and find SMB support make sure that SMB server is checked, if not check it and restart pc.


6

Got a workaround that worked in our organization. This changes for macOS the SMB behavior to v2. Changed the following setting in the /etc/nsmb.con file. #!/bin/sh echo "[default]" >> /etc/nsmb.conf echo "protocol_vers_map=2" >> /etc/nsmb.conf exit 0


6

You can just enable guests to access shared folders. Go to Users and Groups and give access to Guests to Shared folders/Sharing.


6

I managed to fix it after I enabled the "Allow guest users to connect to shared folders" for the "Guest User" under the "Users & Groups" panel.


5

I ran across this today which is one way to do it. In summary for Mountain Lion: Edit the file /etc/auto_master Within add /- auto_smb Create /etc/auto_smb Within add /Volumes/mount_point -fstype=smbfs,soft ://user:pass@smbserver/share The author goes onto mention a second method using the vifs command, but I've never tried that one and it seems to do ...


5

This seems to be a known issue as I remember running across a work-around the other day at TUAW: http://www.tuaw.com/2013/10/27/did-mavericks-kill-your-network-drive-access-heres-a-fix/ Basically what they are telling you to do is replace the SMB:// in the Go > Connect To Server... dialog box with CIFS:// I gather this forces the Mac to use an older ...


Only top voted, non community-wiki answers of a minimum length are eligible