Re: find and chmod
From: Faeandar (mr_castalot_at_yahoo.com)
Date: 04/20/04
- Next message: Chris Lobdell: "Solaris Trojan Infection"
- Previous message: Alan Kilian: "Re: how to know the machine name from a directory path"
- In reply to: Faeandar: "find and chmod"
- Next in thread: Mohun Biswas: "Re: find and chmod"
- Reply: Mohun Biswas: "Re: find and chmod"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Tue, 20 Apr 2004 20:43:22 GMT
On Tue, 20 Apr 2004 19:14:28 GMT, Faeandar <mr_castalot@yahoo.com>
wrote:
>I'm running the following on an nfs file system housed on a NetApp:
>
>sudo find . -type d -name .snapshot -prune -exec chmod g+s \{}
>
>I want to set the sgid bit for all directories from here down. It's
>deep so I don't want to do it by manually but this doesn't seem to
>work, whereas setting it individually does.
>
>Thanks.
>
>~F
Nevermind, found my problem. The command should actually look like:
sudo find . -type d -name .snapshot -prune -o -type d -exec chmod g+s
{} \;
This looks to be working a little better. The "\{}" was actually a
typo. I really was doing "{} \;".
I think the problem was the -o option.
~F
- Next message: Chris Lobdell: "Solaris Trojan Infection"
- Previous message: Alan Kilian: "Re: how to know the machine name from a directory path"
- In reply to: Faeandar: "find and chmod"
- Next in thread: Mohun Biswas: "Re: find and chmod"
- Reply: Mohun Biswas: "Re: find and chmod"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|