LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 01-12-2010, 02:41 PM   #1
vsumanth10
LQ Newbie
 
Registered: Sep 2009
Posts: 8

Rep: Reputation: 0
Red face Using HAL fdi policy to restrict access to a mounted USB


Hi,

I have a requirement of mounting an external usb with NTFS filesystem and allowing restricting its access only to the console user(even restricting access to a single group is fine). I am able to mount the usb by using the fdi policy below. However, I want the access to be restricted to a single user or a group. Is there anything that I'm missing here. I did search on the internet, but couldn't find anything in this regard. Plz help!!!

fdi policy -

<?xml version="1.0" encoding="UTF-8"?> <!-- -*- SGML -*- -->

<!-- This .fdi files makes sure that normal users are able to write
to a automatically mounted USB drive -->

<deviceinfo version="0.2">
<device>
<match key="volume.fstype" string="ntfs">
<match key="@block.storage_device:storage.hotpluggable" bool="true">
<merge key="volume.fstype" type="string">ntfs-3g</merge>
<merge key="volume.policy.mount_filesystem" type="string">ntfs-3g</merge>
</match>
</match>
</device>
</deviceinfo>


Thanks,
Sumanth
 
Old 01-13-2010, 07:41 AM   #2
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,925
Blog Entries: 44

Rep: Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159
Hi,

Look at setting a password for 'group';

Quote:
excerpt from 'man group';

NAME
group - user group file

DESCRIPTION
/etc/group is a text file which defines the groups on the system. There is one entry per line, with
the following format:

group_name:passwd:GID:user_list

The field descriptions are:

group_name
the name of the group.

password
the (encrypted) group password. If this field is empty, no password is needed.

GID the numerical group ID.

user_list
a list of the usernames that are members of this group, separated by commas.

FILES
/etc/group
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Hal fdi policy for a specific group vsumanth10 Linux - General 0 10-21-2009 12:51 PM
HAL, fdi policy hiding unwanted partitions manwithaplan Linux - General 1 10-01-2009 09:55 AM
configuring 'fdi' - 'hal' for usb devices Dafydd Linux - Hardware 13 09-13-2009 01:07 AM
HAL is ignoring synaptics FDI policy Zerimas Linux - Laptop and Netbook 7 09-12-2009 09:35 AM
Restrict Mounted Disc Access JC404 Linux - Security 7 09-06-2003 06:48 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 01:58 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration