From: "Хихин Руслан" <hihin@rambler.ru>
To: community@lists.altlinux.org
Subject: Re: [Comm] chmod
Date: Fri, 14 Sep 2007 09:50:33 +0400
Message-ID: <200709140950.34020@ruslandh> (raw)
In-Reply-To: <20070914093934.2c6d2ac1@batyrshin.ieml.ru>
[-- Attachment #1: Type: text/plain, Size: 1190 bytes --]
Здравствуйте Timur Batyrshin
В сообщении от 14 сентября 2007 Timur Batyrshin написал(a):
> Хихин Руслан (Fri, 14 Sep 2007 09:17:45 +0400):
> > > find /path/to/dir -type d -exec chmod 0777 '{}' \;
> > >
> > > find /path/to/dir -type f -exec chmod 0644 '{}' \;
> >
> > Зачем так сложно ?
>
> Потому что на каталоги нужен доступ на запись для всех, а на файлы
>
> только для владельца.
>
> > Читаем внимательно man chmod
> >
> > chmod -R a=rwX Papka
>
> В этом случае (помимо неправильных прав на запись - см.выше) у
> файлов,
>
> которые уже исполняемые, аттрибут x не сбросится. Может у человека
> после
chmod -R chmod -R a-x=rwX Papka
> переписывания с неправильно примонтированной vfat/smb шары все файлы
> исполняемые, а он хочет сбросить этот флаг? Можно, конечно,
> предварительно дать еще команду chmod -R a-x Papka а после нее уже
> вышеозначенную, но в этом случае, мне кажется, более понятным будет
> вариант с find.
--
А ещё говорят так (fortune):
linux: because a PC is a terrible thing to waste (ksh@cis.ufl.edu put
this on Tshirts in '93)
________________________________________________________________________
С уважением Хихин Руслан
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
next prev parent reply other threads:[~2007-09-14 5:50 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-09-13 20:26 Alisher
2007-09-13 21:35 ` Хихин Руслан
2007-09-14 5:11 ` Timur Batyrshin
2007-09-14 5:17 ` Хихин Руслан
2007-09-14 5:39 ` Timur Batyrshin
2007-09-14 5:50 ` Хихин Руслан [this message]
2007-09-14 5:54 ` Хихин Руслан
2007-09-14 8:21 ` Maxim Tyurin
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=200709140950.34020@ruslandh \
--to=hihin@rambler.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