forked from LibreSchool/server-config
Fixing samba permissions on shared.
This commit is contained in:
parent
d9bf681ab9
commit
a215b977b3
@ -2,3 +2,4 @@
|
|||||||
extnic: wan0
|
extnic: wan0
|
||||||
intnic: lan0
|
intnic: lan0
|
||||||
force_regen_ca: false
|
force_regen_ca: false
|
||||||
|
force_ibay_shared: false
|
||||||
|
@ -133,6 +133,38 @@
|
|||||||
ignore_errors: true
|
ignore_errors: true
|
||||||
register: chk_shared
|
register: chk_shared
|
||||||
|
|
||||||
|
- name: Copying default templates for new template type
|
||||||
|
shell: cp -r /etc/e-smith/templates/etc/samba/smb.conf/ibay-default /etc/e-smith/templates/etc/samba/smb.conf/ibay-shared
|
||||||
|
sudo: yes
|
||||||
|
when: force_ibay_shared|bool or chk_shared|failed
|
||||||
|
|
||||||
|
- name: Configuring ibay-shared template structure (directory mask)
|
||||||
|
lineinfile:
|
||||||
|
dest: /etc/e-smith/templates/etc/samba/smb.conf/ibay-shared/20profile_default
|
||||||
|
line: 'directory mask = 0775'
|
||||||
|
insertafter: '^create mask'
|
||||||
|
state: present
|
||||||
|
sudo: yes
|
||||||
|
when: force_ibay_shared|bool or chk_shared|failed
|
||||||
|
|
||||||
|
- name: Configuring force create mode
|
||||||
|
lineinfile:
|
||||||
|
dest: /etc/e-smith/templates/etc/samba/smb.conf/ibay-shared/20profile_default
|
||||||
|
line: 'force create mode = 0664'
|
||||||
|
insertafter: '^directory mask'
|
||||||
|
state: present
|
||||||
|
sudo: yes
|
||||||
|
when: force_ibay_shared|bool or chk_shared|failed
|
||||||
|
|
||||||
|
- name: Configuring force directory mode
|
||||||
|
lineinfile:
|
||||||
|
dest: /etc/e-smith/templates/etc/samba/smb.conf/ibay-shared/20profile_default
|
||||||
|
line: 'force directory mode = 0775'
|
||||||
|
insertafter: '^force create mode'
|
||||||
|
state: present
|
||||||
|
sudo: yes
|
||||||
|
when: force_ibay_shared|bool or chk_shared|failed
|
||||||
|
|
||||||
- name: Configurazione share Condiviso
|
- name: Configurazione share Condiviso
|
||||||
shell: /sbin/e-smith/db accounts set shared ibay AclRead domusers,domadmins AclWrite domusers,domadmins Description "Cartella condivisa" GroupAccess rw HttpStatus disabled OtherAccess r OwningGroup locals SmbAuditStatus enabled SmbGuestAccessType none SmbRecycleBinStatus enabled SmbRecycleBinVersionsStatus enabled SmbStatus enabled
|
shell: /sbin/e-smith/db accounts set shared ibay AclRead domusers,domadmins AclWrite domusers,domadmins Description "Cartella condivisa" GroupAccess rw HttpStatus disabled OtherAccess r OwningGroup locals SmbAuditStatus enabled SmbGuestAccessType none SmbRecycleBinStatus enabled SmbRecycleBinVersionsStatus enabled SmbStatus enabled
|
||||||
sudo: yes
|
sudo: yes
|
||||||
@ -143,6 +175,16 @@
|
|||||||
sudo: yes
|
sudo: yes
|
||||||
when: chk_shared|failed
|
when: chk_shared|failed
|
||||||
|
|
||||||
|
- name: Changing ibay profile for shared
|
||||||
|
shell: /sbin/e-smith/db accounts setprop shared SmbProfileType shared
|
||||||
|
sudo: yes
|
||||||
|
when: force_ibay_shared|bool or chk_shared|failed
|
||||||
|
|
||||||
|
- name: Forcing regeneration of smb.conf
|
||||||
|
shell: /sbin/e-smith/signal-event nethserver-samba-update
|
||||||
|
sudo: yes
|
||||||
|
when: force_ibay_shared|bool or chk_shared|failed
|
||||||
|
|
||||||
- name: Verifica configurazione squid
|
- name: Verifica configurazione squid
|
||||||
shell: /sbin/e-smith/db configuration printprop squid GreenMode
|
shell: /sbin/e-smith/db configuration printprop squid GreenMode
|
||||||
sudo: yes
|
sudo: yes
|
||||||
|
Loading…
x
Reference in New Issue
Block a user