ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: "Дворников Михаил" <m_dvor@soc.adm.yar.ru>
To: ALT Linux Community <community@lists.altlinux.org>
Subject: Re: [Comm] shell
Date: Wed, 14 Dec 2005 17:01:32 +0300
Message-ID: <43A025BC.3010507@soc.adm.yar.ru> (raw)
In-Reply-To: <43A02413.5060901@vzljot.ru>

Dmitriy Shcherbakov пишет:
> 
>>   mkdir + chmod + chown
>>   cp + chmod + chown
>> Чтобы файлы/каталоги появлялись сразу с нужными правами
>> (без последовательного выполнения mkdir; chmod; chown).
> 
> 
> su -c "mkdir -m 765 /tmp/34567" test
> 
> Подойдет?

root копирует файлы из разных каталогов по списку.
Права и владельцы файлов разные.
Нужно в итоге получить файлы в "пункте назначения",
но появляться они должны с измененными владельцем и правами.
Нежелательно делать cp; chown; chmod.

Хочется типа такого: cp | chown | chmod.
Использовать временный каталог?
-- 
С уважением, Дворников Михаил.


  reply	other threads:[~2005-12-14 14:01 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-12-14 13:37 Дворников Михаил
2005-12-14 13:54 ` Dmitriy Shcherbakov
2005-12-14 14:01   ` Дворников Михаил [this message]
2005-12-14 14:13     ` Damir Shayhutdinov
2005-12-14 14:13     ` Yura Kalinichenko
2005-12-14 14:19     ` Dmitriy Shcherbakov
2005-12-14 15:24     ` Aleksey Avdeev
2005-12-14 23:55 ` Dmitry V. Levin

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=43A025BC.3010507@soc.adm.yar.ru \
    --to=m_dvor@soc.adm.yar.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