linux-admin.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Users using /tmp as a storage space.
@ 2003-03-20  9:18 Mikko Grönroos
  2003-03-20  9:47 ` Andrew Kelly
  2003-03-20  9:50 ` Artem Daniliants
  0 siblings, 2 replies; 11+ messages in thread
From: Mikko Grönroos @ 2003-03-20  9:18 UTC (permalink / raw)
  To: linux-admin

Hello all,

I have a problem with users putting movies etc. to
our server's /tmp directory. How could I stop this
from happening? Any suggestions? I have tried to
gently tell them, that it's not OK, but for some
reason or another (suprise suprise) they don't care :)

Thanks,

-- 
  ___
 /__/|  Mikko.Gronroos@HUT.FI % 2476
 |__|/  HUT: Signal Processing Laboratory


^ permalink raw reply	[flat|nested] 11+ messages in thread
* RE: Users using /tmp as a storage space.
@ 2003-03-20 12:50 Bruce Harvey
  0 siblings, 0 replies; 11+ messages in thread
From: Bruce Harvey @ 2003-03-20 12:50 UTC (permalink / raw)
  To: linux-admin

Sounds like time to get "management" to agree to the rules ... or to make
them up.  If none exist whatsoever, you probably need to come up with a
'fair use' rule for the system, whereby everyone gets to know what's "legal"
and what isn't and what the consequences are and get "management" to buy
into it.  If it turns out that "management" is OK with what they're doing
... learn to love it and increase the space allocated to /tmp immensely.
Otherwise, you should get the backing you deserve.

Certainly don't come at them with an "I'm gonna get you 'cause I told you
not to" and so on.  If you get the backing, just let them know that because
their extraneous files threaten the proper workings of the system, they both
can't be guaranteed of having their files there and might get in trouble
because of it ... no hard feelings.

Good luck!

 
----------------------------------
Bruce T. Harvey (Special Projects)
----------------------------------------
bth@comcast.net  -- bruceh@routescape.com
410-236-5721 (cell) -- 410-403-2390 (off.)
-------------------------------------------
Insight Distribution Systems / CoAxis, Inc.
Hunt Valley, Maryland  U.S.A.  21031-1422
-------------------------------------------



-----Original Message-----
From: Glynn Clements [mailto:glynn.clements@virgin.net]
Sent: Thursday, March 20, 2003 7:26 AM
To: linux-admin@vger.kernel.org
Subject: Re: Users using /tmp as a storage space.



Andrew Kelly wrote:

> > I have a problem with users putting movies etc. to
> > our server's /tmp directory. How could I stop this
> > from happening? Any suggestions? I have tried to
> > gently tell them, that it's not OK, but for some
> > reason or another (suprise suprise) they don't care :)
> 
> 05  01  *   *   *   exec 'rm -rf /tmp/*'

That's a bit too "brute force", and could interfere with normal
operation. It would better to only delete files that are more than X
hours old.

Also, you have to be very careful when performing directory traversals
on world-writable directories such as /tmp. Unless the program has
been explicitly hardened against such attacks, a malicious user could
cause arbitrary files to be deleted. Ideally, use a dedicated "/tmp
cleaner" program.

-- 
Glynn Clements <glynn.clements@virgin.net>
-
To unsubscribe from this list: send the line "unsubscribe linux-admin" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2003-03-21  1:42 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-03-20  9:18 Users using /tmp as a storage space Mikko Grönroos
2003-03-20  9:47 ` Andrew Kelly
2003-03-20  9:59   ` Mikko Grönroos
2003-03-20 10:14     ` Andrew Kelly
2003-03-20 11:07       ` urgrue
2003-03-20 12:25   ` Glynn Clements
2003-03-20 14:14     ` Brian Harring
2003-03-21  1:42       ` Mikhail Romanenko
2003-03-20  9:50 ` Artem Daniliants
2003-03-20 10:06   ` Mikko Grönroos
  -- strict thread matches above, loose matches on Subject: below --
2003-03-20 12:50 Bruce Harvey

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).