View previous topic :: View next topic |
Author |
Message |
MacMasta Guru
Joined: 18 Apr 2002 Posts: 545 Location: Anchorage, AK
|
Posted: Fri Jun 18, 2004 3:31 am Post subject: Allowing only certain users to mount / read a filesystem? |
|
|
Specifically, an NTFS filesystem?
That is, I want to give certain users the ability to mount and unmount a filesystem, and those same users the ability to read it.
I could (presumably) do the second by setting group permissions on the mountpoint, but I don't know how to control who can mount/unmount it (except 'only root can' and 'everyone can').
Anybody know?
Thanks!
~Mac~ |
|
Back to top |
|
|
piraeus n00b
Joined: 18 Oct 2003 Posts: 41
|
Posted: Fri Jun 18, 2004 4:53 am Post subject: |
|
|
I think you could create a new group (named "mount" or something) and add the users you want to be able to mount the fs to that group. Then use chown to give appropriate group ownership to the mount command. Like:
Code: |
chown root:mount /bin/mount
|
(you can also use chgrp I just always use chown... see man chown, man chgrp).
hth...
ps: so between chown and chmod you can control who can run mount command and who can r/w filesystems... |
|
Back to top |
|
|
MacMasta Guru
Joined: 18 Apr 2002 Posts: 545 Location: Anchorage, AK
|
Posted: Fri Jun 18, 2004 8:14 am Post subject: |
|
|
Well, yes, but I don't want to control the system-wide ability to mount things; I just want to control the users on a particular filesystem...
~Mac~ |
|
Back to top |
|
|
|