Index: [Article Count Order] [Thread]

Date:  Mon, 11 Sep 2006 02:27:04 -0700 (PDT)
From:  Neritan Myftiu <nmyftiu (at mark) yahoo.com>
Subject:  [coba-e:06822] Re: /TMP Directory
To:  coba-e (at mark) bluequartz.org
Message-Id:  <20060911092704.71508.qmail (at mark) web53510.mail.yahoo.com>
In-Reply-To:  <000e01c6d53e$5140d5d0$6400a8c0@YOUR4105E587B6>
X-Mail-Count: 06822



--- "Darrell D. Mobley" <dmobley (at mark) uhostme.net> wrote:

> Ok, now I am all confused...
> 
> Do the perl -pi -e stuff first, then fstab, then the mount/remount, then
> mount/grep?
> 
> Does doing this break package installers?  What will YUM do?
> 

The /etc/fstab is part of the "perl -pi -e ..." stuff:

/usr/bin/perl -pi -e ... /etc/fstab

Where ... stands for "if (/\/tmp/) { s/defaults/noexec,nosuid,rw/ }"
Just put them all on one line.

From what I read on Nuonce forum, package installation is affected. So you
may want to reset /tmp to 'rw' before package installation and then
re-apply 'noexec,nosuid,rw' afterwards.

HTH,
Neritan

> > -----Original Message-----
> > From: Gerald Waugh [mailto:gwaugh (at mark) frontstreetnetworks.com]
> > Sent: Sunday, September 10, 2006 8:50 AM
> > To: coba-e (at mark) bluequartz.org
> > Subject: [coba-e:06814] Re: /TMP Directory
> > 
> > 
> > >
> > > I think it is a problem with line wrap in Brian's message.
> > > Following is on one (1) line...
> > >
> > > /usr/bin/perl -pi -e "if (/\/tmp/) { s/defaults/noexec,nosuid,rw/ }"
> > /etc/fstab
> > >
> > 
> > *** Oops! First execute;
> >   /bin/mount -o remount /tmp
> > 
> > > Then execute
> > >   mount | grep "/tmp"
> > >
> > > The above should indicate;
> > >   /dev/md2 on /tmp type ext3 (rw,noexec,nosuid)
> > 
> > Gerald
> 
> 
> 
> 


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com