Technical Briefs
Copying Files from Old to New Account on ROHAN
The ROHAN's UNIX operating system, SOLARIS, provides many ways to transfer files from one account to another. One way to copy all of your files in an old account to a new account -- Login to your old account and at the system prompt, enter:
chmod -R og+r .
-
- This will make all of the old account's files public
Now login to your new account and type:
cd ~oldacct;tar cf - .|( cd; tar xfv -)
-
- Replace oldacct with the name of your old account. This will copy all of the old account's files to the new account
After everything is copied over to the new account, login to the old account and at the system prompt enter:
chmod -R og-r .
-
- This will make all of the old account's files private
NOTE: To copy a single filename or directory, replace the dots in the above examples with either the name of the file or the name of the directory.
|
|