Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Allowing only certain users to mount / read a filesystem?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
MacMasta
Guru
Guru


Joined: 18 Apr 2002
Posts: 545
Location: Anchorage, AK

PostPosted: Fri Jun 18, 2004 3:31 am    Post subject: Allowing only certain users to mount / read a filesystem? Reply with quote

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
View user's profile Send private message
piraeus
n00b
n00b


Joined: 18 Oct 2003
Posts: 41

PostPosted: Fri Jun 18, 2004 4:53 am    Post subject: Reply with quote

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
View user's profile Send private message
MacMasta
Guru
Guru


Joined: 18 Apr 2002
Posts: 545
Location: Anchorage, AK

PostPosted: Fri Jun 18, 2004 8:14 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
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