--- "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