Não é mais possível fazer postagens ou usar assinaturas novas da Usenet nos Grupos do Google. O conteúdo histórico continua disponível.
Dismiss

Duplicate owner permissions to group

1 visualização
Pular para a primeira mensagem não lida

Jason

não lida,
1 de mai. de 2006, 20:16:0101/05/2006
para
Is there an easy way to duplicate owner permissions to the group?
ie 730 -> 770, 404 -> 444

- Jason


Pascal Bourguignon

não lida,
1 de mai. de 2006, 20:25:3701/05/2006
para
"Jason" <noad...@email.com> writes:

> Is there an easy way to duplicate owner permissions to the group?
> ie 730 -> 770, 404 -> 444

I use something like:

find "$dir" ... \
-exec chmod g-rwx {} \; \
\(
\( -perm -0100 -exec chmod g+x {} \; \) -o \
\( -perm -0200 -exec chmod g+w {} \; \) -o \
\( -perm -0400 -exec chmod g+r {} \; \) \
\)

For one file, you could use:

chmod $(stat -c %a ${file} | sed -e 's/\(.\)\?\(.\).\(.\)$/\1\2\2\3/') ${file}

--
__Pascal Bourguignon__ http://www.informatimago.com/

PUBLIC NOTICE AS REQUIRED BY LAW: Any use of this product, in any
manner whatsoever, will increase the amount of disorder in the
universe. Although no liability is implied herein, the consumer is
warned that this process will ultimately lead to the heat death of
the universe.

Barry Margolin

não lida,
1 de mai. de 2006, 20:41:4901/05/2006
para
In article <e368b3$qda$1...@news1.cse.ohio-state.edu>,
"Jason" <noad...@email.com> wrote:

> Is there an easy way to duplicate owner permissions to the group?
> ie 730 -> 770, 404 -> 444

chmod g=u filename

--
Barry Margolin, bar...@alum.mit.edu
Arlington, MA
*** PLEASE post questions in newsgroups, not directly to me ***
*** PLEASE don't copy me on replies, I'll read them in the group ***

Jason

não lida,
1 de mai. de 2006, 20:46:0201/05/2006
para
Wow. Not only was that easy, it was the fastest reply ever. Thanks.

"Barry Margolin" <bar...@alum.mit.edu> wrote in message
news:barmar-18CFC4....@comcast.dca.giganews.com...

0 nova mensagem