[Samba-it] OT: problema posix acl

Maurizio Marini maumar at datalogica.com
Tue Mar 8 04:21:06 MST 2011


On Tue, 8 Mar 2011 11:42:39 +0100
Alessandro Dentella <sandro at e-den.it> wrote:

> On Tue, Mar 08, 2011 at 11:26:40AM +0100, Maurizio Marini wrote:
> > Scusate l'OT ma non so dove postare il problema ...magari qualche buon
> > anima mi riposnde in pm :)
> > Ho un server samba con acl, il problema e' nella copia di un file da una
> > home dir (dove il file e' 0700 senza acl) in una dir con acl e accesso
> > consentito anche a gruppi aggiuntivi, pure con il default settato -d
> > 
> > Se il file e' copiato usando esplora risorse, quindi usando samba, nessun
> > problema, il -d viene pienamente onorato; se il file viene copiato da
> > command line, invece, oppure in una sessione x (dolphin in kde), il file
> > mantiene i diritti originari e non viene onorato il -d
> > Sbaglio qualcosa?
> 
> 
> Non ho mai notato una cosa simile. Il -d è sempre onorato. Posso chiederti
> di inviare l'output dei comandi (supponi la cartella si chiami 'test_acl'):
> 
>   getfacl test_acl
>   echo ciao > test_acl/file_test
>   ls -l test_acl/file_test
>   getfacl test_acl/file_test
grazie sandro :)

/opt/samba/public/prove ] #  getfacl test_acl/
# file: test_acl
# owner: xxxxxxx
# group: wip_re_da
user::rwx
group::rwx
group:UP_Read:rwx
group:wip_amm_re:rwx
mask::rwx
other::---
default:user::rwx
default:group::rwx
default:group:wip_amm_re:rwx
default:mask::rwx
default:other::---

 #  echo ciao > test_acl/file_test
 #  ls -l test_acl/file_test
-rw-rw----+ 1 root root 5  8 mar 12:08 test_acl/file_test
 #  getfacl test_acl/file_test
# file: test_acl/file_test
# owner: root
# group: root
user::rw-
group::rwx                      #effective:rw-
group:wip_amm_re:rwx            #effective:rw-
mask::rw-
other::---

#  su - prova
-bash-3.2$ 

-bash-3.2$ ls -la file-di-prova2.txt 
-rw------- 1 prova Domain Users 8 26 feb 17:47 file-di-prova2.txt
-bash-3.2$ cp file-di-prova2.txt /opt/samba/public/prove/test_acl/file-di-prova3.txt
-bash-3.2$ ls -la /opt/samba/public/prove/test_acl/file-di-prova3.txt
-rw-------+ 1 prova Domain Users 8  8 mar 12:09 /opt/samba/public/prove/test_acl/file-di-prova3.txt

-bash-3.2$ getfacl /opt/samba/public/prove/test_acl/file-di-prova3.txt
getfacl: Removing leading '/' from absolute path names
# file: opt/samba/public/prove/test_acl/file-di-prova3.txt
# owner: prova
# group: Domain\040Users
user::rw-
group::rwx                      #effective:---
group:wip_amm_re:rwx            #effective:---
mask::---
other::---


-- 
Cordiali saluti,
                      Maurizio Marini

ab. e studio Via Collemare, 14 - 61039 San Costanzo (PU) - Italy
Mobile : +39-335-8259739    
Fisso: +39-0721.870286
Fisso: +39-0721.950396 
Fisso: +39-02.45446.207 (Uffici di Milano Cost)
Fisso: +39-0721.1626081 (Messagenet)
C.F. MRNMRZ59E17G920X   P. Iva: 01332360419

A. Because people read from top to bottom.
Q. Why should I not top post?
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?




More information about the samba-it mailing list