Monday, June 22, 2015

[Apple] : Mounting Apple Time Capsule share from Ubuntu 14.04

Mounting Apple Time Capsule share from Ubuntu 14.04 

 

Older Apple Time Capsule NAS devices don't support NTLMv2: only NTLM.  So when mounting an SMB share from such a device, you need to manually select NTLM as your security mode. Otherwise the CIFS Client fails to mount the share, and reports a permission error.
So, the correct syntax for Ubuntu 14.04 is:-
   sudo mount -t cifs //1.2.3.4/Data -o username=example,password=example,sec=ntlm /mnt/example

where 1.2.3.4 is the IP address of your Time Capsule.

If the CIFS client isn't installed on your Ubuntu box then first you just need to run:- 
    sudo apt-get install cifs-utils

For bonus points you can of course pass the login credentials from a protected file in your home directory rather than passing it on the command line (where it's visible in process listings and bash shell history files).

If you're not sure of the mount point name,  ask first:-
   smbclient -U example -L //1.2.3.4
   Enter example's password: 

... and a list of shares will be shown.  You want the one of type "Disk".

 

No comments: