Read & Read/Write Groups

Ask a Question related to Sun Solaris, Design and Development.

  1. #1

    Default Read & Read/Write Groups

    I am trying to achieve a solution to a (hopefully) simple scenario.

    I have a Solaris 9 server that is going to be used for sharing files.

    I would like to create 'shared' directories. Each directory will have
    permissions assigned for two groups; one of these groups will give members
    read access, the other group will give members read/write access.

    Any new files created in the directory should 'inherit' these permissions.
    Any file written should be able to be modified by any member of the
    Read/Write group.

    I realise that I will need to make use of acl's in order to achieve this
    model, although I am not entirely sure how to go about doing this...

    So far I have done the following:
    mkdir /share
    chown WriteGroup /share
    chmod 2770 /share
    setfacl -m 'group:ReadGroup:r-x' /share

    This isn't quite giving me what I am after though.... :-(

    Any suggestions, comments or requests for clarification(s)?

    Thanks,
    Damien


    Damien Harrod Guest

  2. Similar Questions and Discussions

    1. How to write and read data to and from .flv
      Can anyone explain the concept of how to write and read data (plain text messages, or entire objects) from and to a .flv file? The application...
    2. Can't read/write to Registry
      Why I always get 'Requested registry access is not allowed' when i try to Read/Write to Windows Registry from ASP service. I use ASP NET account?...
    3. read/write access
      I'm using FH 10 on a Windows 2000 PC at work, and yesterday when I tried to print I got a dialogue that said the command couldn't be completed...
    4. To can write with asp page and read to all
      Hi workers, may be so simple but I think no, if you use an hosting service. I can't settings rwx permission as I like, so I'm thinking to...
    5. File system get auto change from read-write to read-oly
      I have a very strange file system with OS Redhat 7.2 The file system is read-write, but some how it randomly changes to read-only at any time....
  3. #2

    Default Re: Read & Read/Write Groups

    Damien Harrod <anonymous@mail.com> wrote:
    > I would like to create 'shared' directories. Each directory will have
    > permissions assigned for two groups; one of these groups will give members
    > read access, the other group will give members read/write access.
    >
    > Any new files created in the directory should 'inherit' these permissions.
    > Any file written should be able to be modified by any member of the
    > Read/Write group.
    >
    > So far I have done the following:
    > mkdir /share
    > chown WriteGroup /share
    > chmod 2770 /share
    > setfacl -m 'group:ReadGroup:r-x' /share
    >
    > This isn't quite giving me what I am after though.... :-(
    It would probably help if you explained what wasn't working, but...

    I'd guess the problem you're having is that files (old or new) are not
    readable by someone in ReadGroup?
    The problem is that you're only setting the ACL on the directory, not on
    the files within it. You'll need to do 2 things to fix this :

    1. Set the ACL on all files which currently exist within the directory.
    setfacl supports the -r option, so your command above with -r should do
    this for you.

    2. Setup a default ACL on the directory, so that all new files created will
    also have this ACL set. man setfacl has details on setting a default ACL.

    The other option is to give all files within the directory world read
    access, and just put the ACL on the directory.. This way the directory
    will basically act as a "gate", allowing only users in ReadGroup and
    Writegroup through the gate, at which point the permissions on the files
    themselves will handle who can read/write from there.

    If that's not the problem you're having how about giving us a few more
    details on what the problem actually is?

    Scott
    Scott Howard Guest

Posting Permissions

  • You may not post new threads
  • You may 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