Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 07 May 2008 14:25:02 +0200
From:      Zbigniew Szalbot <z.szalbot@lc-words.com>
To:        freebsd-questions@freebsd.org
Subject:   Re: chmod operation on directories / files
Message-ID:  <48219F9E.7070106@lc-words.com>
In-Reply-To: <20080507120944.GA4405@healthgrid.org>
References:  <482198FA.8070708@lc-words.com> <20080507120944.GA4405@healthgrid.org>

next in thread | previous in thread | raw e-mail | index | archive | help
This is a cryptographically signed message in MIME format.

--------------ms080509050404060601040605
Content-Type: text/plain; charset=ISO-8859-2; format=flowed
Content-Transfer-Encoding: 7bit

Hello,

Baptiste Grenier pisze:

> Using find(1), you can try something like this:
> 
> For files:
>   find /plop -type f -exec chmod 644 '{}' \;
> 
> For dirs:
>   find /plop -type d -exec chmod 755 '{}' \;


I have recieved many helpful replies. Thank you all. The above did the trick for me. I have saved it for future reference!


Thanks!

-- 
Zbigniew Szalbot
www.lc-words.com

--------------ms080509050404060601040605
Content-Type: application/x-pkcs7-signature; name="smime.p7s"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="smime.p7s"
Content-Description: S/MIME Cryptographic Signature

MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGgUAMIAGCSqGSIb3DQEHAQAAoIIIDzCC
AmIwggHLoAMCAQICEHu/rJNLTC9H4eJZYOf+/Z0wDQYJKoZIhvcNAQEFBQAwYjELMAkGA1UE
BhMCWkExJTAjBgNVBAoTHFRoYXd0ZSBDb25zdWx0aW5nIChQdHkpIEx0ZC4xLDAqBgNVBAMT
I1RoYXd0ZSBQZXJzb25hbCBGcmVlbWFpbCBJc3N1aW5nIENBMB4XDTA4MDQyNjE1MjAzOVoX
DTA5MDQyNjE1MjAzOVowSDEfMB0GA1UEAxMWVGhhd3RlIEZyZWVtYWlsIE1lbWJlcjElMCMG
CSqGSIb3DQEJARYWei5zemFsYm90QGxjLXdvcmRzLmNvbTCBnzANBgkqhkiG9w0BAQEFAAOB
jQAwgYkCgYE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c3N1aW5nIENBAhB7v6yT
S0wvR+HiWWDn/v2dMA0GCSqGSIb3DQEBAQUABIGAq9/abMNlQQtKNHUIvWWKw/8X2M2qr20F
m/H1o+jGEt/tptX5mh80cyytoy6j3M/BtGPPzvgDXzSlfWPxaQ3iB8zTjJBOyboa85V2U0Ra
i1XO3OZO++p7h7tAvtMUtE5ORSRUKXRGo2VbFzehZn6JEPNeB6sRpd5blkyXUgFth6AAAAAA
AAA=
--------------ms080509050404060601040605--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?48219F9E.7070106>