Hello: It's been quite some time since I've posted to the samba lists. I'm wondering if there are any other Samba administrators out there that have developed shell and/or PERL scripting for managing user profile (roaming) directories. Essentially what we're trying to accomplish is automated cookie cleanup "illegal file" (i.e., mp3, wav, avi, etc.) file clean up and the like. Our original shell scripting didn't work due to some file naming convention problems. Before I re-invent the wheel I was hoping to find someone that might have already accomplished this or could point me somewhere. Regards, Dave "I don't know the key to success, but the key to failure is trying to please everybody." - Bill Cosby
Sounds like the perfect task for IBM's Object Rexx language which they offer for free on Linux http://www-306.ibm.com/software/awdtools/obj-rexx/ /* Sample code to search and destory! */ searchlist='.mp3 .wav .avi' do s=1 to searchlist~words() rc=SysFileTree('/homes/*'searchlist~word(s), filelist., 'FOS') if filelist.0>0 then do f=1 to filelist.0 rc=SysFileDelete(filelist.f) end end Of course you could add logging, etc... as fancy as you want to get. -- Michael Lueck Lueck Data Systems Remove the upper case letters NOSPAM to contact me directly.
Hi David, I too am looking for something similar, as well as user management scripts that handle batch import of users, as well as creating home and mail accounts directories on remote servers. I have something now but it uses samba 2.0x and openldap 1.2.x, so it's more than a little dated. Trying to get something going so I can update our servers without breaking stuff. I can't believe that nothing has been written yet to accomplish this. If you find something I woulud be most grateful if you would let me know Thanks, -Jeff David Mair wrote:>Hello: > >It's been quite some time since I've posted to the samba lists. I'm >wondering if there are any other Samba administrators out there that have >developed shell and/or PERL scripting for managing user profile (roaming) >directories. Essentially what we're trying to accomplish is automated >cookie cleanup "illegal file" (i.e., mp3, wav, avi, etc.) file clean up >and the like. Our original shell scripting didn't work due to some file >naming convention problems. Before I re-invent the wheel I was hoping to >find someone that might have already accomplished this or could point me >somewhere. > >Regards, > >Dave > >"I don't know the key to success, but the key to failure is trying to >please everybody." - Bill Cosby > >-- Jefferson K. Davis Technology and Information Systems Manager Standard School District 1200 North Chester Ave Bakersfield, CA 93308 USA 661-392-2110 ext 120
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 I am more interested in preventing files over a certain size. It should be much easier than trying to prevent a horde of file types. In theory, I could limit sizes to exactly that needed for shortcuts effectively limiting the user to mostly just shortcuts on his desktop. Jim C. P.S. There really does need to be a scriptorium somewhere. Some of these might even be candidates for inclusion in the packages. | It's been quite some time since I've posted to the samba lists. I'm | wondering if there are any other Samba administrators out there that have | developed shell and/or PERL scripting for managing user profile (roaming) | directories. Essentially what we're trying to accomplish is automated | cookie cleanup "illegal file" (i.e., mp3, wav, avi, etc.) file clean up | and the like. Our original shell scripting didn't work due to some file | naming convention problems. Before I re-invent the wheel I was hoping to | find someone that might have already accomplished this or could point me | somewhere. - -- - ----------------------------------------------------------------- | I can be reached on the following Instant Messenger services: | |---------------------------------------------------------------| | MSN: j_c_llings@hotmail.com AIM: WyteLi0n ICQ: 123291844 | |---------------------------------------------------------------| | Y!: j_c_llings Jabber: jcllings@njs.netlab.cz | - ----------------------------------------------------------------- -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.3-nr1 (Windows XP) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFA7Zq357L0B7uXm9oRAuWxAJ4w/WAUDze6u+Yut1Q2jw+LLCIiHgCdHovD 7qsJtv+DjLW8x4Lj6IvjLj4=73St -----END PGP SIGNATURE-----