SMB/Samba

By admin • Software, Uncategorized • 27 dec 2011

Samba is an implementation of the Windows SMB protocol (which allows you to access devices over your network). This allows you to see your iDevice files over your WiFi networks with no additional software required on your computer.

While SMB was made by Microsoft, Samba ports exist for Linux, Mac OS and tons of other OSes so you can access your device from all of those as well.

The current default configuration for Samba on iOS gives you read-only access to most of the file system and write access to an empty storage directory. This is actually done to prevent accidental damage (it’s easy in Windows Explorer to move a directory from one place to the other by accident). If you want more control over the sharing I highly recommend reading about Samba and how to configure it to do what you want (the configuration file resides in /etc/samba/smb.conf).

This port should was tested on iOS 3 and 4 (iOS 5 will be supported when it’s out).

How to install Samba on your Apple TV2:

run : wget http://apt.saurik.com/debs/samba_3.2.7-4_iphoneos-arm.deb

Now install with : dpkg -i samba_3.2.7-4_iphoneos-arm.deb

Test to see what version your smbd & nmbd has

Find smb servers in your network

Let’s see if I can login to my NAS

note, to remove samba :
apt-get remove samba

 

Next items I need to test, (seems to work for the iPhone) just noted not to forget.. ;-)

  • The service is turned off by default after installation.
  • The service username is root and cannot be changed.
  • The service default password is listed on the bottom on the settings pane (this is a security feature, each device has it’s own auto generated passwd), you can use it, or change to your own one.
  • nmbd isn’t automatically loaded, so device doesn’t show up at “network neighbourhood” (and the likes) for now.
  • The whole filesystem of the device shows up as a writable network share with the URI \\\main in windows or smb:///main otherwise.

Tags: , , , , ,

Comments are closed.