the perl stuff Brian is suggesting will change your /etc/fstab to
defaults/noexec,nosuid,rw
which will not let anything inside /tmp be executed.
he told you to do a
# mount | grep "/tmp"
to check your settings against his...You should have done this first to
compare. If the result of you running this command was not something like
"/dev/md2 on /tmp type ext3 (rw,noexec,nosuid)" then you should have run the
perl and then the
# /bin/mount -o remount /tmp
to remount the /tmp partition with the new settings.
Hope this helps
Paul Aviles
----- Original Message -----
From: "Darrell D. Mobley" <dmobley (at mark) uhostme.net>
To: <coba-e (at mark) bluequartz.org>
Sent: Sunday, September 10, 2006 9:05 PM
Subject: [coba-e:06815] Re: /TMP Directory
> 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?
>
>> -----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
>
>
>
>