Java Mailing List Archive

http://www.redhatconfig.com/

Home » Red Hat Linux Discussion »

Setup Samba Access Rights

Cosmin Curticapean

2008-03-26

Replies:

Author LoginPost Reply
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@(protected)
https://www.redhat.com/mailman/listinfo/redhat-list
©2008 redhatconfig.com - Jax Systems, LLC, U.S.A.