Page 1 of 1

Preventing free access to other partitions

Posted: 22. Jan 2014, 07:16
by rsal
I am using Salixos-14-xfce with Mate desktop and it is running very well. When I click on other partitions in Caja file manager, they are mounted without any problem and no password is required. How can I change this so that it asks for password (root or regular user) before mounting other partitions. My /etc/fstab file is as follows:

Code: Select all

LABEL=salix14-xfce         /                ext4        noatime,defaults 1   1
devpts           /dev/pts         devpts      gid=5,mode=620   0   0
proc             /proc            proc        defaults         0   0
tmpfs            /dev/shm         tmpfs       defaults         0   0
Thanks for your help.

Re: Preventing free access to other partitions

Posted: 22. Jan 2014, 08:59
by gapan
Add these partitions to your fstab and they won't show up in caja and the users won't be able to mount them without getting superuser priviliges. Use the "noauto" option for mounting.

Re: Preventing free access to other partitions

Posted: 22. Jan 2014, 09:16
by rsal
Can I achieve this without altering fstab? Is it possible to change some settings somewhere to achieve this behaviour of file manager?

Re: Preventing free access to other partitions

Posted: 22. Jan 2014, 09:19
by gapan
I don't think so.

Re: Preventing free access to other partitions

Posted: 22. Jan 2014, 10:12
by rsal
Can some udev rules be changed to achieve this? I tried to see following pages but could not get a clear answer:
https://wiki.archlinux.org/index.php/udev
http://www.linuxforu.com/2012/06/some-n ... -examples/

Re: Preventing free access to other partitions

Posted: 22. Jan 2014, 14:27
by gapan
Not that I know of.