Sharing 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
1 |
client@ubuntu$ sudo su |
2. Then install the samba and smbclient
1 |
root@ubuntu# apt-get install samba smbfs smbclient |
3. After a fine install try this command to check Samba
1 |
root@ubuntu# smbclient-L localhost-U% |
If the road, it would appear as follows
1 2 3 4 5 6 7 8 9 10 11 12 13 |
Sharename Type Comment --------- ---- ------- PUBLIC Disk Data Disk Archive Disk Music Disk IPC$ IPC Server Comment --------- ------- Workgroup Master --------- ------- |
Less is more as above
Then create a folder
1 |
root@ubuntu# mkdir /Windows |
Then Mount Folders on Share or you want to access on Windows
1 |
root@ubuntu# 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
1 |
root@ubuntu # apt-get install samba smbfs smbclient |
Then edit the file smb.conf
1 |
root @ ubuntu # vim / etc / samba / smb.conf |
Well its simple smb.conf content like this
1 2 3 4 5 6 7 8 9 10 |
# Global parameters [global] workgroup = MIDEARTH netbios name = Hobbit security = share [data] comment = Data path = /home read only = No guest ok = Yes |
setting it simple … Now if try to restart his save smb.conf
1 |
root@ubuntu # /etc/init.d/samba restart |
If there is no error, just access from windows