Visit Our UNIX and Linux User Community

Mounting Windows Share to Linux Server

Thread Tools Search this Thread
Top Forums UNIX for Beginners Questions & Answers Mounting Windows Share to Linux Server
# 1  
Old 02-15-2017
Mounting Windows Share to Linux Server

Hi Folks -

I need to mount a Windows Share to a Linux server. What is the best/easiest way to do this?

Is this 'how-to' guide accurate:

How to Share Files Between Windows and Linux

Or is there a better method you could share?

# 2  
Old 02-15-2017
It looks reasonably accurate. Mounting a share without a password isn't the greatest idea though. You may want to tailor it a bit more to your own needs; rather than giving access to everyone (dangerous for obvious reasons), open the share as your user and give it a password. -o user=linuxuser,username=winuser,password=pass

See man mount.cifs for more options you can put in -o to control permissions and the like.

Depending on your distro, cifs-utils may be the wrong package, or unnecessary - CIFS share mounting is a device driver, part of the Linux kernel, and might just be there already. If you don't have mount.cifs, try mount -t cifs.

Hosting a CIFS share on Linux is a totally different story, that requires the Samba package.
This User Gave Thanks to Corona688 For This Post:
# 3  
Old 02-15-2017
Thank you!

What's the difference between Hosting and Mounting?
# 4  
Old 02-15-2017
Mounting: Share is on Windows, Linux attaches to it.

Hosting: Share is on Linux, Windows or other attaches to it.
# 5  
Old 02-15-2017
Ah i see!

Yes, the share is on Windows and I'm merely just trying to access it from Linux. Therefore, mounting would the path forward, correct?
# 6  
Old 02-15-2017
# 7  
Old 02-15-2017
As M$-windows and *nix don't have any intersection of protocols in common, you need to deploy "crutches" to make them talk to each other. On the MS side, there is smb (“Server Message Block”), their file sharing protocol (CIFS is a dialect of SMB). Deploy the "samba" suite on *nix to make use of it. On the *nix side, there is the nfs (“Networked File System”) protocol; there are MS windows NFS drivers that enable you to use it.

Previous Thread | Next Thread
Test Your Knowledge in Computers #274
Difficulty: Easy
OpenSolaris is a descendant of the UNIX System V Release 4 (SVR4) code base developed by Sun and AT&T in the late 1980s.
True or False?

8 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Sub-folder in share disappears when mounting to other server

Hello, I have 3 solaris 11.2 servers: 1 and 2: are just fileservers with 1 zfs-share server 3: i want to use this one to connect to the rest of our network (windows machines and a few solaris machines) I created the shares on all servers like this (x needs to be replace with the number... (9 Replies)
Discussion started by: Wim_123
9 Replies

2. Linux

Mounting windows drive into linux server

Dear Experts, My buissness requierment is to place some automated files in Windows server, Now Can you help me to map the Windows folder into Linux server. Windows Details:-windows 2003 Linux Details:- $ uname -a Linux testdb.mawarid.local 2.6.9-55.ELsmp #1 SMP Fri Apr 20 16:36:54 EDT 2007... (3 Replies)
Discussion started by: Mohammed Fareed
3 Replies

3. Red Hat

Mounting NFS filesystem on Windows server

Hello Can someone please suggest how should I configure Samba to share the drive from Linux to Window server, and Windows server is in AD environment. is this require winbind to be installed ?? Thanks, (0 Replies)
Discussion started by: bobby320
0 Replies

4. UNIX for Dummies Questions & Answers

Mounting a standard user, windows share at login

I know how to mount my share via /etc/fstab automatically when the system boots but since I do not have root permission to access the /etc/fstab nor do I think that the system admin wants me to add an entry in /etc/fstab all together. So what file could I add my mount entry in? mount -t cifs... (8 Replies)
Discussion started by: metallica1973
8 Replies

5. UNIX for Dummies Questions & Answers

[Solved] error while mounting windows share on linux

Hi whan i am trying to mount a windows share on linux i received the following error can some one help me with thsi # mount -t cifs \\\\servername\testdata -o username=xw27,password=*es*feed /test Mounting the DFS root for a particular server not implemented yet No ip address specified... (5 Replies)
Discussion started by: robo
5 Replies

6. Solaris

mounting windows share folder

please help me,,i need step to mount windows share folder,,i try samba and nfs and it didnt work (in my linux server the command is fine),,can somenone give me an example for this to be done? (0 Replies)
Discussion started by: Cellscript
0 Replies

7. UNIX for Advanced & Expert Users

Help mounting Windows share in UNIX

We recently upgraded one of our engineering servers, and now the lone UNIX box that houses older CAD files can not connect to it. I have tried every variation of mount I can find, but to no avail. Help is appreciated. Here are the specs: Server: Windows 2003 x64 with Unix Services for Windows... (8 Replies)
Discussion started by: shatterstorm
8 Replies

8. Windows & DOS: Issues & Discussions

Mounting a windows share on AIX

Hi, How can I mount a Windows share (over samba) on an AIX machine? I know there is a utility called smbmount on Linux, but alas, I cannot find out how to the same thing on AIX. anyone have any ideas? thanks! (3 Replies)
Discussion started by: szahir1
3 Replies

Featured Tech Videos