View previous topic :: View next topic |
Author |
Message |
HomeUser n00b
Joined: 22 Jan 2006 Posts: 51
|
Posted: Sat May 21, 2011 9:36 am Post subject: Automount |
|
|
Hello,
I have KDE & XFCE installed. I have a few partitions that I don't want to be accessible without root permission. If I, under XFCE use Thunar I can reach every partition on my USB external disk (/dev/sfb?). Before I can open the partitions on my PATA disk (/dev/sda?) that are not mounted by /etc/fstab, Thunar ask for the root password. Once he has it, he apparently keeps it. He will then open/mount also the other partitions of /dev/sda.
I suppose that, if one day somebody would get unwanted non-root access to my system, he would be able to mount and access all the partition on my USB disk if it is connected.
Where can this behavior be configured?
Volman can be configured, but that configuration can be changed with user rights. Or is there a method to freeze that configuration?
Thanks for any suggestions.
I was not really able to find a good explanation how auto-mounting works now under Linux? I had the impression that 5 years ago there where lot's of methods. Is everybody now using UDEV , removing HAL, (using Udisk ?). |
|
Back to top |
|
|
HomeUser n00b
Joined: 22 Jan 2006 Posts: 51
|
Posted: Sat May 21, 2011 9:49 am Post subject: |
|
|
I may just now have found a partially solution, but I should test more to be sure and I don't know if there is no way around it.
Putting a line like
UUID="6f109502-7a23-4a58-8a2e-ae2da24121331" /xxx reiserfs rw,nouser,noauto 0 0
in fstab didn't work, I tested that earlier.
But with this line
/dev/disk/by-uuid/6f109502-7a23-4a58-8a2e-ae2da24121331 /xxx reiserfs rw,nouser,noauto 0 0
is seems the partition is no longer visible in the left column of Thunar.
But I am still searching for a method to block any automounting of a USB connected drive except some selected ones. |
|
Back to top |
|
|
djdunn l33t
Joined: 26 Dec 2004 Posts: 812
|
Posted: Sat May 21, 2011 3:54 pm Post subject: |
|
|
you may want to look up udisks, it should allow you to set file permissions on the device at mount time, the only way to set file permissions on a fat32 partition. I cant be sure how to make any of those changes persistent I'm fairly sure its possible tho, but i could be wrong. _________________ “Music is a moral law. It gives a soul to the Universe, wings to the mind, flight to the imagination, a charm to sadness, gaiety and life to everything. It is the essence of order, and leads to all that is good and just and beautiful.”
― Plato |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|