LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 09-13-2003, 11:51 AM   #1
LooseCanon
Member
 
Registered: Aug 2003
Location: Canada
Distribution: RH, Fedora, Debian
Posts: 128

Rep: Reputation: 15
user and group ids - individual permissions?


Hi y'all

Can individual permissions be given for r/w access to a partition by using gid or/and uid in /etc/fstab?

What I wanted to do is give access to a partition (/dev/hdb5 - which is /home/data) only to a particular group of users belonging to a specified group (group id: 511) . Right now, the owner is "root" belonging to group "root". What I did was edit the fstab to read:

Code:
LABEL=/home/data     /home/data     ext3     defaults,gid=511,umask=002  1 2
I only added the gid and umask values the rest is default RH9 install values.

This didn't work. At boot I got an error:
Code:
mount: wrong fs type, bad option, bad super block on /dev/hdb5 
                    or too many mounted file systems.
Doing a bit of digging in the logs I found out the problem is the GID entry. Ok, fine, I got rid of the gid and umask values and mounted the partition manually (mount /home/data) with no problems.

Is there any way to give rw access to a group using the GID? I keep getting invalid option (mount errors) everytime I use the GID in fstab.

Thanks.
 
Old 09-13-2003, 04:02 PM   #2
Skyline
Senior Member
 
Registered: Jun 2003
Distribution: Debian/other
Posts: 2,104

Rep: Reputation: 45
As I understand it - yes. Try modifying the line to this:

/dev/hdb5 /home/data ext3 umask=002,gid=511,auto,rw 1 2



.

Last edited by Skyline; 09-13-2003 at 04:21 PM.
 
Old 09-14-2003, 12:57 PM   #3
LooseCanon
Member
 
Registered: Aug 2003
Location: Canada
Distribution: RH, Fedora, Debian
Posts: 128

Original Poster
Rep: Reputation: 15
Ok, thanks, I'll try that.

... BTW, anyone here can tell me what the numbers stand for at the end of a line in /etc/fstab - example: 1 1 or 0 0 ..etc ?

Cheers
//Canon
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
user/group permissions prozac Linux - Newbie 4 11-20-2005 11:49 PM
How to set the permissions for a user Group? Akhran Linux - Newbie 6 11-14-2005 07:55 AM
User, Group permissions in Redhat Linux ES 3.0 majicrobot Linux - Security 1 09-25-2004 07:24 AM
Samba mount, user/group IDs fennec Linux - Networking 0 08-22-2004 02:54 PM
user/group permissions Diane Welch Linux - Newbie 3 05-08-2001 07:03 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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