Sponsored Content
Top Forums UNIX for Dummies Questions & Answers Copying files to a different server without Permission level change.. Post 302342024 by ronix007 on Friday 7th of August 2009 08:06:38 AM
Old 08-07-2009
Copying files to a different server without Permission level change..

Hi,

I was trying to copy/transfer some new and old files from one server to another server. I found the permission of the files are different in both servers. I tried to tar all the files and then send to the other server, and then also the permission level is different after copying the files.

I have checked with UMASK and also try to create a new files in both servers using 'touch' command. But, I found all are same, NO difference.

Is there any command or way to copy the files without changing their permission level ??? e.g. if a file has permission as '444' in one server, after transferring to other server, it's shows permission as '544' or '554' etc.
 

10 More Discussions You Might Find Interesting

1. 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

2. Shell Programming and Scripting

Change permission for directories and files

Is there a way to change subdirectories permission plus the files in the subdirectories in a directory i specified without using the find command? (1 Reply)
Discussion started by: mingfei2006
1 Replies

3. Shell Programming and Scripting

change files permission on Remote machine

I would like to change permissions recursively on a remote folder. Seems like sftp has a limitation, I am only able to change permission on a individual file.. sftp > chmod 777 /usr/local/apache/docs/test.txt It would be great if someone has more knowledge on how this is doable recursively? (1 Reply)
Discussion started by: almeisan1
1 Replies

4. 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

5. UNIX for Dummies Questions & Answers

Change permission for a set of files

Hi there, I want to change from this permission -r-xr-xr-x to -r-xr-xr-- for a set of files under unix. Can someone help me to go-about doing this in one shot. Cheers, RN (2 Replies)
Discussion started by: karthickrn
2 Replies

6. 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

7. 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

8. 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

9. 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

10. 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
SENDFILE(1)						      General Commands Manual						       SENDFILE(1)

NAME
fetchfile - fetch file(s) via O-SAFT protocol SYNOPSIS
fetchfile [ -46lakdPriqQvVI ] [ -f user ] [ -s [user@]server ] [ -C[wr]=conffile ] filename fetchfile [ -lakdPriqQvVI ] [ -f user ] [ -s [user@]server ] [ -C[wr]=conffile ] -n filenumber DESCRIPTION
fetchfile fetches files from a SAFT server to the local user spool. In the SAFT server spool there must lay your sendfile public key to identify yourself. This key can be generated by the fetchfile -I com- mand and has to be transfered to the SAFT server at the very first time. This prevents other people to steal your files. You may list or fetch your files from the server. But remember, they are stored first in your local sendfile spool. You have to call receive to really receive them to your current directory. OPTIONS
-4, -6 Explicitly force IPv4 or IPv6 connections. By default, the program will try to resolve the name given, and choose the appropriate protocol automatically. If resolving a host name returns both IPv4 and IPv6 addresses, fetchfile will try to use the adresses in the order they are returned by the resolver. -l Only list the files on the server. -a Fetch all files. -k Keep files on server after fetching. -d Delete files without receiving. -n Specify the file number instead of the file name. -r Call receive automaticly afterwards. -f user Restrict file selection to this specifc user. -V Show version information and exit. -v Be verbose and show SAFT protocol messages. -P Send files to stdout directly. -i Ignore testing whether file has been already fetched. -q Quiet mode 1: print no transfer messages. -Q Quiet mode 2: print no transfer, information or warning messages. -I Initialize fetchfile and the pgp key pair. -s [user@]host Specify an alternate saft server and/or alternate user. -Cr=conffile Read configuration file "config" or "restrictions" from server. -Cw=conffile Write configuration file "config" or "restrictions" to server. ARGUMENTS
filename or filenumber Specify the name of the file or its number (with option -n). EXAMPLES
fetchfile -l fetchfile -a fetchfile -Cr=config -s saft.belwue.de FILES
/var/spool/sendfile/$USER/ Your local spool directory. $HOME/.sfspool/ Your local private spool directory if /var/spool/sendfile/$USER/ does not exist. config, restrictions Your configuration files for the server. See sendfile(1) for a description. SEE ALSO
receive(1), sendfile(1), fetchfile(7), sendfiled(8). AUTHOR
Ulli Horlacher - framstag@rus.uni-stuttgart.de 3rd Berkeley Distribution SENDFILE(1)
All times are GMT -4. The time now is 02:05 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy