Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Steps to write to a Win2003 server from Unix box 1

Status
Not open for further replies.

cdlvj

MIS
Nov 18, 2003
676
US
Not clear on how to set this up. Just simply want to write to windows share for backup purposes.

Have samba installed, and running.
Win2003 workgroup.

set up user/and password on both systems
put user/password into samba password program.

configured a share on Win2k3.

Does netbios have to be set up.
Does Wins have to be configured.

The smbmnt all refer to Linux.
Do I mount the win2k3 share to my /mnt?
How is this done?
 
Just simply want to write to windows share
What about smbclient ?

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
Figured out the smbclient, and put the files out there.
Looks as though you can tar the files on the Win machine back to the unix.

Isn't there a way to stream the data to the Win share.

ie cpio running on the Unix and putting the file on the Win share?
 
What about a recursive mput ?
cd /path/to/sourcedir
smbclient .... -c 'recurse;prompt;cd path/to/windir;mput *'

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
There has got to be some way to stream the output from like a cpio command. I do not have the extra space on the unix server.

I want to archive the entire filesystem, as this other way would take forever.
Thanks.
 
What about something like this ?
cpio ... | smbclient ... -c 'put - uxBackup.cpio;q'


Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
Check on using mount.cifs on the *NIX side.

/sbin/mount.cifs //WINSERVER/SHARE /windir -o user=administrator password=goodpasswd

I don't know how this will play with file ownership and permissions. The mount-point (/windir in this example) should already exist.





"Proof that there is intelligent life in Oregon. Well, Life anyway.
 
motoslide, which flavor of *nix (not Linux) has mount.cifs ?
 
PHV, you the man!!!!!!!!!!!!!!!!!

Works perfectly
 
I think it's part of Samba:

Code:
NAME
       mount.cifs - mount using the Common Internet File System (CIFS)

SYNOPSIS
       mount.cifs {service} {mount-point} [-o options]

DESCRIPTION
       This tool is part of the samba(7) suite.

It's available on Redhat ES4 and SCO OpenServer6. Those are the only two I can get my fingers on at this moment.

"Proof that there is intelligent life in Oregon. Well, Life anyway.
 
motoslide, have you already successfully done a mount -t cifs on OSR6 ?
 
My bad:
I was sitting on a Linux system when I saw the original request. That worked as described. Then I just hopped over to the SCO box and found the same "man page" for mount.cifs, but no joy.

The ability to mount a Windows share on UNIX seems like it should be "old news" by now. We've been doing that with VisionFS for years.

Since this was posted in the SAMBA forum, it seemed like a valid option.

Thanks for the correction.

"Proof that there is intelligent life in Oregon. Well, Life anyway.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top