Operating System - HP-UX
1827807 Members
3098 Online
109969 Solutions
New Discussion

Re: data share between windows and UNIX

 
SOLVED
Go to solution
Frank Li
Trusted Contributor

data share between windows and UNIX

Hi,

Some of our project will be done on windows(NT or 98) platform . the HP unix system and the windows will mutually access the data each other .

Could you tell me that how can I do so that the HP unix can access the data on the windows system ?

And the windows system how to access the data on the unix machine ?

Frank.
Hi Friend
14 REPLIES 14
Bill Hassell
Honored Contributor
Solution

Re: data share between windows and UNIX

The easy answer is to use SAMBA (called CIFS/9000 for version 11.0). Howwever, you will be sharing somewhat incompatible file subsystems. For example, a plain ASCII file on the PC will have an extra character (^M or the carriage return character) at the end of each line.

Conversely, an HP-UX ASCII file will be unreadable in Notepad. Wordpad and Word will look OK but the lone LF (line feed character) used by Unix will be seen as a soft return which is meaningful in word processors.

Of course, executables are not compatible. Binary data files are probably the most compatible as long as the appropriate programs are available on both systems.

Documentation for CIFS in found at docs.hp.com and SAMBA can be found at www.samba.org.


Bill Hassell, sysadmin
Philip Chan_1
Respected Contributor

Re: data share between windows and UNIX

Samba should be the way to go. It (CIFS/9000)is available in depot format that can be downloaded from HP, do a search on "CIFS" then you should found it.

For incompatible linefeed characters, these can be fixed by the "ux2dos" and "dos2ux" commands.

Rgds,
Philip
Fred Martin_1
Valued Contributor

Re: data share between windows and UNIX

We use a product called FacetWin, that lets you share printers and folders/directories in either direction between unix and NT (or, Win95). Also allows PCs to use unix modems, etc. It's pretty robust. Security and permisions apply, etc. and you can control what will be shared, what won't be.

Costs though, and a yearly maintenance fee is the way to go with this product, since you'll need support when you upgrade unix etc.

See it at www.facetcorp.com
fmartin@applicatorssales.com
John Bolene
Honored Contributor

Re: data share between windows and UNIX

Samba (CIFS) will allow you to access the Unix data and the Windows data from a Windows PC.
It will not allow Unix to get to the Windows data on the Windows machine.
You will have to use the Samba directory for moving data back and forth that is to be used.

IE, the Samba directory on the Unix machine can be seen by both, but the Windows directory can only be seen by Windows.

I am not sure if this is what you want to do.
It is always a good day when you are launching rockets! http://tripolioklahoma.org, Mostly Missiles http://mostlymissiles.com
Mark Mitchell
Trusted Contributor

Re: data share between windows and UNIX

I use a product from NETMANAGE, it is very stable and is called View-Now. It will allow you to map Unix directories to Windows based computers like network drives. Go to
www.netmanage.com and check it out. There is also a solaris product too.
Joseph T. Wyckoff
Honored Contributor

Re: data share between windows and UNIX

Similar ideas here...

Microsoft sells a set of gadgets called Services For Unix (SFU) - to my knowledge the usful tool here would be an NFS daemon to run on NT.

There are other brands of NFS (and unix-like services) out there - including, I think, some that are 'freeware' or 'shareware.'

In the past I have seen people script FTP for a batch (i.e. nightly) transfer from one platform to another... a sort of poor mans mirror. Since both platforms have an ftpd (NT needs IIS - but it is usually installed nowdays) this is workable - cheap.

But, as mentioned elsewhere, since CIFS is available on HPUX - all you need to do is install it - that is probably your best solution.
Omniback and NT problems? double check name resolution, DNS/HOSTS...
Account Not Used
Frequent Advisor

Re: data share between windows and UNIX

SAMBA is a nice tool provided you aren't using it across a Production environment. The SAMBA protocal does bring Windows security vulnerabilties over to the Unix side. I would be very cautious on setting it up.
"Who moved my cheese?"
Terry Kozak
New Member

Re: data share between windows and UNIX

Definitely Samba www.samba.org.
There is a packaged version for HP-UX called CIFS9000.
I like to compile so i grabbed the latest source and compiled it. My preference.

If you have an NT domain controller you can have your workstation authenticate against the NT box then allow access to the HP-UX server if successful.

the ^M is definitely a problem.
Samba according to their docs has not promised a fix for this but dos2ux and ux2dos usually cleans up the ascii files so its ok.

AFI HP-UX ADMIN
Advisor

Re: data share between windows and UNIX

I implemented CIFS/9000 (SAMBA) on our development boxes. - The developers love it. Our mainframers are even deploying SAMBA on OS/390 to provide the same functionality.

One warning; filename casing gets mangled during file transfers. Haven't had time to read the manual yet. Oreilly has the 'Using SAMBA' book in PDF and HTML format for the taking.
command line # or GUI ?
Mark Vollmers
Esteemed Contributor

Re: data share between windows and UNIX

We use a product called Disk Access and Disk Share. This is installed on the Windows machines (95/98/NT) and allows folders to be shared to the Unix server. On the Unix side, I made folders (just like mounting a CD) and then mount the folders. The users have their Unix account and are logged on when they log on to Windows. The server (/home) shows up as a shared network drive on Windows through the same software. It works well for us.

Mark
"We apologize for the inconvience" -God's last message to all creation, from Douglas Adams "So Long and Thanks for all the Fish"
Frank Li
Trusted Contributor

Re: data share between windows and UNIX

thanks for your all great help.

I am now trying to use samba on our system . Just now I have a test from my pc , it can get the files from the unix machine except the file can't be opened well be notepad , as said by Bill , it can be opened by winword or wordpad. Is there any solution on Win platform to solve , and since ux2dos only exists on Unix.

I just know little about samba now , Is it really just John said : The win share directory can't be seen by unix ? I know HP has CIFS 9000/client , is it useful to make win directory to be seen by unix ?

Frank.
Hi Friend
Richard Darling
Trusted Contributor

Re: data share between windows and UNIX

If it is limited use, such as notes on a project, we just open the UNIX file using the view option in FTP Voyager. Simple and easy. We also use ftp to get a file, add some notes, and pass it back (either way).

Richard
chaitu
New Member

Re: data share between windows and UNIX

Hi Frank,

Please send me the proper document to configure samba share to share a unix folder to window user. my mail id : chaitanya.nagalla@gmail.com

Thanks,
chaitu
Dennis Handly
Acclaimed Contributor

Re: data share between windows and UNIX

>chaitu: Frank: Please send me the proper document

Frank hasn't been here for years. You should create your own thread and point to this one and ask your new question.