Re: Setup Samba Access Rights

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxx>
CCNA, MCSO
Mirabilia laudo semprer, Dei
========================================


On Wed, Mar 26, 2008 at 3:24 PM, Cosmin Curticapean <ccosmyn@xxxxxxxxx>
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@xxxxxxxxxx?subject=unsubscribe
> https://www.redhat.com/mailman/listinfo/redhat-list
>
-- 
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list

[Index of Archives]     [CentOS]     [Kernel Development]     [PAM]     [Fedora Users]     [Red Hat Development]     [Big List of Linux Books]     [Linux Admin]     [Gimp]     [Asterisk PBX]     [Yosemite News]     [Red Hat Crash Utility]


  Powered by Linux