- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- rcp / rcp -p / remsh
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-13-2005 12:42 PM
07-13-2005 12:42 PM
For HPUX 10.20
Do rcp, rcp -p, remsh use
1. /etc/profile
2. $USER_HOME_DIR/.profile
3. umask
in source and destination/remote servers?
What's the different between rcp & rcp -p ? I used rcp/rcp -p to copy file to a remote server: the mode and ownership are same at remote server. The umask are 022 in source and destincatin server.
Thanks
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-13-2005 01:12 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-13-2005 01:18 PM
07-13-2005 01:18 PM
Re: rcp / rcp -p / remsh
<
Server A
========
mode of file1 and file2 = 666
rcp file1 ServerB:/home
rcp -p file2 ServerB:/home
Server B
========
mode of file1 and file2 = 666
<
Server B
=========
Remove file1 and file2
Server A
========
mode of file1 and file2 = 660
rcp file1 ServerB:/home
rcp -p file2 ServerB:/home
Server B
========
mode of file1 and file2 = 660
<
Server B
=========
Remove file1 and file2
Server A
========
mode of file1 and file2 = 664
rcp file1 ServerB:/home
rcp -p file2 ServerB:/home
Server B
========
mode of file1 and file2 = 664
Why rcp also reserve mode ?
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-13-2005 04:07 PM
07-13-2005 04:07 PM
Re: rcp / rcp -p / remsh
I think they will be with rcp -p
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-13-2005 05:24 PM
07-13-2005 05:24 PM
Re: rcp / rcp -p / remsh
rcp -p option can be used to preserve (duplicate) modification times and modes (permissions) of source files, ignoring the current setting of the umask file creation mode mask. If this option is specified, rcp preserves the sticky bit only if the target user is superuser.If the -p option is not specified, rcp preserves the mode and owner of dest_file if it already exists; otherwise rcp uses the mode of the source file modified by the umask on the destination host. Modification and access times of the destination file are set to the time when the copy was made.
Regards
Mahesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-13-2005 06:48 PM
07-13-2005 06:48 PM
Re: rcp / rcp -p / remsh
Is there any offical doc (e.g. from HP) indicated that remsh do not call /etc/profile, /$USER_HOME_DIR/.profile ?
and can remsh set umask ?
Thanks again