Unix Technical Forum

tmpwatch and nfs

This is a discussion on tmpwatch and nfs within the Linux Operating System forums, part of the Unix Operating Systems category; --> Greetings, Does anyone know if tmpwatch is capable of removing files mounted via nfs ? example: A system admin ...


Go Back   Unix Technical Forum > Unix Operating Systems > Linux Operating System

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-17-2008, 08:25 PM
Ihab Khoury
 
Posts: n/a
Default tmpwatch and nfs

Greetings,
Does anyone know if tmpwatch is capable of removing files mounted via
nfs ?
example: A system admin decides to mount a his home directory on a
different server on /tmp/tmp_servername/UnixAccount
I know it sounds not likely to happen but it did. The mount point had
read write access as root.
Has anyone seen this before?
Thanks
Ihab
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 01-17-2008, 08:25 PM
Paul Lutus
 
Posts: n/a
Default Re: tmpwatch and nfs

Ihab Khoury wrote:

> Greetings,
> Does anyone know if tmpwatch is capable of removing files mounted via
> nfs ?
> example: A system admin decides to mount a his home directory on a
> different server on /tmp/tmp_servername/UnixAccount
> I know it sounds not likely to happen but it did. The mount point had
> read write access as root.
> Has anyone seen this before?


Why not solve the problem at the source? Prevent this specific user from
doing this, using permissions if necessary. For example, IMHO if he can
contemplate this setup, he needs to have his sysadmin privileges revoked.

--
Paul Lutus
http://www.arachnoid.com

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 01-17-2008, 08:26 PM
Nico Kadel-Garcia
 
Posts: n/a
Default Re: tmpwatch and nfs


"Paul Lutus" <nospam@nosite.zzz> wrote in message
news:10ieqt85v651h9e@corp.supernews.com...
> Ihab Khoury wrote:
>
> > Greetings,
> > Does anyone know if tmpwatch is capable of removing files mounted via
> > nfs ?
> > example: A system admin decides to mount a his home directory on a
> > different server on /tmp/tmp_servername/UnixAccount
> > I know it sounds not likely to happen but it did. The mount point had
> > read write access as root.
> > Has anyone seen this before?

>
> Why not solve the problem at the source? Prevent this specific user from
> doing this, using permissions if necessary. For example, IMHO if he can
> contemplate this setup, he needs to have his sysadmin privileges revoked.


tmpwatch is normally configured *not* to do this, to avoid exactly this sort
of problem. Look at the associated configuration files with the tmpwatch
software.

Of course, if you run a tmpwatch by hand or without checking your options,
then you may blow things sky high.


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 01-17-2008, 08:26 PM
Paul Lutus
 
Posts: n/a
Default Re: tmpwatch and nfs

Nico Kadel-Garcia wrote:

>
> "Paul Lutus" <nospam@nosite.zzz> wrote in message
> news:10ieqt85v651h9e@corp.supernews.com...
>> Ihab Khoury wrote:
>>
>> > Greetings,
>> > Does anyone know if tmpwatch is capable of removing files mounted via
>> > nfs ?
>> > example: A system admin decides to mount a his home directory on a
>> > different server on /tmp/tmp_servername/UnixAccount
>> > I know it sounds not likely to happen but it did. The mount point had
>> > read write access as root.
>> > Has anyone seen this before?

>>
>> Why not solve the problem at the source? Prevent this specific user from
>> doing this, using permissions if necessary. For example, IMHO if he can
>> contemplate this setup, he needs to have his sysadmin privileges revoked.

>
> tmpwatch is normally configured *not* to do this, to avoid exactly this
> sort of problem. Look at the associated configuration files with the
> tmpwatch software.


Complete agreement, but someone who mounts a network system under /tmp
should not be an admin, against even the possibility of a purge. In my
ever-most-humble opinion, as I'm sure you know.

--
Paul Lutus
http://www.arachnoid.com

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 01-17-2008, 08:26 PM
Nico Kadel-Garcia
 
Posts: n/a
Default Re: tmpwatch and nfs


"Paul Lutus" <nospam@nosite.zzz> wrote in message
news:10ig7cr1imtv638@corp.supernews.com...

> Complete agreement, but someone who mounts a network system under /tmp
> should not be an admin, against even the possibility of a purge. In my
> ever-most-humble opinion, as I'm sure you know.


Hmm. I've done it for a matter of minutes, rather than creating a permanent
directory elsewhere, in order to test an NFS or SMB mountable directory
before putting it in autofs or in a local /etc/fstab for regular mounting.
It's particularly useful if your home directories are already NFS mounted
and thus unsuitable for putting another NFS mount point on top of.


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 01-17-2008, 08:26 PM
Paul Lutus
 
Posts: n/a
Default Re: tmpwatch and nfs

Nico Kadel-Garcia wrote:

>
> "Paul Lutus" <nospam@nosite.zzz> wrote in message
> news:10ig7cr1imtv638@corp.supernews.com...
>
>> Complete agreement, but someone who mounts a network system under /tmp
>> should not be an admin, against even the possibility of a purge. In my
>> ever-most-humble opinion, as I'm sure you know.

>
> Hmm. I've done it for a matter of minutes, rather than creating a
> permanent directory elsewhere, in order to test an NFS or SMB mountable
> directory before putting it in autofs or in a local /etc/fstab for regular
> mounting. It's particularly useful if your home directories are already
> NFS mounted and thus unsuitable for putting another NFS mount point on top
> of.


Well, that sounds like a matter of convenience, not policy. For myself,
instead of using /tmp, I create various temp directories under the root
directory for this sort of thing, because they have no status with the OS
and are not likely to be toyed with by a well-meaning daemon.

--
Paul Lutus
http://www.arachnoid.com

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 01-17-2008, 08:27 PM
Ihab Khoury
 
Posts: n/a
Default Re: tmpwatch and nfs

Appreciate all the responses and advice. I will check more on the
configuration files for tmpwatch.
I am still curious to know if anyone else on this planet has
experienced such an incident were tmpwatch removed files mounted via
NFS in /tmp.?

Thanks,
Ihab
Paul Lutus <nospam@nosite.zzz> wrote in message news:<10ihgtfmr3need@corp.supernews.com>...
> Nico Kadel-Garcia wrote:
>
> >
> > "Paul Lutus" <nospam@nosite.zzz> wrote in message
> > news:10ig7cr1imtv638@corp.supernews.com...
> >
> >> Complete agreement, but someone who mounts a network system under /tmp
> >> should not be an admin, against even the possibility of a purge. In my
> >> ever-most-humble opinion, as I'm sure you know.

> >
> > Hmm. I've done it for a matter of minutes, rather than creating a
> > permanent directory elsewhere, in order to test an NFS or SMB mountable
> > directory before putting it in autofs or in a local /etc/fstab for regular
> > mounting. It's particularly useful if your home directories are already
> > NFS mounted and thus unsuitable for putting another NFS mount point on top
> > of.

>
> Well, that sounds like a matter of convenience, not policy. For myself,
> instead of using /tmp, I create various temp directories under the root
> directory for this sort of thing, because they have no status with the OS
> and are not likely to be toyed with by a well-meaning daemon.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 06:14 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com