[CentOS] Find and excluding directory
Tom Brown
tom at ng23.netTue Feb 2 14:30:25 UTC 2010
- Previous message: [CentOS] knockd rpm for CentOS-5.4
- Next message: [CentOS] Find and excluding directory
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Previous message: [CentOS] knockd rpm for CentOS-5.4
- Next message: [CentOS] Find and excluding directory
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the CentOS mailing list