Author Topic: File permission on directories  (Read 1965 times)

Josir

  • Zen Monk
  • **
  • Posts: 50
  • Karma: +0/-0
    • View Profile
File permission on directories
« on: June 15, 2009, 04:25:03 pm »
Hi folks,

I want to register which user save/modify files on shared directories. Is that possible ?

For example: In Linux, if I create a file on suid enabled sub-directory, I got:

>>ls -ls
total 4
4 drwxrwsr-x 3 ebox __USERS__ 4096 2009-06-15 11:13 Aplicacao

>>cd Aplicacao
>>echo josir > teste1.txt

>>ls -ls
total 8
4 -rw-r--r-- 1 josir __USERS__    6 2009-06-15 11:11 teste1.txt

If I create a file on a Samba client (running on Linux and Windows), I got:
4 -rw-r--r-- 1 josir __USERS__    6 2009-06-15 11:11 teste1.txt
0 -rwxrw-rw- 1 root  __USERS__    0 2009-06-15 11:22 teste2.txt

Is it possible to write the correct name using ebox/LDAP/Samba ?

Thanks in advance,
Josir Gomes