LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 11-12-2003, 12: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, 04: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, 04: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, 09: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, 09: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



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 08:43 PM
Allowing other users than root to mount drives DarkPhoenix Linux - Newbie 6 06-25-2004 06:28 AM
Allowing *some* users to mount ugenn Linux - General 8 03-01-2004 10:48 PM
allowing non-root users to mount drives and shutdown rlpt Slackware 3 09-21-2002 06:35 PM
Allowing users to mount and access devices katanastab Linux - General 1 02-14-2002 03:54 PM

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

All times are GMT -5. The time now is 02: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