Operating System - HP-UX
1863017 Members
7884 Online
110446 Solutions
New Discussion

cpio command gives chmod error

 
Renda Skandier
Frequent Advisor

cpio command gives chmod error

hi,
I am backing up an entire directory onto tape
using
find $files -print | cpio -ov > /dev/rmt/1m
(which works fine)

when I try to recover the files from tape using
cpio -ivdumx < /dev/rmt/1m

I get the error
Cannot chmod (errno:1)

Any ideas ?Is there a switch which enables chmod or is there a switch to disable it?
thanks
2 REPLIES 2
Rodney Hills
Honored Contributor

Re: cpio command gives chmod error

If you are not root nor the owner of the files, then you would get that error.

Or maybe if the files already exist on the disk system and they already have ACLs.

HTH

-- Rod Hills
There be dragons...
Steve Steel
Honored Contributor

Re: cpio command gives chmod error

Hi


Certainly a permission problem.

I assume you are root thus something else

Is it by chance an nfs directory

Then on server use

sam
networking and communications
networked file systems
exported local file systems.


Using this menu, we

specify:
- Used UID of User 'nobody' (default)
- Allow Asynchronous Writes: No
- Specify Root User Access ...

This could be wrong.You need to specify the host name (target)...
- option is needed for cpio to work on nfs

Steve Steel
If you want truly to understand something, try to change it. (Kurt Lewin)