Gmail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
Duplicate owner permissions to group
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  4 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Jason  
View profile  
 More options May 1 2006, 8:16 pm
Newsgroups: comp.unix.questions
From: "Jason" <noaddr...@email.com>
Date: Mon, 1 May 2006 20:16:01 -0400
Local: Mon, May 1 2006 8:16 pm
Subject: Duplicate owner permissions to group
Is there an easy way to duplicate owner permissions to the group?
ie 730 -> 770,  404 -> 444

- Jason


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Pascal Bourguignon  
View profile  
 More options May 1 2006, 8:25 pm
Newsgroups: comp.unix.questions
From: Pascal Bourguignon <p...@informatimago.com>
Date: Tue, 02 May 2006 02:25:37 +0200
Local: Mon, May 1 2006 8:25 pm
Subject: Re: Duplicate owner permissions to group

"Jason" <noaddr...@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.


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Barry Margolin  
View profile  
 More options May 1 2006, 8:41 pm
Newsgroups: comp.unix.questions
From: Barry Margolin <bar...@alum.mit.edu>
Date: Mon, 01 May 2006 20:41:49 -0400
Local: Mon, May 1 2006 8:41 pm
Subject: Re: Duplicate owner permissions to group
In article <e368b3$qd...@news1.cse.ohio-state.edu>,

 "Jason" <noaddr...@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 ***


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jason  
View profile  
 More options May 1 2006, 8:46 pm
Newsgroups: comp.unix.questions
From: "Jason" <noaddr...@email.com>
Date: Mon, 1 May 2006 20:46:02 -0400
Local: Mon, May 1 2006 8:46 pm
Subject: Re: Duplicate owner permissions to group
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.20414901052006@comcast.dca.giganews.com...


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google