- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: How to keep the user/owner permission for fbac...
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
05-15-2006 06:25 PM
05-15-2006 06:25 PM
Thanks.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-15-2006 06:34 PM
05-15-2006 06:34 PM
SolutionUse the p option.
With 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.
With Tar the "p" option Cause file to be restored to the original modes and ownerships written on the archive, if possible. This is the default for the superuser, and can be overridden by the o function modifier. If system protections prevent the ordinary user from executing chown(), the error is ignored, and the ownership is set to that of the restoring process.
IA
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-15-2006 06:44 PM
05-15-2006 06:44 PM
Re: How to keep the user/owner permission for fbackup/tar/rcp
As per my knowledge when ur taking backup using fbackup,tar the permission will not change..For rcp u may use the -p option..
Cheers
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-15-2006 06:56 PM
05-15-2006 06:56 PM
Re: How to keep the user/owner permission for fbackup/tar/rcp
yes, the permission is same as source.
but the owner are all chage to "root".
(ps: I'm in the root user to execute backup and restore" )
Is it possible keep the original user owner and group for restore files ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-15-2006 07:04 PM
05-15-2006 07:04 PM
Re: How to keep the user/owner permission for fbackup/tar/rcp
I think you may have a difference in environment between the machines.
If you do a tar/untar on your source machine are the ownership/permissions are maintained?
If you now copy the same tarfile onto your target machine and untar, the permissions are ok, but the userdetails are wrong?
Can you doublecheck the group matchings in /etc/groups and /etc/passwd for the user you are copying. Also please check the directory permissions.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-15-2006 07:31 PM
05-15-2006 07:31 PM
Re: How to keep the user/owner permission for fbackup/tar/rcp
Thanks for you all reponse. Due to the /etc/passwd user ID duplicated caused this problem.