Preventing free access to other partitions

You have a problem with Salix? Post here and we'll do what we can to help.
Post Reply
rsal
Posts: 198
Joined: 12. Mar 2012, 17:00

Preventing free access to other partitions

Post 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.
User avatar
gapan
Salix Wizard
Posts: 6362
Joined: 6. Jun 2009, 17:40

Re: Preventing free access to other partitions

Post 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.
Image
Image
rsal
Posts: 198
Joined: 12. Mar 2012, 17:00

Re: Preventing free access to other partitions

Post by rsal »

Can I achieve this without altering fstab? Is it possible to change some settings somewhere to achieve this behaviour of file manager?
User avatar
gapan
Salix Wizard
Posts: 6362
Joined: 6. Jun 2009, 17:40

Re: Preventing free access to other partitions

Post by gapan »

I don't think so.
Image
Image
rsal
Posts: 198
Joined: 12. Mar 2012, 17:00

Re: Preventing free access to other partitions

Post 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/
User avatar
gapan
Salix Wizard
Posts: 6362
Joined: 6. Jun 2009, 17:40

Re: Preventing free access to other partitions

Post by gapan »

Not that I know of.
Image
Image
Post Reply