Solved

CentOS and Windows File Server

Posted on 2013-06-28
5
701 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 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

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
ifconfig 4 69
lunix and unix command 21 86
Migrating a Linux server to VMware 3 58
Linux MD5 Hash 7 39
Introduction We as admins face situation where we need to redirect websites to another. This may be required as a part of an upgrade keeping the old URL but website should be served from new URL. This document would brief you on different ways ca…
In my business, I use the LTS (Long Term Support) versions of Linux. My workstations do real work, and so I rarely have the patience to deal with silly problems caused by an upgraded kernel that had experimental software on it to begin with from a r…
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…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

861 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