/etc/fstab
You might want to add/change an entry in your /etc/fstab file.
From what you are talking about, it sounds like you may want a line that looks like:
/dev/hdXX __________/mnt/hda_________auto_______noauto,user,umask=000,dmask=000,fmask=000______ 0_________0
(note...that should all be on one line...it may look like two if it wraps) ... Also...the "______" are just spaces....do NOT put "_____" stuff in the /etc/fstab...I only used it to get some separation between the groups of information....the forum truncated multiple spaces into just one space and it looked a little confusing.
Be sure to replace /dev/hdXX with whatever the drive device you are talking about is (e.g., /dev/hdd1, /dev/hdc5...).
This should allow any user to mount the drive by just typing "mount /mnt/hda" from the command line.
The masks should set all files and directories to the equivalent of "chmod 777".
Give it a try and see if that's what you're looking for.
You can adjust the masks to suit your needs (see "man mount"). You can also add restrictions on access by adding gid= and uid= flags (again...see "man mount").
Personally, I prefer more restriction on my mounts. For example, one of my fstab lines is:
/dev/hda1 /mnt/98 auto noauto,owner,gid=6,uid=1000,umask=077,dmask=077,fmask=077 0 0
where I had changed ownership of /dev/hda1 to the user with uid=1000. It may not be a great idea to change ownership of devices in the /dev directory like I did, but it seems to accomplish exactly what I wanted. Only user with uid=1000 (and root, obviously) can mount that partition and noone else can even see any contents when it's mounted.
Some more exprienced users may add or comment on what I've said. I'm nowhere near "knowledgeable" about this stuff.
Bob
|