Page 1 of 1

How do I prevent manuel mounting of all the partitions?

Posted: 03 Jul 2013, 09:04
by mucahit
Hi everyone,
How do I prevent manuel mounting of all the partitions?

Re: How do I prevent manuel mounting of all the partitions?

Posted: 04 Jul 2013, 00:09
by donald
If I remember correctly only root is able to mount/umount
So if the normal user don't know the root-passwort he can't do it.

(make you root, unmount your partitions and than change back to normal
user.....and don't tell him/her the root-password) :)

Re: How do I prevent manuel mounting of all the partitions?

Posted: 04 Jul 2013, 10:06
by francois
Mounting of partitions at bootup is done thru the file: /etc/fstab:
http://en.wikipedia.org/wiki/Fstab
An example here is:

Code: Select all

# System mounts
aufs / aufs defaults 0 0 # AutoUpdate
proc /proc proc defaults 0 0 # AutoUpdate
sysfs /sys sysfs defaults 0 0 # AutoUpdate

# Device partitions
/dev/sda1 /mnt/sda1 ext4 auto,noatime,users,suid,dev,exec 0 0 # AutoUpdate
/dev/sda3 /mnt/sda3 ext3 auto,noatime,users,suid,dev,exec 0 0 # AutoUpdate
/dev/sda5 /mnt/sda5 ext3 auto,noatime,users,suid,dev,exec 0 0 # AutoUpdate
/dev/sda6 /mnt/sda6 ext3 auto,noatime,users,suid,dev,exec 0 0 # AutoUpdate

# Swap partitions
/dev/sda4 none swap auto,sw,pri=1 0 0 # AutoUpdate

Re: How do I prevent manuel mounting of all the partitions?

Posted: 04 Jul 2013, 13:45
by brokenman
How do I prevent manuel mounting of all the partitions?
We basically need more information:
Manual mounting for root or guest or everybody?
What is the end goal of this?
Mounting at boot time or after or both?

There are various ways to achieve this but the best depends on your situation and why you need it. For example you could boot with noauto cheat code and then remove/move the mount command using a boot script. That should stop anybody from mounting.