Skip to content

Margus Roo –

If you're inventing and pioneering, you have to be willing to be misunderstood for long periods of time

  • Cloudbreak Autoscale fix
  • Endast

linux how to create read-only /tmp partation

Posted on August 11, 2011 by margusja

# 100MB file for /tmp

dd if=/dev/zero of=/dev/tmpMnt bs=1024 count=100000

# extended filesystem

mke2fs /dev/tmpMnt

# backup cp -p -r /tmp /home/backup/tmp

# mount with noexec

mount -o loop,noexec,nosuid,rw /dev/tmpMnt /tmp

chmod 0777 /tmp

# add to fstab so it can reboot

vi /etc/fstab

/dev/tmpMnt /tmp ext2 loop,noexec,nosuid,rw 0 0

# now nothing should run # bash: ./binary-program: Permission denied

Posted in Linux

Post navigation

Eestikeelsed veateated ruulivad
Iga mees on oma õnne sepp…

Leave a Reply

You must be logged in to post a comment.

The Master

Categories

  • Apache
  • Apple
  • Assembler
  • Audi
  • BigData
  • BMW
  • C
  • Elektroonika
  • Fun
  • Hadoop
  • help
  • Infotehnoloogia koolis
  • IOT
  • IT
  • IT eetilised
  • Java
  • Langevarjundus
  • Lapsed
  • lastekodu
  • Linux
  • M-401
  • Mac
  • Machine Learning
  • Matemaatika
  • Math
  • MSP430
  • Muusika
  • neo4j
  • openCL
  • Õpetaja identiteet ja tegevusvõimekus
  • oracle
  • PHP
  • PostgreSql
  • ProM
  • R
  • Turvalisus
  • Varia
  • Windows
Proudly powered by WordPress | Theme: micro, developed by DevriX.