Solved

Copy directory betweeen Solaris 10 zones

Posted on 2009-04-10
4
1,713 Views
Last Modified: 2012-05-06
I have a Solaris 10 box with 3 zones. I want to sftp the certificate keystore file between zones.

Before hand I logged onto Zone1 and :___ to the keystore directory
    chmod -R 777 keystore
    chown -R sysadmin keystore

then logged into Zone2 as sysadmin and opened terminal
   su
    #sftp sysadmin@zone1(FQDN)
entered PW
    get keystore
result:  Cannot download directory

I am MCSE by trade and fumble thru Unix. To top it off and make it even worse I am dealing with Solaris 10 which I find theres not any good ref books on using it that I have found.
0
Comment
Question by:need4answers
  • 2
4 Comments
 
LVL 40

Accepted Solution

by:
omarfarid earned 500 total points
ID: 24115691
sftp is not meant for dir transfer, use scp -r

scp -r username@remotesystem:/path/to/remdir /path/to/local
0
 

Author Closing Comment

by:need4answers
ID: 31568888
Worked great. You should write a book, Ive been looking for the answer for past 2 days.
0
 
LVL 40

Expert Comment

by:omarfarid
ID: 24116119
I can write a book, but where is the sponsor :)
0
 
LVL 48

Expert Comment

by:Tintin
ID: 24119529
If you have access to the global zone, you can do a simple cp to each of the zones.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

A metadevice consists of one or more devices (slices). It can be expanded by adding slices. Then, it can be grown to fill a larger space while the file system is in use. However, not all UNIX file systems (UFS) can be expanded this way. The conca…
Every server (virtual or physical) needs a console: and the console can be provided through hardware directly connected, software for remote connections, local connections, through a KVM, etc. This document explains the different types of consol…
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 navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

867 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now