[fstab] /tmp mounten zónder noexec

Pagina: 1
Acties:

Acties:
  • 0 Henk 'm!

  • afraca
  • Registratie: April 2009
  • Laatst online: 13-08 16:46

afraca

Open Source!

Topicstarter
(kleine notice, ik SSH naar m'n virtual private server in verweggiestan)

Ik was geïnteresseerd geraakt in Webmin na z'n laatste meuktracker post. Nu zag ik daar in een reactie dit staan:

code:
1
2
3
4
5
yum update
yum install perl
yum install wget
wget http://software.virtualmin.com/gpl/scripts/install.sh
/bin/sh install.sh


Perl en wget al aanwezig, dus alleen laatste 2 dingetjes gebruiken. Echter:

code:
1
2
3
4
5
6
7
8
9
10
11
12
The systems currently supported by install.sh are:
 CentOS 4 and 5 on i386 and x86_64
 Debian 4.0 and 5.0 on i386 and amd64
 Ubuntu 8.04 LTS on i386 and amd64

 If your OS is not listed above, this script will fail.  More details
 about the systems supported by the script can be found here:

   http://www.virtualmin.com/os-support.html

 Continue? (y/n) y
/tmp directory is mounted noexec.  Installation cannot continue.


Hmmm, dat is niet zo geweldig. Duivelse Google (:P) dan maar weer raadplegen, krijgen we 2 opties:
To disable it, you'll need to do two things:

Edit /etc/fstab, and remove the noexec option from the line that sets up /tmp. That'll make sure the mount options are correct next time you reboot.

To change the current options /tmp is mounted with, you cna type: mount -o remount,exec /tmp
Mooi, dat kan niet gek moeilijk zijn. De tweede optie levert me een permission denied op, zelfs al ben ik root (via SSH). De eerste optie geeft m'n huidige fstab:

code:
1
2
none    /dev/pts        devpts  rw      0       0
/tmp             /var/tmp                    ext3    defaults,bind,noauto        0 0


Ben ik nou zo gek, ik zie nergens noexec terugkomen in m'n fstab, al heb ik daar ook totaal geen kaas van gegeten :$

EDIT:

Of is een betere optie gewoon de RPM te gebruiken zoals hier beschreven staat? (al ben ik nog steeds nieuwsgierig hoe het wél moet via fstab)

EDIT2:

Schaamte, schaamte. Het is ondertussen met de "normale methode" zoals beschreven op de website prima gelukt. Échter! , ik ben zeer benieuwd hoe ik toch het probleem opgelost zou kunnen krijgen.

[ Voor 9% gewijzigd door afraca op 13-03-2010 13:52 ]

IMDB vote history | Next-gen OS, audio en video player, search engine en Movie DB


Acties:
  • 0 Henk 'm!

  • Rainmaker
  • Registratie: Augustus 2000
  • Laatst online: 14-07-2024

Rainmaker

RHCDS

Mount options kunnen ook in het superblock van het FS staan:

code:
1
2
3
4
5
6
Medusa ~ # dumpe2fs /dev/mapper/isw_dagchgecca_Data5 | grep mount
dumpe2fs 1.41.10 (10-Feb-2009)
Last mounted on:          /
Default mount options:    (none)
Last mount time:          Sat Mar 13 13:18:53 2010
Maximum mount count:      50


Probeer /tmp anders even expliciet met "exec" te mounten. Iets van

code:
1
mount -o remount,exec /tmp


zou het moeten doen. (command line overschrijft ook de opties uit het superblock.

We are pentium of borg. Division is futile. You will be approximated.


Acties:
  • 0 Henk 'm!

  • hostname
  • Registratie: April 2009
  • Laatst online: 05-10 19:07
De noexec is kennelijk standaard in jouw OS (CentOS?). Als je toch met exec wilt mounten, moet je de exec mount optie meegeven.

De permissiondeniend bij het remounten is te verklaren doordat er nog bestanden die op /tmp staan in gebruik zijn.