[Last Call] Learn how to a build a cloud-first strategyRegister Now


Accessing Windows directory from Solaris Box

Posted on 2006-04-25
Medium Priority
Last Modified: 2013-12-27
We have a Windows 2003 server that will produce files and dump them into a certain directory. We then need a separate Solaris 8 box to poll this directory periodically and if any files exist, pull them down to a certain area in the Solaris box.

I have been looking at installing UNIX services for Windows, setting up an NFS mount, then creating cron script on the
Solaris box to do the polling and moving of directories/files. Ideally - there needs to as little downtime as possible - and looking at demo's/work instructions on Microsoft's site, I would first need to upgrade to Windows 2003 SR2 (which would require downtime), then install all these UNIX services/NFS addons on the Windows box which again would require more downtime for reboots etc.

Am I over complicating this? Is there an easier way to do this?
Question by:Grass-hopper
  • 2
  • 2
LVL 10

Expert Comment

ID: 16533950
Go here and look at question #3:

LVL 38

Assisted Solution

yuzh earned 500 total points
ID: 16540177
Have a look at the links in http:Q_21821445.html#16504541

Author Comment

ID: 16541839
Thanks for the replies,

I have installed Samba and can get connected to the Windows Server share... However,

1. How can I now integrate this into a script so that it connects to the share, checks for new files, pulls any files present down, then deletes the ones on the Windows server - all without prompting for a password (but still being relatively secure)?

My thinking with the nfs share was that the windows shared directory was constantly mounted as a file system under Solaris, therefore a cron'd script could just be run to continually poll this share and do the relevant moving/deleting.

Is this same thing possible under Samba?
LVL 10

Accepted Solution

Nukfror earned 500 total points
ID: 16543274
NFS would allow you to do this without passwords as your suggested.  I know there is a way to allow CIFS mounts without passwords - I'm not Windows guru but pretty sure it has something to do with the Workgroup or Domain you're in.  Your smbclient setup has to match it exactly.

Another method also exists without needing file system access which is use a ssh/rsync config to pull to files over to the Solaris 8 machine. You would need to install SSH as a service on your Windows machine.   www.cygwin.org comes to mind and its free.  The only issue with Cygwin I've found at least with Windows 2000 is when you're installing other software onto the Windows 2000 SSH gleefully gets in the way.  You have to stop the SSH service before installing software and then restart the SSH service.

Cygwin also includes NFS now.  I haven't used it though.

Author Comment

ID: 16544005
Cheers for the replies guys - I had a look at all the methods you gave me links to - but in the end decided to go for the NFS setup as it suited my needs more.

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

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

Hello fellow BSD lovers, I've created a patch process for patching openjdk6 for BSD (FreeBSD specifically), although I tried to keep all BSD versions in mind when creating my patch. Welcome to OpenJDK6 on BSD First let me start with a little …
Installing FreeBSD… FreeBSD is a darling of an operating system. The stability and usability make it a clear choice for servers and desktops (for the cunning). Savvy?  The Ports collection makes available every popular FOSS application and packag…
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 get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Suggested Courses
Course of the Month17 days, 22 hours left to enroll

830 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