[prev in list] [next in list] [prev in thread] [next in thread] 

List:       e-smith-devinfo
Subject:    Re: [e-smith-devinfo] ANNOUNCE: e-smith-samba-recycle
From:       "Thor Anthrax" <devinfo () nightspirit ! nl>
Date:       2003-08-28 2:29:07
[Download RAW message or body]

It's in the new version (version 4).
Ready for download now!

----- Original Message ----- 
From: "Smith, Jeffery S (Scott)" <jeffery_smith@reyrey.com>
To: "'Thor Anthrax'" <devinfo@nightspirit.nl>; "E-smith devinfo"
<devinfo@lists.e-smith.org>
Sent: Wednesday, August 27, 2003 11:33 PM
Subject: RE: [e-smith-devinfo] ANNOUNCE: e-smith-samba-recycle


> That would definitely be an improvement.
>
> Scott
>
>
> > -----Original Message-----
> > From: Thor Anthrax [mailto:devinfo@nightspirit.nl]
> > Sent: Wednesday, August 27, 2003 5:25 PM
> > To: E-smith devinfo
> > Subject: Re: [e-smith-devinfo] ANNOUNCE: e-smith-samba-recycle
> >
> >
> > More like
> > rm -rf `find /home/e-smith/files/users/*/home/.recycle -type
> > f mtime +7` ?
> >
> > ----- Original Message ----- 
> > From: "Smith, Jeffery S (Scott)" <jeffery_smith@reyrey.com>
> > To: "'Thor Anthrax'" <devinfo@nightspirit.nl>
> > Sent: Wednesday, August 27, 2003 11:19 PM
> > Subject: RE: [e-smith-devinfo] ANNOUNCE: e-smith-samba-recycle
> >
> >
> > > That works; however, you have the risk that someone may create a
> > > .recycle directory for some other purpose, buried at some
> > level below
> > > an ibay or
> > user
> > > directory. If so, you run the risk of affecting things that
> > should not
> > > be affected. When doing solutions for general consumption,
> > risks need
> > > to be minimized whenever possible. That's why I chose a more
> > > controlled
> > approach,
> > > by scanning the dbs for user and ibay entries and working against a
> > specific
> > > path without recursion.
> > >
> > > It works via find the way you've done it, and if you're
> > happy with it
> > that's
> > > good. But if I were your product manager, I'd make you change it ;-)
> > >
> > >
> > > Scott
> > >
> > >
> > > > -----Original Message-----
> > > > From: Thor Anthrax [mailto:devinfo@nightspirit.nl]
> > > > Sent: Wednesday, August 27, 2003 5:02 PM
> > > > To: devinfo@lists.e-smith.org
> > > > Subject: Re: [e-smith-devinfo] ANNOUNCE: e-smith-samba-recycle
> > > >
> > > >
> > > > I made a little script executing
> > > > rm -rf `find /home/e-smith/files/ -name .recycle -type f
> > -mtime +7`
> > > > and placed it in /etc/cron.daily.
> > > >
> > > > Can be downloaded from my cintrib area of course.
> > > >
> > > >
> > > > Thor
> > > >
> > > > ----- Original Message -----
> > > > From: "Smith, Jeffery S (Scott)" <jeffery_smith@reyrey.com>
> > > > To: "'Thor Anthrax'" <devinfo@nightspirit.nl>;
> > > > <devinfo@lists.e-smith.org>
> > > > Sent: Tuesday, August 26, 2003 4:40 PM
> > > > Subject: RE: [e-smith-devinfo] ANNOUNCE: e-smith-samba-recycle
> > > >
> > > >
> > > > > Your best bet is to create a script, then have the cron job
> > > > launch the
> > > > > script instead of tmpwatch itself. I haven't looked at
> > the recycle
> > > > > stuff,
> > > > so
> > > > > I don't know the exact directory where the recycle bin is kept,
> > > > > but the script would go something like this:
> > > > >
> > > > > --------------------------------------------------
> > > > > #!/bin/bash
> > > > > # script: recyclewatch
> > > > >
> > > > > # cleanup users
> > > > >
> > > > > for user in $(/sbin/e-smith/db accounts print | /bin/fgrep
> > > > '=user|' |
> > > > > /bin/cut -d= -f1) do
> > > > >     /usr/sbin/tmpwatch 168
> > > > /home/e-smith/files/users/$user/home/recycle.bin
> > > > > done
> > > > >
> > > > > # cleanup ibays
> > > > > for ibay in $(/sbin/e-smith/db accounts print | /bin/fgrep
> > > > '=ibay|' |
> > > > > /bin/cut -d= -f1) do
> > > > >     /usr/sbin/tmpwatch 168
> > > > /home/e-smith/files/ibays/$ibay/files/recycle.bin
> > > > > done
> > > > >
> > > > > #EOF(recyclewatch)
> > > > > --------------------------------------------------
> > > > >
> > > > > Then in the /etc/crontab template you would have this:
> > > > >
> > > > >     44 4 * * * root /root/bin/recyclewatch 1>/dev/null 2>&1
> > > > >
> > > > > You could also put the script in /usr/local/sbin or
> > > > /usr/local/bin. I
> > > > prefer
> > > > > to keep this kind of thing in /root/bin/cron.
> > > > >
> > > > > I'm sure there's someone who could perlize the script, but
> > > > bash works
> > > > > just fine for this stuff. Since the Mitel 'db' command is
> > > > used to read
> > > > > the accounts database, it should be safe for future releases.
> > > > >
> > > > >
> > > > > Scott
> > > > >
> > > > >
> > > > > > -----Original Message-----
> > > > > > From: Thor Anthrax [mailto:devinfo@nightspirit.nl]
> > > > > > Sent: Tuesday, August 26, 2003 9:48 AM
> > > > > > To: Smith, Jeffery S (Scott)
> > > > > > Subject: Re: [e-smith-devinfo] ANNOUNCE: e-smith-samba-recycle
> > > > > >
> > > > > >
> > > > > > Sounds good. How to get that done in every user-space?
> > > > > >
> > > > > > ----- Original Message -----
> > > > > > From: "Smith, Jeffery S (Scott)" <jeffery_smith@reyrey.com>
> > > > > > To: "'Michiel Blotwijk'" <Michiel@Blotwijk.Com>;
> > > > > > <devinfo@lists.e-smith.org>
> > > > > > Sent: Tuesday, August 26, 2003 3:33 PM
> > > > > > Subject: RE: [e-smith-devinfo] ANNOUNCE: e-smith-samba-recycle
> > > > > >
> > > > > >
> > > > > > > > From: Michiel Blotwijk [mailto:Michiel@Blotwijk.Com]
> > > > > > > > Sent: Tuesday, August 26, 2003 7:10 AM
> > > > > > > > Subject: RE: [e-smith-devinfo] ANNOUNCE:
> > > > > > > > e-smith-samba-recycle
> > > > > > > >
> > > > > > > [snip]
> > > > > > > >
> > > > > > > > The only thing I would like see add to it is a cronjob
> > > > > > that removes
> > > > > > > > all files older than for example 7 days. Otherwise you'll
> > > > > > run out of
> > > > > > > > diskspace in no time flat..
> > > > > > >
> > > > > > >
> > > > > > > You need something like the following in the /etc/crontab
> > > > > > > template:
> > > > > > >
> > > > > > >
> > > > > > > 44 4 * * * root [ -d /your/samba/path ] &&
> > > > /usr/sbin/tmpwatch 168
> > > > > > > /your/samba/path 1>/dev/null 2>&1
> > > > > > >
> > > > > > >
> > > > > > > At 4:44 AM tmpwatch (which can be used on any
> > > > directory, not just
> > > > > > > /tmp)
> > > > > > will
> > > > > > > kill any files in the specified directory that are >=
> > > > 168 hours (7
> > > > > > > days) old.
> > > > > > >
> > > > > > > --
> > > > > > > Please report bugs to smebugs@mitel.com
> > > > > > > Please mail smesecurity@mitel.com (only) to discuss
> > security
> > > > > > > issues Support for registered customers and partners to
> > > > > > smesupport@mitel.com
> > > > > > > To unsubscribe, e-mail:
> > devinfo-unsubscribe@lists.e-smith.org
> > > > > > > For additional commands, e-mail:
> > > > > > > devinfo-help@lists.e-smith.org Searchable archive at
> > > > > > http://www.mail-archive.com/devinfo%40lists.e-smith.org
> > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > > >
> > > > --
> > > > Please report bugs to smebugs@mitel.com
> > > > Please mail smesecurity@mitel.com (only) to discuss
> > security issues
> > > > Support for registered customers and partners to
> > > > smesupport@mitel.com To unsubscribe, e-mail:
> > > > devinfo-unsubscribe@lists.e-smith.org
> > > > For additional commands, e-mail: devinfo-help@lists.e-smith.org
> > > > Searchable archive at
> > > http://www.mail-archive.com/devinfo%40lists.e-smith.org
> > >
> >
> >
> > --
> > Please report bugs to smebugs@mitel.com
> > Please mail smesecurity@mitel.com (only) to discuss security
> > issues Support for registered customers and partners to
> > smesupport@mitel.com To unsubscribe, e-mail:
> > devinfo-unsubscribe@lists.e-smith.org
> > For additional commands, e-mail:
> > devinfo-help@lists.e-smith.org Searchable archive at
> http://www.mail-archive.com/devinfo%40lists.e-smith.org
>
> --
> Please report bugs to smebugs@mitel.com
> Please mail smesecurity@mitel.com (only) to discuss security issues
> Support for registered customers and partners to smesupport@mitel.com
> To unsubscribe, e-mail: devinfo-unsubscribe@lists.e-smith.org
> For additional commands, e-mail: devinfo-help@lists.e-smith.org
> Searchable archive at
http://www.mail-archive.com/devinfo%40lists.e-smith.org
>
>


--
Please report bugs to smebugs@mitel.com
Please mail smesecurity@mitel.com (only) to discuss security issues
Support for registered customers and partners to smesupport@mitel.com
To unsubscribe, e-mail: devinfo-unsubscribe@lists.e-smith.org
For additional commands, e-mail: devinfo-help@lists.e-smith.org
Searchable archive at http://www.mail-archive.com/devinfo%40lists.e-smith.org

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic