LinuxQuestions.org
Help answer threads with 0 replies.
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 11-12-2003, 01:49 PM   #1
Alpha_Beta
LQ Newbie
 
Registered: Sep 2003
Posts: 7

Rep: Reputation: 0
allowing set users to mount a drive, access issues


I wasn't quite sure where this thread should go...
anyways. I'm running gentoo linux with kde and I was wondering why my day-to-day user couldn't mount my ntfs partition. my current fstab looks like this:

/dev/hda1 /mnt/ntfs ntfs ro,user,gid=1000 0 0

as you can see the ntfs is on a different hard disk(i'm running a dual-boot system).
I made a group called ntfs with id 1000. I would like to see it so that anyone in that group could mount and access the drive, but only people in the group. right now it says only the root can mount the drive. then when i do mount the drive no one else can access it. thank you for the help.
 
Old 11-12-2003, 05:38 PM   #2
stonux
Member
 
Registered: Oct 2003
Distribution: SuSE, RH
Posts: 55

Rep: Reputation: 15
just execute mount without parameters
to see if the ntfs partition is mounted. Even a mere mortal user can do so.
If you add it to the fstab, the users don't need to mount it anymore.
Make sure that the directory (=mount point) /mnt/ntfs exists.

as a user, just cd /mnt/ntfs and look if
you can see the files.
 
Old 11-12-2003, 05:56 PM   #3
Alpha_Beta
LQ Newbie
 
Registered: Sep 2003
Posts: 7

Original Poster
Rep: Reputation: 0
Not entirely true. if you place the "noauto" option in fstab then it will not mount on boot. I'm trying to make it so that only a certain group can access it. i.e. people in group 1000(ntfs) can read the partition. the mount point is made. I need to make sure that it is read-only as well.
 
Old 11-12-2003, 10:04 PM   #4
Alpha_Beta
LQ Newbie
 
Registered: Sep 2003
Posts: 7

Original Poster
Rep: Reputation: 0
I think what I'm trying to say is how do I set the umask so that it only allows the user and group read access but not everything else?
 
Old 11-12-2003, 10:21 PM   #5
stonux
Member
 
Registered: Oct 2003
Distribution: SuSE, RH
Posts: 55

Rep: Reputation: 15
the umask is for writing only.

I think its sufficient to
chmod 750 /mnt/ntfs
and
chown root.ntfs /mnt/ntfs

Users not member of ntfs should get acces denied on cd /mnt/ntfs
mounting with the ro option makes the partition read-only even for root.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Allowing non-root users rw access to floppy disks? black hole sun Linux - Hardware 3 02-12-2005 09:43 PM
Allowing other users than root to mount drives DarkPhoenix Linux - Newbie 6 06-25-2004 07:28 AM
Allowing *some* users to mount ugenn Linux - General 8 03-01-2004 11:48 PM
allowing non-root users to mount drives and shutdown rlpt Slackware 3 09-21-2002 07:35 PM
Allowing users to mount and access devices katanastab Linux - General 1 02-14-2002 04:54 PM


All times are GMT -5. The time now is 08:50 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration