Linux.com

Home Linux Community Community Blogs General Linux Accessing Windows share Through Linux Samba service (Command line, not Nautilus) --RHEL6 from

Accessing Windows share Through Linux Samba service (Command line, not Nautilus) --RHEL6 from

Hi,

If you have shared a directory on the windows the same you can access on linux in just a few steps.

1.  First List the share on windows on your Linux machine

  #smbclient -L hostip -U win user name -W workgroup name

    hostip -- ip of windows machine on which the shared directory lies

    workgroup name -- name of the workgroup e.g  abc.com

2. now make a directory on your linux machine, this is basically your mount point

 

3. write the following entry in you /etc/fstab

hostip:/name of shared dir  mountpoint cifs  user= win user name,password=windows password 0 0

all the entries are separated by space or tab for more info read man fstab

mountpoint is the path of the dir you created in step 2 above

4. run mount -a

5 go to the dir created in step 2.

 

There you will get your  windows shared material 

enjoy ||||||||||||||||||||>>>>>>>>>..

Harkamal

 

Comments

Subscribe to Comments Feed

Upcoming Linux Foundation Courses

  1. LFS426 Linux Performance Tuning
    08 Sep » 11 Sep - New York
    Details
  2. LFS520 OpenStack Cloud Architecture and Deployment
    08 Sep » 11 Sep - Virtual
    Details
  3. LFD320 Linux Kernel Internals and Debugging
    15 Sep » 19 Sep - Virtual
    Details

View All Upcoming Courses


Who we are ?

The Linux Foundation is a non-profit consortium dedicated to the growth of Linux.

More About the foundation...

Frequent Questions

Join / Linux Training / Board