Solved

CentOS and Windows File Server

Posted on 2013-06-28
5
689 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
5 Comments
 
LVL 77

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 28

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

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Question has a verified solution.

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

Suggested Solutions

1. Introduction As many people are interested in Linux but not as many are interested or knowledgeable (enough) to install Linux on their system, here is a safe way to try out Linux on your existing (Windows) system. The idea is that you insta…
Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
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…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

932 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now