Mailinglist Archive: opensuse (2532 mails)

< Previous Next >
Re: [opensuse] recursively chmod files only
  • From: Scott Newton <scottn@xxxxxxxxxx>
  • Date: Sat, 3 May 2008 06:41:02 +1200
  • Message-id: <200805030641.03095.scottn@xxxxxxxxxx>
On Saturday 03 May 2008 06:37:08 Istvan Gabor wrote:
I would like to recursively remove write permission of a
directory but to keep write and access permissions for the
directories.
How can I do this?

I normally do the following:
find <directory> -type d -exec chmod <permissions> {} \;
find <directory> -type f -exec chmod <permissions> {} \;

Hope this helps.

--
Regards
Scott Newton
--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx

< Previous Next >
References