Find and excluding directory

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



Hi

I have to use find to change the perms of a directory and files within 
that directory recursively but i need to exclude a directory within the 
top level directory, as its a netapp and so contains a read only 
.snapshot dir.

I have tried...

# find /var/data/foo -path '\.\/\.snapshot' -prune -o -exec chown 
usera:groupb {} \;

but

chown: changing ownership of `/var/data/foo/.snapshot': Read-only file 
system
chown: changing ownership of `/var/data/foo/.snapshot/hourly.0': 
Read-only file system
chown: changing ownership of 
`/var/data/foo/.snapshot/hourly.0/filename': Read-only file system

any clue ?

thanks
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux