From: "Mikhail Romanenko" <mikhail@angg.ru>
To: linux-admin@vger.kernel.org
Subject: Re: Users using /tmp as a storage space.
Date: Fri, 21 Mar 2003 06:42:33 +0500 [thread overview]
Message-ID: <002101c2ef4b$250d27c0$01011fac@angg.ru> (raw)
In-Reply-To: p05200f0fba9f7b6fe10c@[144.92.63.27]
----- Original Message -----
From: Brian Harring <bdharring@wisc.edu>
To: <linux-admin@vger.kernel.org>
Sent: Thursday, March 20, 2003 7:14 PM
Subject: Re: Users using /tmp as a storage space.
> Andrew Kelly wrote:
> > > 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.
>
> Speaking from experience, I don't think that's too good of a way of
> doing it either- I know x-windows and kde both use unix sockets that
> are stored in /tmp. If you brute force delete them, you're going to
> cause problems for any x-windows session that is currently going.
> Also, if I recall correctly, mysql stores it's unix socket there too-
> deletion of that would/should cause problems for programs that access
> mysql locally.
From my experience common users mostly use Windows on thir client computers
and access linux server via samba. I use /bin/false as default shell while
creating
a new user. In such cases I use /var/local/tmp as \\<servername>\tmp samba
resource
and disable /tmp in smb.conf which is enabled by default. Keeping in mind
that
only samba users use /var/local/tmp no "brute force" could interfere with
normal
operation.
What about users who have /bin/sh as a shell they are experienced enough to
understand explanation how they should (and should not) use /tmp. In my case
from about 150 users only two (me, as system administrator, and one more
guy),
and system pseudousers have /bin/bash as a shell.
Mikhail.
next prev parent reply other threads:[~2003-03-21 1:42 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
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 [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='002101c2ef4b$250d27c0$01011fac@angg.ru' \
--to=mikhail@angg.ru \
--cc=linux-admin@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).