copying .profile files to a new server (SCO)


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers copying .profile files to a new server (SCO)
# 1  
Old 11-29-2007
copying .profile files to a new server (SCO)

Hello Intelligent Life Forms (I hope)

This should be a snap for some of you.
I need to copy the /usr .profiles from 1 sco system to another.
Migrating to a new server.

I've tried a recursive copy to the target system with a NFS mount point from the source. Wouldn't do it permissions problem.

Tried creating a tar file from the source /usr/file but again got a permissions error on the restore. But only for the file I needed, .profile, all other files restored to the target. Most of the .profile files I see have permissions set to -rw--r--r.

The only way I was able to push one of the .profile files across was logging into the source system and ftp'ing it to the target. Too many usrs on the system to make this practical.
Please send help,
Thanks
# 2  
Old 12-03-2007
Sometimes you can get the NFS filesystem mounted in such a way as to give the NFS client's root account full access. But what I would do is create a tar archive on the client. Use NFS to copy the tar archive to the NFS server. Log on to the NFS server. Now untar the archive as root. At this point your are simply root resoring a tar archive to local disks...no NFS permissions to bite you.
# 3  
Old 12-05-2007
Quote:
Originally Posted by Perderabo
Sometimes you can get the NFS filesystem mounted in such a way as to give the NFS client's root account full access. But what I would do is create a tar archive on the client. Use NFS to copy the tar archive to the NFS server. Log on to the NFS server. Now untar the archive as root. At this point your are simply root resoring a tar archive to local disks...no NFS permissions to bite you.
Perderabo,

I thank you for your suggestion. I'm not real NFS savvy. I tried to do what you suggested but there were a few system files that required updating and I was uncomfortable with doing that.
So what I did was ...I logged into the source system as root and created a tar file. (from the /usr directory) tar cvf usr_profiles /usr/*/.profile Then from that system I ftp'd to the target server and placed the file (usr_profiles) in it's /usr directory. Then I just did a tar xvf usr_profiles and all the accounts in the directory were updated properly with the .profiles. I thought I had done this very same thing last week and it didn't work. Apparently not or some "devine intervention" prevailed. The power of prayer. Works for me .Thanks again.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Copying files to remote server

I am trying to copy code to remote server, doing something like this However it is copying one file and than the script exits i=0; j=0 while read fn; do dir=${fn%/*} # Gets directory path fnm=${fn##*/} # Gets filename excl. path rgx_nwk="s/${nwk}/${nwk}.sac/g" ... (2 Replies)
Discussion started by: kristinu
2 Replies

2. Shell Programming and Scripting

Copying the files to Windows server from UNIX server

Hi Team, I had a requirement to write a shell script which automatically transfer the files from unix server to windows server. I can able to unix to unix using Scp command. I am not sure how to do unix to windows. I am very new on this concept. Could you please help me or guide in... (4 Replies)
Discussion started by: gvkumar25
4 Replies

3. Shell Programming and Scripting

Copying files from one server to another server?

Hi all, In Server1, one directory contains files now. In this directory, based on some operations, daily some files will generate and store regularly. Now i want to copy the files to Server2 through SFTP/FTP command on daily based on the previous day present data(i.e based on the latest file... (1 Reply)
Discussion started by: venkat6134
1 Replies

4. UNIX for Dummies Questions & Answers

Copying files from one server to another

I need to copy huge set of data(files & floder) from one server to other. Can any one guide me.I have tried throught ftp mget but it is vain...floder are not moving...... Do suggest me any good method (12 Replies)
Discussion started by: kkalyan
12 Replies

5. SCO

Need advice: Copying large CSV report files off SCO system

I have a SCO Unix server from 1999 running SCO 5.0.5 and some ancient accounting software called Real World A report writer program on the system is used to generate CSV files from accounting that we write with DOSCOPY commands to 3.5" floppies In the next 60 days we will be decommissioning... (11 Replies)
Discussion started by: magnetman
11 Replies

6. UNIX for Dummies Questions & Answers

Copying files from different server

Is there any option to copy files from a different server other than using an SCP command??? thanks,:b: Arun manas (2 Replies)
Discussion started by: arunmanas
2 Replies

7. Shell Programming and Scripting

Copying files from one server to other.

Any one advice here- need to copy some files from one server to other server thru shell programming. (8 Replies)
Discussion started by: samkhu
8 Replies

8. UNIX for Dummies Questions & Answers

Copying a list of files from one 'server' to another?

I have two servers. I would like to copy some files from one directory on server A into the same directory on server B. Its not all the files in in the directory, just some of them. Is there a way to make a file list in a txt file and then somehow copy all the files in that list in one go to... (6 Replies)
Discussion started by: Sepia
6 Replies

9. Shell Programming and Scripting

copying files from one server to another server

Hi, I want to transfer files from one linux server to another linux server using shell script using sftp. But I dont won't that while connecting one server to another server it will ask for password , it should be part of script. I wont to know how password should be included in the... (4 Replies)
Discussion started by: manoj.solaris
4 Replies

10. UNIX for Advanced & Expert Users

Copying files between 2 Unix server

Is there a simple way to copy data from one server to a different server? Seems that if 2 servers are on the same network, there should be a simple way to copy between the two. Not just one file. I need to copy a whole directory with subdirectories from one server to a different one. I... (9 Replies)
Discussion started by: Docboyeee
9 Replies
Login or Register to Ask a Question