≡ Menu

Access File Sharing Windows From Ubuntu Using Samba

samba ubuntuSharing files is a necessity that can not be avoided within a local area network, where we can do share files search or we can share our files. Here I have to say how to Access File Sharing Windows From Ubuntu Using Samba

Try to do this step:

1. Login as Root

[email protected]$ sudo su

2. Then install the samba and smbclient

[email protected]# apt-get install samba smbfs smbclient

3. After a fine install try this command to check Samba

[email protected]# smbclient-L localhost-U%

If the road, it would appear as follows

Sharename Type Comment
--------- ---- -------
Data Disk
Archive Disk
Music Disk

Server Comment
--------- -------

Workgroup Master
--------- -------

Less is more as above

Then create a folder

[email protected]# mkdir /Windows

Then Mount Folders on Share or you want to access on Windows

[email protected]# sudo smbmount //IP_WINDOWS/Music /Windows -o username=dbott,password=mysecretpassword,uid=1000, mask=000

This example is taking Share Music for the Mount on Linux

Now if access file sharing from Windows to Linux

First make sure Linux installed samba

[email protected] # apt-get install samba smbfs smbclient

Then edit the file smb.conf

root @ ubuntu # vim / etc / samba / smb.conf

Well its simple smb.conf content like this

# Global parameters
workgroup = MIDEARTH
netbios name = Hobbit
security = share
comment = Data
path = /home
read only = No
guest ok = Yes

setting it simple … Now if try to restart his save smb.conf

[email protected] # /etc/init.d/samba restart

If there is no error, just access from windows

{ 0 comments… add one }

Leave a Comment