Windows – How to Share Windows 8 files with Ubuntu Server 12.10

cifssambaubuntu serverwindows 8

On my network I have a Windows 8 laptop and a Ubuntu Server running 12.10. I can connect to a Ubuntu file share from my Windows 8 laptop with out any issues.

Question: How would I connect & mount a Windows file share from my Ubuntu Server?

This has to be possible seeing I can connect to a Ubuntu Share from Windows 8.

Best Answer

Ubuntu and Gnome make it easy to access files on a Windows network share.

Open the Places Menu, then click on Network. You will see a Windows network icon. Double-click to open it. The next window shows all the domains/workgroups found on your network. Inside each domain/workgroup, you will see all the computers on the domain/workgroup with sharing enabled. Double-click on a computer icon to access its shares and files.

If you want to do it from the command line only:

sudo apt-get install samba smbclient

To mount Windows filesystems using SMB, you will also need smbfs. Enter the command:

sudo apt-get install smbfs

Connecting from the command line is similar to an FTP connection.

List public SMB shares with

smbclient -L //server -U user

Connect to a SMB share with

smbclient //server/share -U user

Enter your user password. You can connect directly with

smbclient //server/share -U user%password

but your password will show on the screen (less secure).

Once connected, you will get a prompt that looks like this:

smb: \>

Type "help", without quotes, at the prompt for a list of available commands.

If you want to mount the Windows share, you need

sudo apt-get install smbfs

then something like:

mkdir ~/mnt
sudo mount -t cifs //myserver_ip_address/myshare ~/mnt -o username=samb_user,noexec
Related Question