Link to home
Start Free TrialLog in
Avatar of ramble
rambleFlag for United States of America

asked on

Unix/Windows Sharing and Mounting partitions

I've installed Samba, and had relatively no problems connecting to a shared directory on Solaris.  Now I'd like to go the other way.  Ultimately, what I want to accomplish is this: (however, if I just receive info on sharing a windows directory from my Solaris, that'd be good too)

prompt# ufsdump 0cfu /dev/rmt/2 /dev/rdsk/c0t3d0s0
   ...OR, something like this...
prompt# ufsdump xfs /dev/rmt/2

Where /dev/rmt/2 (which doesn't exist yet) is a shared "virtual mount point" located on a Windows Box.  I know I'll loose permissions...because of the Windows NTFS, but I'd like to simple restore the data to this drive.

Thanks for any comments.  With any proposed solutions, please let me know of any security holes that may exist...or to watch out for.

Avatar of yuzh
yuzh

I hope that I can understand your question, do you want to mirroring/synchronized the 2 filesystems (dirs). if it is the case, use "rsync" to do the job,

you can download "rsync" from" (FREE)

http://sunfreeware.com/

The systax for using rsyns:
 /usr/local/bin/rsync --delete -az /dir1 /dir2

man rsync

to learn more details



Hi!

I don't think this can be done in Solaris.

A workaround that would work for you would be the following.

With samba on Solaris box, share a dir you call backup or restore or something other intelligent.

Do an ufsdump to that dir. I necessary add a disk to Solaris machine to just store this backup.

Install svcrsh service on windoes box, it's in resource kit for both NT and w2k.

When the ufsdump finishes run a script through rsh on wndows box that copies the ufsdump file from the backup share.

In script on windows box either map tha share or jsut do copy \\solarisbox\backup\daily_dump.dmp d:\backup.sol

Or something.

I don't understand why you do it like this though.
If you use veritas to take backup, just donload veritas solaris remote agent and install it.

This is how we are doing it. Then just wait for a while go to windows box doing backup and you should have a new choices in selection where you will find you solaris machine.

Regards
/Hans - Erik Skyttberg
Avatar of ramble

ASKER


yuzh:  To help clarify what I want:  I can get to my Solaris box from windows quite easily.  I simply go to "my network places" and browse to the unix computer name...and copy or save files to the directory I am sharing from my Unix box.

Now...I'd like to do the same thing...in reverse.  I'd like to somehow "mount" a directory that is shared from the Windows box, so I can copy files and directories from Unix to windows.

heskyttberg:  I can't do what you suggest.  My Solaris Box has over 70Gigs of info, and only about 10 Gigs free.  So I can't do a ufsdump to a directory, because there isn't near enough room.

Is veritas a commercial product?  If so, budget times are tough...so this would't be an option at this time.

-=-=-=-=-=-=-
Please don't overlook the obvious!  :^)  There may be a simple way to browse, and use a windows directory that I'm simply not aware of.

How would this change if I set-up a Linux box (in place of the windows box).  How would you share directories from Unix to Linux across the network?

Thanks again, for you input.


Hi!

It would change quite a bit if you use a linux box.

Since both linux and solaris can use NFS.

So you could just NFS share dir on linux box and mount it on solaris box.

In linux in order to get onto a windows share you can do this:

I usually do like this.
Create a dir under /mnt called winsrvname_share or something so I know what it is if I plan to use many.
If I only plan to use one I just create a dir under /mnt called smbfs.

Then I can do this:
mount -t smbfs -o username=windowsusername -o password=winpasswd //winservername/share /mnt/smbfs

You can ommit -p password, then you'll be prompted for one.

Now you can just copy files from anywhere on the linux box to /mnt/smbfs

Regards
/Hans - Erik Skyttberg
Avatar of ramble

ASKER

heskyttberg:

Ok.  That sounds easy enough.  I created the directory under /mnt/mydir on my Solaris and mounted it from the linux box.  I can see the contents...but root owns part if it, and USER owns part of it.  If I'm root...I can go view the contents that root owns, but not the contents that USER owns.  If I'm user...I can view the contents that USER owns...but not root (which is how it should be).

How come root can't view USER using the mnt?

What kind of security holes are in using this method?  And...is it possible to mount the tape drive of the Solaris box from the linux box...and have linux us the tape drive?

ASKER CERTIFIED SOLUTION
Avatar of heskyttberg
heskyttberg

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of ramble

ASKER

heskyttberg:

You've been great.  You've given me a lot of things to consider, and think about.  I'll probably create a more "pointed" question, and see if I can pull in an NFS expert.

-Thanks
Avatar of ramble

ASKER

Thanks_ramble

Just Ignore the last comment