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. LFD331 Developing Linux Device Drivers
    25 Aug » 29 Aug - Virtual
    Details
  2. LFD411 Embedded Linux Development
    25 Aug » 29 Aug - Santa Clara, CA
    Details
  3. LFS422 High Availability Linux Architecture
    08 Sep » 11 Sep - Raleigh, NC
    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