Samba - veto on home folder

Arun Shrimali arun.reso at gmail.com
Fri Jul 31 12:26:58 UTC 2009


Dear All,

How can I use the veto option for the user, such that users could not
save *.mp3 files in there home folder.
My home folder part of conf file is as follows :


[homes]
	revalidate = yes
	comment = Home Directories
	writeable = yes
        veto files =
/*.deb/*.rpm/*.mp3/*.mp4/*.dat/*.mpg/*.mpeg/*.avi/*.wmv/*.iso/*.nrg/*.bin/*.cue/*.exe/*.msi/*.dll/*.pif/*.scr/*.ini/*.bat/*.com/*.cmd/*.vb/*.vbs/*.inf/*.3gp/*.mov/*.rar/*.flv/DSC*.jpg/DSC*.jpeg/
        delete veto files = yes
	valid users = MYDOMAIN\%S


But still user can copy mp3 files in there home folders, than I added
the veto option in global section also as follows :

[global]
         server string = new databank
         smb passwd file = /etc/samba/smbpasswd
         passdb backend = tdbsam
         log file = /var/log/samba/log.%m
         max log size = 50
         delete veto files = Yes
         veto files =
/*.deb/*.rpm/*.mp3/*.mp4/*.dat/*.mpg/*.mpeg/*.avi/*.wmv/*.iso/*.nrg/*.bin/*.cue/*.exe/*.msi/*.dll/*.pif/*.scr/*.ini/*.bat/*.com/*.cmd/*.vb/*.vbs/*.inf/*.3gp/*.mov/*.rar/*.flv/DSC*.jpg/DSC*.jpeg/



Can anybody help me how to restrict users from saving mp3 files in
there home folders .......................

Arun




More information about the fedora-list mailing list