cpio misunderstanding?

Pegasus Mc Cleaft ken at mthelicon.com
Fri Dec 24 20:40:50 UTC 2010


> If I try to run it manually on one of the files that fails, I get this:
> 
> slug# echo "/usr/local/freesbie-fs/libexec/ld-elf.so.1" | cpio -dump -l -v
> /usr/local/freesbie-clone
> 
> /usr/local/freesbie-clone/usr/local/freesbie-fs/libexec/ld-elf.so.1
> 
> cpio: Can't create '/usr/local/freesbie-clone/usr/local/freesbie-
> fs/libexec/ld-elf.so.1': Operation not permitted
> 0 blocks
> 
> 
> I can use cp to copy the file, so I don't understand what's going on here.
> Does anyone have any ideas?

	I don't know if this is your problem, but whenever I see that "Operation 
not permitted" error I start to suspect file flags. You might want to check 
for extra flags put on the source file or destination directory and see if 
anything weird had been set on it. 

	You can look at the flags with the command "ls -lao". You may also want 
to do a "man chflags" and read the manual page there. 

~Peg


More information about the freebsd-questions mailing list