- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Need help with a cp error please
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-10-2006 06:07 AM
05-10-2006 06:07 AM
cp: utime failed /storage/r2w-move/adm_er.asc: Not owner
The main directory is owned by the user and he is also a member of the group. The file is owned by another user who is also a member of the same group.
(ie. Main dir is owned by hbo:hbo, both subdirs are owned by samba:hbo, the file inside that sub-dir is owned by hbo:hbo, samba is a member of the hbo group). The permissions on the file are 664 and both sub-dirs and the main dir currently are 777 (just becuase I am in my testing).
I have googled this and can't seem to find an answer I understand. Can someone explain to me what exactly this means please.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-10-2006 06:19 AM
05-10-2006 06:19 AM
Re: Need help with a cp error please
You say the file(s) copy anyways?
Sounds like the cp command can not set the permissons correctly...
Can you provide a ll of bothe the source and target file?
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-10-2006 06:34 AM
05-10-2006 06:34 AM
Re: Need help with a cp error please
Your error,
cp: utime failed /storage/r2w-move/adm_er.asc: Not owner
Indicates, though "-p" should ideally perserve the modification time and access time, the cp you are involking seems to attempt to change the time stamp on the created file. Hence the "utime" system call is reporting the error saying you are not the owner of the file to change its time stamp. Atleast confirm that whether you copy has happened successfully, inspite of this error.
Check "man utime" for more details. Meanwhile let me check more on this issue. Quite interesting I should say.
Regards,
Senthil Kumar .A
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-10-2006 06:40 AM
05-10-2006 06:40 AM
Re: Need help with a cp error please
It does not appear to copy after all. When I first looked at this the file was there but with a different time stamp on it, the file gets overwritten about every 4 hours. So, in fact the cp -p doesn't work. Question now for me is, all of the files daily are the same owner and group. There are about 300 a day. Why do I only get this error once in a while?
I will keep looking and come back here if I need more help. Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-10-2006 06:44 AM
05-10-2006 06:44 AM
SolutionSimulated your error,
$ cp -p test perm2
cp: utime failed test: Not owner
Just one thought, not too sure any way, I think the file /storage/r2w-move/adm_er.asc should be already existing before the cron performs the copy, Meaning the data part of the file is copied successfuly but is unable to change the inode time stamps because you are not the owner. I would suggest,why don't you empty the destination directory before the cron performs the "cp -p" copy that way I think you would not have this error.
Regards,
Senthil Kumar .A
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-10-2006 06:47 AM
05-10-2006 06:47 AM
Re: Need help with a cp error please
Thank you. I will work on this from here,
Appreciate the help!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-10-2006 02:22 PM
05-10-2006 02:22 PM
Re: Need help with a cp error please
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-11-2006 12:02 AM
05-11-2006 12:02 AM