hide internal hdd? (HAL/fstab?)

Questions about hardware and drivers
Forum rules
Before you post please read this

hide internal hdd? (HAL/fstab?)

Postby beadmaze on Mon Mar 19, 2012 10:08 am

help please!

ok, ok.
short version: what i'm trying to achieve is to restrict a user from accessing the internal hdd, but how to?

long version: i'm actually configuring a LMDE-install on a usb-thumbdrive (normal installation onto a 16GB sandisk cruzer edge) for the use of pupils in a workshop about computing & internetsecurity - the kids shall be able to take the stick everywhere and access their personalized LMDE (thunderbirdmails, secure browser, tools and stuff) on other computers, such as their grandma's, their parents, their friends or in the local libraray, where ever...
everything turns out nice so far and i'm pretty happy with the result so far.
BUT: the kids should not be able to accidentally wipe off their parent/grandma's windoze-hdd
they should have "complete" root access to install/de-install every software they want, they should even be able to screw the installation and blow the bits of it into sonic space...
they should just be not able to access any internal hdd.
ahh, they must be able to access external hdds, such as an external drive, another usb-thumbdrive and stuff like that.

what i tried yet:
-create a new user.
that worked fine, but where is an option that restricts a user from accessing any internal hdd?
- someone very friendly suggested to have a look into HAL, especially into /etc/hal/fdi/policy/preferences.fdi as it says something like "how to hint gnome-volume-manager and other programs that honor the storage.automount_enabled_hint to not mount non-removable media"
but uncommenting this part did not have any effect at all (as far as i tried it: rebooting, on different users)

if i got things right (who knows things like this?) fstab is created for a specific machine then with the uuid of the hdd, isn't it?
should i look into fstab?

hmm, there's something i can't see, obviously.
any ideas?
any hints?
tricks?
suggestions?

thanks in advance!
beadmaze
Level 1
Level 1
 
Posts: 5
Joined: Wed Oct 05, 2011 11:18 am

Linux Mint is funded by ads and donations.
 

Re: hide internal hdd? (HAL/fstab?)

Postby BigSteve_G on Tue Mar 20, 2012 7:03 am

I'm no excpert (kind-of still learning) but would mounting the internal hard drive to somewhere like /mnt/restrict/hdd in fstab & then removing read & write access to the /mnt/restrict directory work?

May cause problems however with things like different drive names / multiplue drives/partitions (unless something like using /dev/hdd0 works)
I've fixed Windows, tried running with Jackalopes, fought Koalas & now, I'm addicted to Mints

http://www.facebook.com/itsbigsteve
User avatar
BigSteve_G
Level 4
Level 4
 
Posts: 286
Joined: Mon Feb 15, 2010 6:56 pm
Location: ~/a comfy chair

Re: hide internal hdd? (HAL/fstab?)

Postby beadmaze on Fri Mar 23, 2012 5:50 am

thanks a lot BigSteve_G!
i think the problem is that i don't want to block a specific internal drive, but every possible internal drive, as this pendrive shall be used on different machines.
so it seems fstab is out with this perspective as it deals with UUIDs, or am i wrong here?
beadmaze
Level 1
Level 1
 
Posts: 5
Joined: Wed Oct 05, 2011 11:18 am

Re: hide internal hdd? (HAL/fstab?)

Postby BigSteve_G on Fri Mar 23, 2012 6:08 am

beadmaze wrote:i think the problem is

the possible problem

I cant check at the moment as I am currently on a XP machine :oops: but I dont think fstab has to use UUIDS (think when I used MInt 7 it was pre-UUIDS) it may take something like sda1 as a back-wards compatability thing.

Another possable option is to block access to /dev/hdd (again sorry but I cant check at the moment) this to my mind will block access to any hard drives, however the usb will be ok as booting from it mounts the squashfs.filesystem as a loopback mount
I've fixed Windows, tried running with Jackalopes, fought Koalas & now, I'm addicted to Mints

http://www.facebook.com/itsbigsteve
User avatar
BigSteve_G
Level 4
Level 4
 
Posts: 286
Joined: Mon Feb 15, 2010 6:56 pm
Location: ~/a comfy chair

Re: hide internal hdd? (HAL/fstab?)

Postby AlbertP on Fri Mar 23, 2012 6:10 am

fstab now uses UUID's by default but names like /dev/sda1 are also accepted. Labels are possible as well with LABEL=.

Probably you can somehow setup that the new user may not mount partitions, or may not use udisks.
Registered Linux User #528502
Image
Feel free to correct me if I'm trying to write in Spanish, French or German.
AlbertP
Level 16
Level 16
 
Posts: 6517
Joined: Sun Jan 30, 2011 12:38 pm
Location: The Netherlands

Re: hide internal hdd? (HAL/fstab?)

Postby BigSteve_G on Sat Mar 31, 2012 6:38 pm

Dont know if this will be of any use to you viewtopic.php?f=46&t=98390
I've fixed Windows, tried running with Jackalopes, fought Koalas & now, I'm addicted to Mints

http://www.facebook.com/itsbigsteve
User avatar
BigSteve_G
Level 4
Level 4
 
Posts: 286
Joined: Mon Feb 15, 2010 6:56 pm
Location: ~/a comfy chair


Return to Hardware Support

Who is online

Users browsing this forum: No registered users and 6 guests