Solved

CentOS and Windows File Server

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

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 27

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

Backup Your Microsoft Windows Server®

Backup all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Join & Write a Comment

Little introduction about CP: CP is a command on linux that use to copy files and folder from one location to another location. Example usage of CP as follow: cp /myfoder /pathto/destination/folder/ cp abc.tar.gz /pathto/destination/folder/ab…
Note: for this to work properly you need to use a Cross-Over network cable. 1. Connect both servers S1 and S2 on the second network slots respectively. Note that you can use the 1st slots but usually these would be occupied by the Service Provide…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
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.

706 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

19 Experts available now in Live!

Get 1:1 Help Now