CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Beginner:
Accessing Windows network shares from Linux

 



HaMBoNE79
New User

May 29, 2008, 8:41 AM

Post #1 of 2 (639 views)
Accessing Windows network shares from Linux Can't Post

I need a little help with rewriting a Perl script that is used by my company to replicate files between several servers. The script was originally written for Windows and my server is currently running Linux. Up until today, all of my experience with Perl has been on Linux so I don't know if what I'm trying to do is possible (or what modules I might need to make it work)...

For the most part the script looks like it will work fine on our Linux server with the exception that the script is written to access windows shares directly (i.e. \\\\SERVERNAME\\sharename\\files). What I need to know is if there is way to access these paths directly on Linux or if I need to use cifs to map them locally? Also, the other locations can apparently run this script without the need to give user/password information when the script runs, so I wanted to see if it would be possible do the same thing on Linux (I really don't want to store passwords in the script)?

Thanks!


BorisE
Novice

May 30, 2008, 11:50 PM

Post #2 of 2 (627 views)
Re: [HaMBoNE79] Accessing Windows network shares from Linux [In reply to] Can't Post

YMMV... I think you will have to map/mount the folders, I don't think you can access them directly as file paths, but if you could then the backslashes would need to be replaced by forward slashes.

As far as I'm aware Windows defaults to a username of guest for unprotected shares.

Windows and Samba seem to behave slightly differently with regards to logging in to a remote host. In Windows you cannot log into the same host with more than one identity whereas with Samba it appears that you can. This means that every attempt to mount a share should supply for a username.

 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives