Solved

CentOS and Windows File Server

Posted on 2013-06-28
5
704 Views
Last Modified: 2013-07-15
Is there a way a CentOS server can access a file share hosted on a Windows Domain File Server?
0
Comment
Question by:deklinm
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
5 Comments
 
LVL 78

Expert Comment

by:arnold
ID: 39286237
Yes, there are two.
One uses Unix Tools on windows (component that can be installed, feature depending on  the os version) and the shares are accessed using NFS (Network File Share)
The other is using samba.

You can would need  to integrate the centos box into the domain using samba and winbind.

Usually the centos box is a file server
0
 
LVL 6

Accepted Solution

by:
Vijay Pratap Singh earned 500 total points
ID: 39286309
No need of samba as its windows share need to be mounted on linux use NFS just need to edit file.

/etc/exports (inlinux)

and restart NFS and Portmap daemons

http://www.linuxhomenetworking.com/forums/showthread.php/18733-Mount-an-NFS-share-from-Windows
0
 
LVL 17

Expert Comment

by:Sikhumbuzo Ntsada
ID: 39296360
Here is another step by step.
0
 
LVL 29

Expert Comment

by:serialband
ID: 39308674
Here's another way with smbclient instead of services for unix.

Install smbclient on Centos/Redhat.
yum install smbclient

List the shares on the remote system
smbclient -l WINDOWS_HOST

Mount the windows share.
/usr/bin/smbclient \\\\WINDOWS_HOST\\SHARE mypasswd


http://www.tldp.org/HOWTO/SMB-HOWTO-8.html
0
 
LVL 21

Expert Comment

by:Mazdajai
ID: 39316257
Correction to post 39308674, to list shares it is "-L" -

smbclient -L $host -U username

Open in new window


You can use mount command and include in /etc/fstab on a reboot. As long as you have smbclient installed -
mount -t cifs //$host/$share /tmp/share1 -o username=xxx,passwrd=xxx

Open in new window

0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Zimbra on Amazon Linux help 7 115
Moving from Mcrypt to OpenSSL 18 66
HOw To Install Docker on VMware Workstation 19 346
Fuzzy search functionality DB2 UDB 3 36
If you use Debian 6 Squeeze and you are tired of looking at the childish graphical GDM login screen that is used by default, here's an easy way to change it. If you've already tried to change it you've probably discovered that none of the old met…
The purpose of this article is to fix the unknown display problem in Linux Mint operating system. After installing the OS if you see Display monitor is not recognized then we can install "MESA" utilities to fix this problem or we can install additio…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question