Professional Web Applications Themes

chmod does not copy write permissions to others - Linux / Unix Administration

Why doesn't "chmod o=u" copy write permissions on a file?...

  1. #1

    Default chmod does not copy write permissions to others

    Why doesn't "chmod o=u" copy write permissions on a file?

    BigMan Guest

  2. #2

    Default Re: chmod does not copy write permissions to others

    On 1 Jul 2005 12:46:09 -0700, BigMan <bg> wrote: 

    You need to give a whole lot more information than that so a meaningful
    answer can be given. Show us the file's current permissions and owner,
    who you're doing it as, what you expect to happen, etc.

    If you're asking what I think you're asking, it does (or rather should).
    The above details will help to describe what's going on more clearly.

    Dave Guest

  3. #3

    Default Re: chmod does not copy write permissions to others

    Here's some more info:

    /home/angel/chmod_tests:ls -al; chmod o=u a; ls -al
    total 12
    drwx------ 2 angel angel 4096 Jul 1 21:31 .
    drwxr-xr-x 7 angel angel 4096 Jul 1 23:31 ..
    -rwx------ 1 angel angel 6 Jul 1 21:31 a
    total 12
    drwx------ 2 angel angel 4096 Jul 1 21:31 .
    drwxr-xr-x 7 angel angel 4096 Jul 1 23:31 ..
    -rwx---r-x 1 angel angel 6 Jul 1 21:31 a

    I issue the above commands as "angel" (the owner). What other info
    could be helpful?

    BigMan Guest

  4. #4

    Default Re: chmod does not copy write permissions to others

    In article <googlegroups.com>,
    "BigMan" <bg> wrote:
     

    It works properly for me on OS X 10.3.9:

    barmar $ chmod 700 foo
    barmar $ ls -l foo
    -rwx------ 1 barmar barmar 0 1 Jul 20:12 foo
    barmar $ chmod o=u foo
    barmar $ ls -l foo
    -rwx---rwx 1 barmar barmar 0 1 Jul 20:12 foo

    --
    Barry Margolin, mit.edu
    Arlington, MA
    *** PLEASE post questions in newsgroups, not directly to me ***
    Barry Guest

  5. #5

    Default Re: chmod does not copy write permissions to others

    On 2005-07-01, BigMan wrote: 

    What system are you using?

    It works for me on Linux (Debian 3.1):

    $ ls -l Teams; chmod o=u Teams; ls -l Teams
    -rwxrwx--- 1 chris chris 586 Oct 29 2004 Teams
    -rwxrwxrwx 1 chris chris 586 Oct 29 2004 Teams

    --
    Chris F.A. Johnson <http://cfaj.freeshell.org>
    ================================================== ================
    Shell Scripting Recipes: A Problem-Solution Approach, 2005, Apress
    <http://www.torfree.net/~chris/books/cfaj/ssr.html>
    Chris Guest

  6. #6

    Default Re: chmod does not copy write permissions to others

    I'm using a yellowdog Linux.

    BigMan Guest

  7. #7

    Default Re: chmod does not copy write permissions to others

    BigMan <bg> wrote: 

    I think you have a typo! Try chmod o+a filename.txt instead
    of chmod o=a filename.txt (substitute + for =) Doesn't +
    add the ability and - take it away? No system available
    right now or I'd test it.

    --
    Take care | This clown speaks for himself, his job doesn't
    Wayne D. | pay for this, etc. (directly anyway)
    Wayne Guest

  8. #8

    Default Re: chmod does not copy write permissions to others

    Same result if you mean chmod o+u filename. Otherwise explain the
    meaning of chmod o+a filename.

    BigMan Guest

  9. #9

    Default Re: chmod does not copy write permissions to others

    BigMan wrote: 

    Perhaps an old bug? How old is this yellowdog? Is it even pre-coreutils?

    rpm -q --whatprovides /bin/chmod

    might be even more pertinent.

    Timothy Guest

  10. #10

    Default Re: chmod does not copy write permissions to others

    Wayne Dernoncourt wrote:
     
    >
    > I think you have a typo! Try chmod o+a filename.txt instead
    > of chmod o=a filename.txt (substitute + for =) Doesn't +
    > add the ability and - take it away? No system available
    > right now or I'd test it.
    >[/ref]

    Not a typo, o=u means set perms for "other" the same as what is currently
    set for "user"
    Eric

    Eric Guest

  11. #11

    Default Re: chmod does not copy write permissions to others

    In article <com>,
    Eric <org> wrote:
     
    > >
    > > I think you have a typo! Try chmod o+a filename.txt instead
    > > of chmod o=a filename.txt (substitute + for =) Doesn't +
    > > add the ability and - take it away? No system available
    > > right now or I'd test it.
    > >[/ref]
    >
    > Not a typo, o=u means set perms for "other" the same as what is currently
    > set for "user"[/ref]

    Do you realize you're replying to something over 2 weeks old? I'm
    pretty sure someone pointed this out way back then.

    --
    Barry Margolin, mit.edu
    Arlington, MA
    *** PLEASE post questions in newsgroups, not directly to me ***
    Barry Guest

Similar Threads

  1. Chmod permissions
    By grundine in forum Macromedia Contribute Connection Administrtion
    Replies: 0
    Last Post: April 5th, 08:19 AM
  2. Dreamweaver 8 Permissions CHMOD
    By Castles in forum Macromedia Exchange Dreamweaver Extensions
    Replies: 8
    Last Post: January 24th, 04:53 AM
  3. no write permissions
    By Jimmy in forum ASP.NET Security
    Replies: 2
    Last Post: March 25th, 12:50 AM
  4. write permissions for Acrobat 6.0 files
    By jwb in forum Mac Applications & Software
    Replies: 0
    Last Post: July 28th, 07:16 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139