ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: Grigory Fateyev <greg@anastasia.ru>
To: ALT Linux Community <community@lists.altlinux.org>
Subject: Re: [Comm] chmod -R
Date: Sat, 3 Dec 2005 19:12:47 +0300
Message-ID: <20051203191247.19ac0ecc@greg> (raw)
In-Reply-To: <200512031749.31275.vt@kdtu.kr.ua>

Hello Oleg Vladimirovich!
On Sat, 3 Dec 2005 17:49:31 +0300 you wrote:

> Всем привет.
> 
> Имею каталог с многими подкаталогами (несколько уровней) и файлами.
> Хотел для всех папок назначить одни права доступа (rwx r-x r-x), а для
> всех  файлов (всех папок) - другой (rw- r-- r--).
> 
> Дал команду :   chmod -R 755 sss1/                                
> ("sss1" -  это название моего каталога) .  Все права изменились
> действительно рекурсивно  (на всех уровнях для всех папок и файлов).
> Т.е. с  правами доступа к папками  и всем  подкаталогами вопрос
> разрешился нормально.
> 
> А вот с файлами так гладко не получилось. 
> Дал команду :   chmod -R 644 sss1/*htm    
> 
> В результате изменились права файлов чьи имена заканчивались на htm, 
> НО  ТОЛЬКО в папке "sss1"  !    В подкаталогах (у файлов подкаталогов
> других  уровней) - ничего не изменилось.  Т.е. рекурсия 
> распостранилась только на 1   уровень (папку).
> 
> Нельзя ли как то этот момент разрешить, чтобы не назначить права
> доступа  вручную для файлов каждой папки отдельно ?

find sss1 -type f -name "*" -exec chmod 644 {} \;

вам на man find :)

-- 
Всего наилучшего!
greg [at] anastasia [dot] ru Григорий.


  reply	other threads:[~2005-12-03 16:12 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-12-03 14:49 Oleg Vladimirovich
2005-12-03 16:12 ` Grigory Fateyev [this message]
2005-12-05  7:51   ` Olvin
2005-12-08 14:39     ` spider
2005-12-08 16:03       ` [Comm] " Michael Shigorin
2005-12-09  8:00       ` [Comm] " Olvin
2005-12-03 16:39 ` Eugene Ostapets

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20051203191247.19ac0ecc@greg \
    --to=greg@anastasia.ru \
    --cc=community@lists.altlinux.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux Community general discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
		mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
	public-inbox-index community

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.community


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git