Connect to Windows server from Linux | Unix Linux Forums | Windows & DOS: Issues & Discussions

  Go Back    


Windows & DOS: Issues & Discussions All Windows and DOS questions should go here as well. Discuss UNIX to Windows (Desktop or Server) here!

Connect to Windows server from Linux

Windows & DOS: Issues & Discussions


Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 04-26-2013
reachmexyz reachmexyz is offline
Registered User
 
Join Date: Apr 2013
Last Activity: 26 April 2013, 11:24 AM EDT
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Connect to Windows server from Linux

Hi,
We are running Linux server and are required to connect to Windows server and fetch the files from windows server.
How can i connect to Windows server from Linux? I have to do this with a automated shell script on Linux
I appreciate your response.
Sponsored Links
    #2  
Old 04-26-2013
vbe's Avatar
vbe vbe is offline Forum Staff  
Moderator
 
Join Date: Sep 2005
Last Activity: 17 April 2014, 3:54 AM EDT
Location: Switzerland - GE
Posts: 5,490
Thanks: 148
Thanked 361 Times in 338 Posts
automated shellscript meaning scheduled? use cron
fetch files: Look at smbclient man pages for correct syntax and usage
Sponsored Links
    #3  
Old 04-26-2013
reachmexyz reachmexyz is offline
Registered User
 
Join Date: Apr 2013
Last Activity: 26 April 2013, 11:24 AM EDT
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
smbclient is not installed on my linux system?

Do i have any other option just like "ftp" to connect to windows server.
    #4  
Old 04-26-2013
Corona688 Corona688 is offline Forum Staff  
Mead Rotor
 
Join Date: Aug 2005
Last Activity: 17 April 2014, 6:29 PM EDT
Location: Saskatchewan
Posts: 18,531
Thanks: 681
Thanked 3,036 Times in 2,856 Posts
If your windows server exports no shares and runs no FTP/SFTP/SCP/rsync/tftp/whatever daemons, linux cannot magic itself in. Whether you can use any of these solutions depends on your sysadmin.

smbclient is part of the very common samba suite if you wish to install it. It lets you retrieve a file from a share in one command. If you must work without smbclient, Linux can mount a Windows file share like a partition, via the cifs kernel module:


Code:
# modprobe might not be needed
modprobe cifs
mount -t cifs //192.168.0.1/remoteshare /local/path -o username=user,password="Password"
cp /local/path/remotefile /path/to/localdestination

This will only work if Windows is exporting a file share named remoteshare of course.

Last edited by Corona688; 04-26-2013 at 11:40 AM..
Sponsored Links
    #5  
Old 04-27-2013
orange47 orange47 is offline
Registered User
 
Join Date: Dec 2010
Last Activity: 16 April 2014, 9:47 AM EDT
Location: Yugoslavia
Posts: 246
Thanks: 48
Thanked 9 Times in 9 Posts
if you want ftp, there is a good, free, ftp server for windows: freeftpd freeSSHd and freeFTPd - open source SSH and SFTP servers for Windows
I'm not sure how secure it is, though.
Sponsored Links
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Graphically connect RHEL server from Windows 7 Professional RHCE Red Hat 1 02-12-2013 04:30 AM
Connect to Windows from Linux using NetCat Jotne Shell Programming and Scripting 1 11-18-2012 12:46 PM
Trying to connect to Oracle on Windows server rach0701 UNIX and Linux Applications 4 11-22-2011 12:56 PM
Connect windows server Pratik4891 Shell Programming and Scripting 2 10-15-2009 10:40 AM
To Connect to Windows server from Unix server vidzz911 Windows & DOS: Issues & Discussions 4 04-10-2009 08:56 AM



All times are GMT -4. The time now is 11:49 AM.