nerull Posté(e) le 13 octobre 2011 Partager Posté(e) le 13 octobre 2011 Bonsoir à tous, Je rencontre des problemes avec Veto File. Je souhaite cacher certains dossiers à mes users, sauf que ca marche à moitié. Maildir est bien caché pour les membres du groupe User , mais pas le dossier playlists qui se trouve dans le dossier music ..... Etant admin je vois maildir mais ca me gene pas. Par contre jaimerai vraiment cacher playlists .. Si quelqu'un peut m'aider c'est top j'ai biensur redemarrer samba : /usr/syno/etc.defaults/rc.d/S80samba.sh stop et start [global] printcap name=cups winbind enum groups=yes security=user local master=no realm=* passdb backend=smbpasswd printing=cups winbind enum users=yes load printers=yes workgroup=WORKGROUP veto files = /.Maildir/ veto files = /*playlist*/ [home] create mode=0777 comment=home browseable=no writable=yes valid users=%U directory mode=0777 path=/var/services/homes/%U veto files = /.Maildir/ veto files = /playlists/ [Backup] invalid users=nobody,nobody valid users=nobody,@administrators,Mathias,Maison,admin,nobody comment="" path=/volume1/Backup guest ok=yes browseable=yes fileindex=no mediaindex=no edit synoacl=no ftp disable list=no ftp disable modify=no ftp disable download=no read list=nobody,Mathias,nobody write list=nobody,@administrators,admin,Maison,nobody writeable=yes veto files = /.Maildir/*.db/_SYNCAPP/ [Films] invalid users=nobody,Pierrot,nobody valid users=nobody,@users,Mathias,Maison,admin,nobody comment="" path=/volume1/Films guest ok=yes browseable=yes fileindex=yes mediaindex=yes edit synoacl=no ftp disable list=no ftp disable modify=no ftp disable download=no read list=nobody,@users,nobody write list=nobody,admin,Maison,Mathias,nobody writeable=no veto files = /.Maildir/ [Flo-Sev] invalid users=nobody,guest,Maison,nobody valid users=nobody,Flo,Pepito,admin,nobody comment="Enchange entre vous deux" path=/volume1/Flo-Sev guest ok=yes browseable=yes fileindex=no mediaindex=no edit synoacl=no ftp disable list=no ftp disable modify=no ftp disable download=no read list=nobody,nobody write list=nobody,admin,Flo,Pepito,nobody writeable=yes veto files = /.Maildir/*.db/_SYNCAPP/ [homes] invalid users=nobody,nobody valid users=nobody,@administrators,Maison,admin,nobody comment="user home" path=/volume1/homes guest ok=yes browseable=yes fileindex=no mediaindex=yes edit synoacl=no ftp disable list=no ftp disable modify=no ftp disable download=no read list=nobody,nobody write list=nobody,@administrators,admin,Maison,nobody writeable=yes veto files = /.Maildir/*.db/_SYNCAPP/ veto files = /playlists/ [music] invalid users=nobody,Pierrot,nobody valid users=nobody,@users,@administrators,Mathias,Maison,admin,nobody comment="Playlist" path=/volume1/music guest ok=yes browseable=yes fileindex=yes mediaindex=yes edit synoacl=no ftp disable list=no ftp disable modify=no ftp disable download=no read list=nobody,@users,nobody write list=nobody,@administrators,admin,Maison,Mathias,nobody writeable=no veto files = /.Maildir/ veto files = /*playlists*/ [photo] invalid users=nobody,nobody valid users=nobody,Mathias,admin,nobody comment="System default shared folder" path=/volume1/photo guest ok=yes browseable=yes fileindex=no mediaindex=yes edit synoacl=no ftp disable list=no ftp disable modify=no ftp disable download=no read list=nobody,nobody write list=nobody,admin,Mathias,nobody writeable=yes veto files = /.Maildir/*.db/_SYNCAPP/video/photo/ [Programmes] invalid users=nobody,Pierrot,nobody valid users=nobody,@users,Mathias,Maison,admin,nobody comment="" path=/volume1/Programmes guest ok=yes browseable=yes fileindex=no mediaindex=no edit synoacl=no ftp disable list=no ftp disable modify=no ftp disable download=no read list=nobody,@users,nobody write list=nobody,admin,Maison,Mathias,nobody writeable=no veto files = /.Maildir/*.db/_SYNCAPP/ [Public] invalid users=nobody,Pierrot,nobody valid users=nobody,guest,@users,@administrators,Mathias,Maison,admin,nobody comment="Dossier Public" path=/volume1/Public guest ok=yes browseable=yes fileindex=yes mediaindex=no edit synoacl=no ftp disable list=no ftp disable modify=no ftp disable download=no read list=nobody,nobody write list=nobody,@administrators,@users,admin,guest,Maison,Mathias,nobody writeable=yes veto files = /.Maildir/ veto files = /playlists/ [Recettes de Cuisine] invalid users=nobody,nobody valid users=nobody,@users,Mathias,Maison,admin,nobody comment="" path=/volume1/Recettes de Cuisine guest ok=yes browseable=yes fileindex=no mediaindex=no edit synoacl=no ftp disable list=no ftp disable modify=no ftp disable download=no read list=nobody,@users,nobody write list=nobody,admin,Maison,Mathias,nobody writeable=no veto files = /.Maildir/*.db/_SYNCAPP/ [video] invalid users=nobody,nobody valid users=nobody,Mathias,admin,nobody comment="System default shared folder" path=/volume1/video guest ok=yes browseable=yes fileindex=yes mediaindex=yes edit synoacl=no ftp disable list=no ftp disable modify=no ftp disable download=no read list=nobody,nobody write list=nobody,admin,Mathias,nobody writeable=yes veto files = /.Maildir/*.db/_SYNCAPP/video/photo/ [web] invalid users=nobody,nobody valid users=nobody,Mathias,admin,nobody comment="System default shared folder" path=/volume1/web guest ok=yes browseable=yes fileindex=no mediaindex=no edit synoacl=no ftp disable list=no ftp disable modify=no ftp disable download=no read list=nobody,nobody write list=nobody,admin,Mathias,nobody writeable=yes 0 Citer Lien vers le commentaire Partager sur d’autres sites More sharing options...
cricx Posté(e) le 14 octobre 2011 Partager Posté(e) le 14 octobre 2011 vérifie si la syntaxe est bonne dans l'extrait du manuel ci-dessous veto files (S) This is a list of files and directories that are neither visible nor accessible. Each entry in the list must be separated by a ´/´, which allows spaces to be included in the entry. ´*´ and ´?´ can be used to specify multiple files or directories as in DOS wildcards. Each entry must be a unix path, not a DOS path and must not include the unix directory separator ´/´. Note that the case sensitive option is applicable in vetoing files. One feature of the veto files parameter that it is important to be aware of is Samba´s behaviour when trying to delete a directory. If a directory that is to be deleted contains nothing but veto files this deletion will fail unless you also set the delete veto files parameter to yes. Setting this parameter will affect the performance of Samba, as it will be forced to check all files and directories for a match as they are scanned. Examples of use include: ; Veto any files containing the word Security, ; any ending in .tmp, and any directory containing the ; word root. veto files = /*Security*/*.tmp/*root*/ ; Veto the Apple specific files that a NetAtalk server ; creates. veto files = /.AppleDouble/.bin/.AppleDesktop/Network Trash Folder/ notamment si c'est bien un "unix path" et si la casse est bonne. donne le résultat d'un ls -la /volume1/music 0 Citer Lien vers le commentaire Partager sur d’autres sites More sharing options...
nerull Posté(e) le 14 octobre 2011 Auteur Partager Posté(e) le 14 octobre 2011 drwxrwxrwx 6 root root 4096 Oct 11 00:07 . drwxrwxrwx 22 root root 4096 Oct 12 23:55 .. drwxrwxrwx 2 Mathias users 4096 Sep 16 19:16 Daft Punk - Alive 2007 drwxrwxrwx 2 Mathias users 4096 Sep 16 12:38 Guetta drwxrwxrwx 9 Mathias users 57344 Oct 12 23:36 House-Electro drwxrwxrwx 2 root root 4096 Oct 11 00:26 playlists la syntax est bonne :s 0 Citer Lien vers le commentaire Partager sur d’autres sites More sharing options...
cricx Posté(e) le 14 octobre 2011 Partager Posté(e) le 14 octobre 2011 veto files est une directive de partage, il faut l'enlever de la section [global] sinon du peux essayer avec la directive hide files (même syntaxe) 0 Citer Lien vers le commentaire Partager sur d’autres sites More sharing options...
Messages recommandés
Rejoindre la conversation
Vous pouvez publier maintenant et vous inscrire plus tard. Si vous avez un compte, connectez-vous maintenant pour publier avec votre compte.