I don't have a straight-up answer for you, but here are two things that may help:
1. The reason it changes back is that, in modern Linux, a program called udev recreates device files from boot. If changing the ownership of /dev/hda1 is really the best way to do this, maybe it can be configured to make the file that way. That said...
2. Are you trying to prevent accidental or intentional mounting of this device? If the former is sufficient, a single line in sudoers that won't be hard to figure out (`man sudoers` to start) can allow lfs to mount it without a password. If the latter... well, you're not really going to be able to stop anyone with root from mounting. Anything you could do, they could undo. So, I hope it's accidentally mismounting you're afraid of.
Edit P.S.: NU?
Last edited by karamarisan; 07-20-2009 at 01:22 AM.
|