ALT Linux Community general discussions
 help / color / mirror / Atom feed
* [Comm] set files rights
@ 2003-09-08 11:40 Sergey A. Kolesnitchenko
  2003-09-08 11:46 ` Maxim Tyurin
                   ` (2 more replies)
  0 siblings, 3 replies; 16+ messages in thread
From: Sergey A. Kolesnitchenko @ 2003-09-08 11:40 UTC (permalink / raw)
  To: community

Добрый день, уважаемые коллеги!
Подскажите пожалуйста, как можно установить одинаковые права и группу на всю
директорию и вложенные в нее файлы и директории автоматически?
Скрипт bash/perl?
C уважением,
Сергей




^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [Comm] set files rights
  2003-09-08 11:40 [Comm] set files rights Sergey A. Kolesnitchenko
@ 2003-09-08 11:46 ` Maxim Tyurin
  2003-09-08 11:48 ` Leonid B. Sysoletin
  2003-09-08 12:11 ` Igor Homyakov
  2 siblings, 0 replies; 16+ messages in thread
From: Maxim Tyurin @ 2003-09-08 11:46 UTC (permalink / raw)
  To: community

On Mon, Sep 08, 2003 at 03:40:44PM +0400, Sergey A. Kolesnitchenko wrote:
> Добрый день, уважаемые коллеги!
> Подскажите пожалуйста, как можно установить одинаковые права и группу на всю
> директорию и вложенные в нее файлы и директории автоматически?

chown -R
chmod -R

> Скрипт bash/perl?
> C уважением,
> Сергей
> 
> 
> _______________________________________________
> Community mailing list
> Community@altlinux.ru
> http://www.altlinux.ru/mailman/listinfo/community

-- 

With Best Regards, Maxim Tyurin
JID:	MrKooll@jabber.pibhe.com
			


^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [Comm] set files rights
  2003-09-08 11:40 [Comm] set files rights Sergey A. Kolesnitchenko
  2003-09-08 11:46 ` Maxim Tyurin
@ 2003-09-08 11:48 ` Leonid B. Sysoletin
  2003-09-08 12:11 ` Igor Homyakov
  2 siblings, 0 replies; 16+ messages in thread
From: Leonid B. Sysoletin @ 2003-09-08 11:48 UTC (permalink / raw)
  To: community

В сообщении от 8 Сентябрь 2003 15:40 Sergey A. Kolesnitchenko написал(a):
> Подскажите пожалуйста, как можно установить одинаковые права и группу на
> всю директорию и вложенные в нее файлы и директории автоматически?

chown -R
chmod -R

> Скрипт bash/perl?

Наверное, можно и скриптом. Но зачем?

-- 
Л. Сысолетин,
webmaster@unicon-ms.ru, webmaster@bdo.ru
[Team Ёжики-рулез!] [Team Котёнки на солярке] [Team Берегите букву "ё"!]
[Team Я люблю свою фортунку] [Team Фортунка в переписку не вступает]

Fortune's Office Door Sign of the Week:

	Incorrigible punster -- Do not incorrige.



^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [Comm] set files rights
  2003-09-08 12:11 ` Igor Homyakov
@ 2003-09-08 12:09   ` Alexey I. Froloff
  2003-09-08 13:43     ` [Comm] " Vitaly Ostanin
  2003-09-08 14:43     ` Denis Smirnov
  0 siblings, 2 replies; 16+ messages in thread
From: Alexey I. Froloff @ 2003-09-08 12:09 UTC (permalink / raw)
  To: community

