Monday, October 10, 2011

windows access ubuntu files (file sharing) via Samba

Getting started:

To get started, click ‘Power –> System Settings’

natty_windows__part2

Next, select ‘System –> Ubuntu Software Center’

natty_windows__part2_1

Then search for and install ‘system-config-samba’
system-config-samba
natty_windows__part2_2

After installing, go to ‘Power –> System Settings’

natty_windows__part2

Then, select ‘System –> Samba’

natty_windows__part2_3

Next, select ‘Preferences –> Server Settings’

natty_windows__part2_4

Finally, type the workgroup name you entered earlier on your Windows system and save.
workgroup here is same as the windows group

natty_windows__part2_5

Restart and you’re done.

Now both Windows and Ubuntu systems are member of the same workgroup. If networking is properly configured, you should be able to see both systems within the workgroup you created. The third article in this series will focus on creating shares on both systems so that users on either system can view and access.

From Windows:

natty_windows_share_part2


Creating Shares In Ubuntu 11.04 Natty:

To create shares in Ubuntu Systems, go to ‘Power –> System Settings’

natty_windows_sharing_part3_3

Then select ‘System –> Samba’

natty_windows_sharing_part3

When Samba opens, click Add (Green Plus) to add shares. Next select the directory you wish to share and check the boxes to make it Visible and Writable.

natty_windows_sharing_part3_1

Next, select the ‘Access’ tab and select the users you wish to grant access to it and close out.

natty_windows_sharing_part3_2

That’s all. The directory is shared and users that have access should be able to view and access it remotely from another system.

Finally, add the users that will have access remotely to Samba User Database. To do that type the command below for each user:
sudo smbpasswd -a USERNAME
Replace USERNAE with a valid username on the Ubuntu system. You will be prompted to create a new Samba password for the user.

To access Windows shares, open your Home Folder and select “Network” then double click on the system you wish to access. When prompted, type your Windows’ username and password and click ‘Connect’

natty_windows_sharing_part3_4


Connect ubuntu files by using "richard"'s password on windows side.