Episode #125 of the Stack Overflow podcast is here. We talk Tilde Club and mechanical keyboards. Listen now

Hot answers tagged

69

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.


30

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 -...


11

I had problem of finding IP of maching which is not even behind NAT. Finder shows the name Bonjour Exporer and ping does not resolve it. Finally smbutil lookup <name> worked for me.


11

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 ...


8

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 ...


5

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 ...


5

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 ...


4

It works on 10.8.2 without creating an alias. You can drag the shared folder to the sidebar. It will auto mount after you have disconnected.


4

I found that I needed to unlock the security keychain: Mac-mini:~ gravelld$ security unlock-keychain password to unlock default: Mac-mini:~ gravelld$ codesign -s "Developer ID Application: My Name" -f /path/to/appfile/mounted/elsewhere.app /path/to/appfile/mounted/elsewhere.app: replacing existing signature Mac-mini:~ gravelld$ Success! Hope this helps ...


4

The simple act of clicking the "File Sharing" check box will allow the following things to happen. Any user account can connect to the machine and access their own home folder, as well as the public folders on any other user account. Any administrator users can access the boot disk. The list of shared folders in the preference pane is for fine-tuning ...


4

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 ...


4

Unfortunately, the source code of the AFP driver is not free software, so it's difficult to give a definitive answer on that. However, it appears that Netatalk supports copyfile, so it's likely that the answer to that question is yes. If you look at the source code of the latest version of the macOS smbfs driver, you can see that it does implement the ...


3

I would add that if you have a username of the form "workgroup\username", you should mount it like this : mount -t smbfs "//WORKGROUP;username:password@MACHINENAME/SHARENAME" /SomeLocalFolderOfChoice Source : adapting an example from here


3

Adapted from https://apple.stackexchange.com/a/57832/8546 Finder Finder does much to ensure integrity of data, and to make its results compatible with a broad range of Apple operating systems. For some types of copy/move routines, ._ (dot underscore) files are required. File system If creation of ._ files is prevented at the file system level, then that ...


3

It should just be as easy as accessing the location as follows smb://username:password@ip.of.the.server/optional/path


3

There are actually two messages you're referring to: "This operation can't be completed because the item is in use" and "The operation can’t be completed because you don’t have permission to access some of the items." If you see the first one - I sometimes get that message too. Quite often this can be resolved by running: sudo lsof | grep <...


3

Samba passwords are managed separately from your regular account password. Have you set-up your user to enable samba sharing in the options menu? You need to do it once otherwise the login won't work. In the File Sharing preference pane tick the checkbox next to the user you want to enable file sharing for and a window will pop-up asking you to authenticate....


3

Try connecting with cifs://x.x.x.x/MEDIA/ Worked for me!


3

The answer seems to be to use username and password guest: smb://guest:guest@192.168.1.100/shared_files


3

Oh my god.. it appears to be a problem with a 3rd party kext see Mac mini can't connect to my corporate SMB server. Was working some days ago WTF apple. Fix your damn Error messages.


2

Because there is no normally-accessible local filesystem on an iOS device, an app that "supports SMB" doesn't tell us enough. Because you can't simply copy files from a SMB share onto the iOS device. There are plenty of apps that support SMB shares, three I can think of off the top of my head (at least as far as I recall) are: Goodreader, OPlayer, and Air ...


2

Additionally to the OPlayer app suggested by @Jason Salaz I've found several other apps that can connect to Windows smb shares: Cloud Connect Pro $14.99 FileBrowser $3.99 Files Connect $3.99 NetPortal $2.39 ezShare Pro $15.99 Unfortunately I couldn't find any free apps.


2

I have had the same problem, and I have had it for ages. I eventually got rid of it by having a close look at the entries saved in the keychain - I actually found two relating to that server - and deleting them. (Keychain Access in Programs > Utilities is the tool for that.) Once the botched entries were removed from the keychain, I could save my login ...


2

You can create a link file with the username and password, and put that in the login items. In Finder select Connect to Server and enter: smb://domain\username:password@serveraddress Don't click connect or press enter, just highlight the whole address and drag to desktop (or anywhere else), and it will save as a file. You can rename it, if you like. Then ...


2

Try making an alias of the network drive that you would like to connect to and store that in the Login Items. Connect to the device / computer using the Finder. (Note don't connect as a guest) Connect to the share or drive on that source, and open it using the Finder. With that window open showing the contents of that connected share click the network share ...


2

There is a script able interface to the keychain and it is the security command. If you are handy with shell scripting or another language and the password doesn't have spaces and odd characters you need to handle, you could follow this tutorial and teach yourself enough to get the password out of the keychain. http://blog.macromates.com/2006/keychain-...


2

In your configuration, you have unix extensions = no which is fine, but that is why symbolic links on the server are showing up as folders and not aliases. In this mode the server resolves the symbolic links and the client never sees them. If the client tries to create a symbolic link, the server actually generates an alias file, not a host-OS symbolic link. ...


2

Yep! Go to 'Users & Groups' in System Preferences Select the 'Guest User' Tick 'Allow guests to connect to shared folders' Done :)


2

Actually Apple has added a new implementation of SMB as it is now the default filing protocol for file sharing (actually SMB2) http://reviews.cnet.com/8301-13727_7-57588593-263/os-x-mavericks-switches-to-smb2-networking/ While I don't recognize the error you are getting, try replacing SMB in your connection string with CIFS. EG: cifs://server/share That ...


2

Generally, the "You have custom access" can indicate that the file has more complex permissions set than the Finder's Get Info window can display. From this Apple support article: Custom: If the permissions for an item is set to Custom, the permissions have been configured in a way that is more complex than is provided in the basic user settings. It's ...


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