[-- Attachment #1: Type: text/plain, Size: 623 bytes --]

* Igor Homyakov <homyakov@ramax.spb.ru> [030908 16:07]:
> > Подскажите пожалуйста, как можно установить одинаковые права и группу на всю
> > директорию и вложенные в нее файлы и директории автоматически?
> > Скрипт bash/perl?
> пример:
> # cd /some/dir/
> # find . -type f -print0 | xargs -0 chmod 644 
> # find . -type d -print0 | xargs -0 chmod 755
> # chgrp -R newgroup *
> немного длинный но наиболее корректный способ
heh! man chmod на тему X (икс большое ;-)

-- 
Regards, Sir Raorn.
-------------------
Не надо засорять список рассылки offtopic'ами,
для этого есть другие рассылки @altlinux.ru
		-- ldv in sisyphus@

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [Comm] set files rights
  2003-09-08 11:40 [Comm] set files rights Sergey A. Kolesnitchenko
  2003-09-08 11:46 ` Maxim Tyurin
  2003-09-08 11:48 ` Leonid B. Sysoletin
@ 2003-09-08 12:11 ` Igor Homyakov
  2003-09-08 12:09   ` Alexey I. Froloff
  2 siblings, 1 reply; 16+ messages in thread
From: Igor Homyakov @ 2003-09-08 12:11 UTC (permalink / raw)
  To: community





* Sergey A. Kolesnitchenko <sergey.ak@mtu-net.ru> [030908 15:42]:
> Добрый день, уважаемые коллеги!
> Подскажите пожалуйста, как можно установить одинаковые права и группу на всю
> директорию и вложенные в нее файлы и директории автоматически?
> Скрипт bash/perl?
> C уважением,
> Сергей

> !DSPAM:3f5c6b31188477829515473!

пример:
# cd /some/dir/
# find . -type f -print0 | xargs -0 chmod 644 
# find . -type d -print0 | xargs -0 chmod 755
# chgrp -R newgroup *

немного длинный но наиболее корректный способ

-- 
Igor Homyakov
<homyakov at altlinux dot ru>
http://counter.li.org/cgi-bin/runscript/display-person.cgi?user=190141


^ permalink raw reply	[flat|nested] 16+ messages in thread

* [Comm] Re: set files rights
  2003-09-08 12:09   ` Alexey I. Froloff
@ 2003-09-08 13:43     ` Vitaly Ostanin
  2003-09-08 15:20       ` Igor Solovyov
                         ` (2 more replies)
  2003-09-08 14:43     ` Denis Smirnov
  1 sibling, 3 replies; 16+ messages in thread
From: Vitaly Ostanin @ 2003-09-08 13:43 UTC (permalink / raw)
  To: community

[-- Attachment #1: Type: text/plain, Size: 744 bytes --]

On Mon, 8 Sep 2003 16:09:23 +0400
"Alexey I. Froloff" <raorn@immo.ru> wrote:

> * Igor Homyakov <homyakov@ramax.spb.ru> [030908 16:07]:
> > > Подскажите пожалуйста, как можно установить одинаковые
> > > права и группу на всю директорию и вложенные в нее файлы и
> > > директории автоматически? Скрипт bash/perl?
> > пример:
> > # cd /some/dir/
> > # find . -type f -print0 | xargs -0 chmod 644 
> > # find . -type d -print0 | xargs -0 chmod 755
> > # chgrp -R newgroup *
> > немного длинный но наиболее корректный способ
> heh! man chmod на тему X (икс большое ;-)

man. не нашёл :)

man-1.5k-alt3
man-pages-1.58-alt1
man-pages-ru-0.7-alt27

<skipped/>

-- 
Regards, Vyt
mailto:  vyt@vzljot.ru
JID:     vyt@vzljot.ru

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 16+ messages in thread

* [Comm] Re: set files rights
  2003-09-08 12:09   ` Alexey I. Froloff
  2003-09-08 13:43     ` [Comm] " Vitaly Ostanin
@ 2003-09-08 14:43     ` Denis Smirnov
  1 sibling, 0 replies; 16+ messages in thread
From: Denis Smirnov @ 2003-09-08 14:43 UTC (permalink / raw)
  To: community

On Mon, Sep 08, 2003 at 04:09:23PM +0400, Alexey I. Froloff wrote:

> heh! man chmod на тему X (икс большое ;-)

$chmod --help

Использование: chmod [КЛЮЧ]... РЕЖИМ[,РЕЖИМ]... ФАЙЛ
       или:    chmod [КЛЮЧ]... ВОСЬМ-РЕЖИМ ФАЙЛ...
       или:    chmod [КЛЮЧ]... --reference=ОФАЙЛ ФАЙЛ...
Изменяет права доступа каждого файла на MODE.

  -c, --change            тоже что и --verbose, но сообщает только когда
                          были произведены изменения
  -f, --silent, --quiet   подавлять сообщения об ошибках
  -v, --verbose           выводить диагностические сообщения для каждого файла
      --reference=RFILE   использовать права доступа RFILE вместо MODE
  -R, --recursive         изменять с каталогами
      --help     показать эту справку и выйти
      --version  показать информацию о версии и выйти


Каждый MODE представляет собой комбинацию из одного или более символов ugoa
вначале, и один из символов +-=, затем одна или несколько букв rwxXstugo.

Об ошибках сообщайте по адресу <bug-coreutils@gnu.org>.


$chmod --version

chmod (coreutils) 4.5.3
Автор программы -- David MacKenzie.

Copyright (C) 2002 Free Software Foundation, Inc.
Это свободная программа; подробности об условиях распространения
смотрите в исходном тексте.  Мы НЕ предоставляем гарантий; даже гарантий
КОММЕРЧЕСКОЙ ПРИГОДНОСТИ или ПРИГОДНОСТИ ДЛЯ КАКОЙ-ЛИБО ЦЕЛИ.

-- 
С уважением, Денис

http://freesource.info


^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [Comm] Re: set files rights
  2003-09-08 13:43     ` [Comm] " Vitaly Ostanin
@ 2003-09-08 15:20       ` Igor Solovyov
  2003-09-08 15:35         ` Igor Solovyov
  2003-09-09  5:06       ` Alexey I. Froloff
  2003-09-09  9:45       ` Sergey A. Kolesnitchenko
  2 siblings, 1 reply; 16+ messages in thread
From: Igor Solovyov @ 2003-09-08 15:20 UTC (permalink / raw)
  To: community

Hi!
On Mon, 8 Sep 2003 17:43:26 +0400
Vitaly Ostanin <vyt@vzljot.ru> wrote:

> > heh! man chmod на тему X (икс большое ;-)
> 
> man. не нашёл :)
> 
> man-1.5k-alt3
> man-pages-1.58-alt1
> man-pages-ru-0.7-alt27


А вот у меня есть! И даже по-русски. :-)

man-pages-1.55-alt1
man-pages-ru-0.7-alt23
man-1.5k-alt1

-- 
Best regards!
Igor Solovyov
System/network administrator
JSC CB "Zlatkombank"


^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [Comm] Re: set files rights
  2003-09-08 15:20       ` Igor Solovyov
@ 2003-09-08 15:35         ` Igor Solovyov
  0 siblings, 0 replies; 16+ messages in thread
From: Igor Solovyov @ 2003-09-08 15:35 UTC (permalink / raw)
  To: community

Hi!
On Mon, 8 Sep 2003 21:20:08 +0600
Igor Solovyov <gosha@zkb.ru> wrote:

> > > heh! man chmod на тему X (икс большое ;-)
....
> А вот у меня есть! И даже по-русски. :-)
> 
> man-pages-1.55-alt1
> man-pages-ru-0.7-alt23
> man-1.5k-alt1

Кстати, в мане нет опции -Х, но есть в info man. :-))

-- 
Best regards!
Igor Solovyov
System/network administrator
JSC CB "Zlatkombank"


^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [Comm] Re: set files rights
  2003-09-08 13:43     ` [Comm] " Vitaly Ostanin
  2003-09-08 15:20       ` Igor Solovyov
@ 2003-09-09  5:06       ` Alexey I. Froloff
  2003-09-09  6:58         ` Vitaly Ostanin
  2003-09-09  9:45       ` Sergey A. Kolesnitchenko
  2 siblings, 1 reply; 16+ messages in thread
From: Alexey I. Froloff @ 2003-09-09  5:06 UTC (permalink / raw)
  To: community

[-- Attachment #1: Type: text/plain, Size: 620 bytes --]

* Vitaly Ostanin <vyt@vzljot.ru> [030908 18:23]:
> > heh! man chmod на тему X (икс большое ;-)
> man. не нашёл :)

> man-1.5k-alt3
> man-pages-1.58-alt1
> man-pages-ru-0.7-alt27

raorn@inferno:pts/14 ~ $ rpm -qf /usr/share/man/man1/chmod.1.gz
coreutils-4.5.12-alt1

[...]
execute only if the file is a directory or already has execute  permis-
sion  for  some user (X),
[...]

-- 
Regards, Sir Raorn.
-------------------
>ps: куплю билеты на матч ldv--rider, т.к. пока изложенные ими
>позиции существенно противоречат друг другу ;[
Организуем на linuxfest. Билеты в танцевальный партер -- $50.
		-- aen in devel-kernel@

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 16+ messages in thread

* [Comm] Re: set files rights
  2003-09-09  5:06       ` Alexey I. Froloff
@ 2003-09-09  6:58         ` Vitaly Ostanin
  0 siblings, 0 replies; 16+ messages in thread
From: Vitaly Ostanin @ 2003-09-09  6:58 UTC (permalink / raw)
  To: community

[-- Attachment #1: Type: text/plain, Size: 614 bytes --]

On Tue, 9 Sep 2003 09:06:08 +0400
"Alexey I. Froloff" <raorn@immo.ru> wrote:

> * Vitaly Ostanin <vyt@vzljot.ru> [030908 18:23]:
> > > heh! man chmod на тему X (икс большое ;-)
> > man. не нашёл :)
> 
> > man-1.5k-alt3
> > man-pages-1.58-alt1
> > man-pages-ru-0.7-alt27
> 
> raorn@inferno:pts/14 ~ $ rpm -qf /usr/share/man/man1/chmod.1.gz
> coreutils-4.5.12-alt1
> 
> [...]
> execute only if the file is a directory or already has execute 
> permis- sion  for  some user (X),
> [...]

А я-то ключ искал :) '-X'

<skipped/>

-- 
Regards, Vyt
mailto:  vyt@vzljot.ru
JID:     vyt@vzljot.ru

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [Comm] Re: set files rights
  2003-09-08 13:43     ` [Comm] " Vitaly Ostanin
  2003-09-08 15:20       ` Igor Solovyov
  2003-09-09  5:06       ` Alexey I. Froloff
@ 2003-09-09  9:45       ` Sergey A. Kolesnitchenko
  2003-09-09 10:04         ` Re[2]: " ASA
  2003-09-09 10:30         ` Leonid B. Sysoletin
  2 siblings, 2 replies; 16+ messages in thread
From: Sergey A. Kolesnitchenko @ 2003-09-09  9:45 UTC (permalink / raw)
  To: Vitaly Ostanin

Спасибо за советы :)
Ишь какую тему интересную затронули.
Кстаит письма в рассылке пропадают почему-то :(
С уважением,
Сергей




^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re[2]: [Comm] Re: set files rights
  2003-09-09  9:45       ` Sergey A. Kolesnitchenko
@ 2003-09-09 10:04         ` ASA
  2003-09-09 20:37           ` Re[3]: " Ярослав Кохан
  2003-09-09 10:30         ` Leonid B. Sysoletin
  1 sibling, 1 reply; 16+ messages in thread
From: ASA @ 2003-09-09 10:04 UTC (permalink / raw)
  To: Sergey A. Kolesnitchenko

Hello Sergey,

Tuesday, September 9, 2003, 2:45:51 PM, you wrote:

SAK> Кстаит письма в рассылке пропадают почему-то :(
А мне некоторые дупятся...

-- 
Best regards,
 ASA                            mailto:llb@udm.ru



^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [Comm] Re: set files rights
  2003-09-09  9:45       ` Sergey A. Kolesnitchenko
  2003-09-09 10:04         ` Re[2]: " ASA
@ 2003-09-09 10:30         ` Leonid B. Sysoletin
  1 sibling, 0 replies; 16+ messages in thread
From: Leonid B. Sysoletin @ 2003-09-09 10:30 UTC (permalink / raw)
  To: community

В сообщении от 9 Сентябрь 2003 13:45 Sergey A. Kolesnitchenko написал(a):
> Кстаит письма в рассылке пропадают почему-то :(

Вряд ли.
Зайдите в архивы списка рассылки и посмотрите. :-)
Очень может быть, что это ктото по пути гадит. :(

-- 
Л. Сысолетин,
webmaster@unicon-ms.ru, webmaster@bdo.ru
[Team Ёжики-рулез!] [Team Котёнки на солярке] [Team Берегите букву "ё"!]
[Team Я люблю свою фортунку] [Team Фортунка в переписку не вступает]

No question is so difficult as one to which the answer is obvious.



^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re[3]: [Comm] Re: set files rights
  2003-09-09 10:04         ` Re[2]: " ASA
@ 2003-09-09 20:37           ` Ярослав Кохан
  2003-09-11 21:19             ` Michael Shigorin
  0 siblings, 1 reply; 16+ messages in thread
From: Ярослав Кохан @ 2003-09-09 20:37 UTC (permalink / raw)
  To: community

ASA,
Tuesday, September 09, 2003, 12:04:59 PM, wrote:

A> Hello Sergey,

A> Tuesday, September 9, 2003, 2:45:51 PM, you wrote:

SAK>> Кстаит письма в рассылке пропадают почему-то :(
A> А мне некоторые дупятся...

Мне тоже.


-- 
Best regards,
 Ярослав                            mailto:campana@ukr.net




^ permalink raw reply	[flat|nested] 16+ messages in thread

* [Comm] Re: set files rights
  2003-09-09 20:37           ` Re[3]: " Ярослав Кохан
@ 2003-09-11 21:19             ` Michael Shigorin
  0 siblings, 0 replies; 16+ messages in thread
From: Michael Shigorin @ 2003-09-11 21:19 UTC (permalink / raw)
  To: community

On Tue, Sep 09, 2003 at 10:37:13PM +0200, Ярослав Кохан wrote:
> SAK>> Кстаит письма в рассылке пропадают почему-то :(
> A> А мне некоторые дупятся...
> Мне тоже.

Я не вижу.

Видимо, из-за

--- ~/.procmailrc
# фильтруем дупы
:0 Whc: msgid.lock
| formail -D 65536 msgid.cache

:0 a:
duplicates
---

;-)
       
-- 
 ---- WBR, Michael Shigorin <mike@altlinux.ru>
  ------ Linux.Kiev http://www.linux.kiev.ua/


^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2003-09-11 21:19 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-09-08 11:40 [Comm] set files rights Sergey A. Kolesnitchenko
2003-09-08 11:46 ` Maxim Tyurin
2003-09-08 11:48 ` Leonid B. Sysoletin
2003-09-08 12:11 ` Igor Homyakov
2003-09-08 12:09   ` Alexey I. Froloff
2003-09-08 13:43     ` [Comm] " Vitaly Ostanin
2003-09-08 15:20       ` Igor Solovyov
2003-09-08 15:35         ` Igor Solovyov
2003-09-09  5:06       ` Alexey I. Froloff
2003-09-09  6:58         ` Vitaly Ostanin
2003-09-09  9:45       ` Sergey A. Kolesnitchenko
2003-09-09 10:04         ` Re[2]: " ASA
2003-09-09 20:37           ` Re[3]: " Ярослав Кохан
2003-09-11 21:19             ` Michael Shigorin
2003-09-09 10:30         ` Leonid B. Sysoletin
2003-09-08 14:43     ` Denis Smirnov

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