LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 05-12-2005, 12:25 PM   #1
xmeson
Member
 
Registered: Jul 2003
Location: Random
Distribution: Slackware
Posts: 63

Rep: Reputation: 15
Permission and fstab


Hi,

I have created an extra group of users who i want to be able to mount anything(including the NTFS files systems) now when i add this this group to /etc/fstab during boot up it says the name of group is an unknown option(which is quite true since it is indeed an arbitrary name).

So does anyone know how i can add a specific group that can mount anything (mount, read and limited write?)?

Thanks,

xmeson
 
Old 05-12-2005, 12:43 PM   #2
Andrew Benton
Senior Member
 
Registered: Aug 2003
Location: Birkenhead/Britain
Distribution: Linux From Scratch
Posts: 2,073

Rep: Reputation: 64
If you're asking how to create a group, the command you want is groupadd
 
Old 05-12-2005, 02:22 PM   #3
xmeson
Member
 
Registered: Jul 2003
Location: Random
Distribution: Slackware
Posts: 63

Original Poster
Rep: Reputation: 15
not how to add a group, i think i can manage that ? Question is how can i enable an already known group to do certain things only. Like mount and manipulate certain directories?
 
Old 05-12-2005, 03:20 PM   #4
mlangdn
Senior Member
 
Registered: Mar 2005
Location: Kentucky
Distribution: Slackware64-current
Posts: 1,466

Rep: Reputation: 202Reputation: 202Reputation: 202
At the end of the fstab entry for ntfs, right after ro, put umask=0

An example from mine:

/dev/hda1 /mnt/winxp ntfs defaults,user,ro,umask=0 0 0

They would get to see the files, even copy them, but not write to the drive.

I also have one for win 98 that is rw. It is safe to write to the fat partition from linux.
 
Old 05-12-2005, 03:42 PM   #5
xmeson
Member
 
Registered: Jul 2003
Location: Random
Distribution: Slackware
Posts: 63

Original Poster
Rep: Reputation: 15
Thanks a lot but i think i am not making myself clear enough, i need to add an already made group to the /etc/fstab

Like as you have done with the "user" an arbitrary group names "smilies" for instance not the group user or users?
 
Old 05-12-2005, 08:28 PM   #6
SailingGypsy
Member
 
Registered: Jan 2004
Location: Florida, USA
Distribution: Slackware, SuSE
Posts: 42

Rep: Reputation: 15
Hi:

The way I understand your question you are trying to mount the group you created and not the actual file system/partition/device?? Correct?

I am not a Linux/Unix guru but, as far as I have always learned, one can only mount a file system. (Linux/Unix sees everything as a file system whether is a physical device (e.g. CD-Rom, Floppy, H/D) or not.). That is what you are actually doing when editing your etc/fstab. Your group is not a file system, thus it can not be mounted, hence your error at boot-up.

You already created the group. Now edit the users that you want to be part of that group. Then create the actual mount point (for the partition/device you want them to ahve access to) in the etc/fstab and then edit the permissions for that mount point. ( I THINK if you make the owner of the group the same as the group you just created, it would work. Someone with more experience in permissions please correct me if I am wrong here)

HTH

Best regards...
 
Old 05-12-2005, 09:20 PM   #7
egag
Senior Member
 
Registered: Jul 2004
Location: Netherlands
Distribution: Slackware
Posts: 2,721

Rep: Reputation: 52
why don't you post the fstab line you've got for that partition ?
( so we can fill in )

i think, after " umask " you must use " GID=<groupnumber>"
( type "man fstab" )
but if you want it r/w: i don't think if NTFS-write is supported yet.

egag
 
Old 05-13-2005, 04:01 AM   #8
Nobber
Member
 
Registered: Jun 2002
Location: Nova Scotia
Distribution: Debian (home), Kubuntu 7.04 (work)
Posts: 265

Rep: Reputation: 30
I don't think it's the /etc/fstab that needs changing; it's the permissions on the devices containing the filesystems that will be mounted by members of the group.

An abstract example: if you wanted members of the group 'flub' to be able to access the filesystem on the device '/dev/flob', then assuming the group 'flub' already exists, you'd do:

chown root.flub /dev/flob
chmod 660 /dev/flob

No need for any special options in /etc/fstab.
 
Old 05-13-2005, 05:41 AM   #9
ta0kira
Senior Member
 
Registered: Sep 2004
Distribution: FreeBSD 9.1, Kubuntu 12.10
Posts: 3,078

Rep: Reputation: Disabled
You also need to make the mount point owned by the group, then chmod the group permissions of the mount point.
ta0kira
 
Old 05-13-2005, 08:03 AM   #10
Nobber
Member
 
Registered: Jun 2002
Location: Nova Scotia
Distribution: Debian (home), Kubuntu 7.04 (work)
Posts: 265

Rep: Reputation: 30
Quote:
Originally posted by ta0kira
You also need to make the mount point owned by the group, then chmod the group permissions of the mount point.
I don't think that's necessary, at least for filesystems that are mounted via /etc/fstab. When a filesystem is mounted, the mount point takes on the ownership and permissions of the root directory of that filesystem. The ownership and permissions of the mount point itself are irrelevant, AFAIR.
 
  


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
fstab problem: mount: can't find dvd in /etc/fstab or /etc/mtab Nikon01 Slackware 5 11-17-2006 06:15 AM
FSTAB and /mnt/windows permission problems. Changes are not permanent? Maxei Linux - General 7 11-05-2005 08:42 PM
newbie vs fstab. fstab wins :( blop Linux - Newbie 3 01-07-2005 05:54 AM
(version 5.1 chapter 08 fstab) vs (man fstab) rgiggs Linux From Scratch 2 06-03-2004 05:55 PM
FSTAB / Permission Denied Error clearh20 Linux - Newbie 5 06-10-2003 12:43 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

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