Setup Samba Access Rights

Marcos Aurelio Rodrigues deigratia33 at gmail.com
Wed Apr 2 18:30:36 UTC 2008


Try to chmod 755 /usr/downloads/departments/BOS and give the right
permissions to the owners/group with setfacl.

-- 
========================================
Marcos Aurelio Rodrigues (DEiGrAtiA-33)
<deigratia33 at gmail.com>
CCNA, MCSO
Mirabilia laudo semprer, Dei
========================================


On Wed, Mar 26, 2008 at 3:24 PM, Cosmin Curticapean <ccosmyn at gmail.com>
wrote:

> Hello
>
> for this directory structure under linux:
>
> DEPARTMENTS - root directory located in: /usr/downloads/departments
>    DEPT COMMERCIAL  - subdir of DEPARTMENTS located in:
> /usr/downloads/departments/comm
>    DEPT BOS   - subdir of DEPARTMENTS /usr/downloads/departments/bos
>    DEPT PURHCASING - subdir of DEPARTMENTS located in
> :/usr/downloads/departments/purch
> ...etc.
>
> i have this configuration in samba:
>
> ....
> [Departments]
>        comment = Common data directory for each department
>        path = /usr/downloads/departments
>        browseable = yes
>        writeable = yes
>        read only = no
>        create mask = 777
>        directory mask = 777
> ...
>
> so everyone is able to access a share folder Departments witch contains
> every departments in the company, and everything contained is allowed
> (read/write).
>
> Is there a way to restrict the access to one of the subdirectories to
> readonly? For example if i want to make the subdirectory "BOS" readonly
> but
> to have it appear into the "Departments" section? not to setup another
> section like this:
>
> [Departments D - BOS]
>        comment = Departments D - BOS
>        path = /usr/downloads/departments/BOS
>        browseable = yes
>        writeable = yes
>        hosts allow = 192.168.xxx.xxx 192.168.xxx.xxx
>        create mask = 777
>        directory mask = 777
>
> (the rights are assigned to the ip address)!
>
> Thankyou
> Cosmin
> --
> redhat-list mailing list
> unsubscribe mailto:redhat-list-request at redhat.com?subject=unsubscribe
> https://www.redhat.com/mailman/listinfo/redhat-list
>



More information about the redhat-list mailing list