LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 07-20-2006, 06:03 PM   #1
sl4ckw4re
Member
 
Registered: Jul 2006
Distribution: Slackware 10.2
Posts: 31

Rep: Reputation: 15
group have full rights on partition


hello. i have a partition, of type reiserfs. i added a noauto,user option to fstab and this allow me to mount the partition as a user and unmount it, but i don't have full rights over it and we know it doesnt work with chown & chmod for mount points. after thinking a bit i agreed to make a custom group add my user(s) which i want them to have full rights on the partition and add smth to the fstab for this, but i really dont know what to add. my current fstab looks like this:
Code:
/dev/hdc1        /mnt/data        reiserfs    noauto,user,defaults         1   2
i already made group data and added my regular user to the group. so what should my fstab look comparing to this one, for the group (and all users in it implicitly own the partition and have full (rw) rights on it. thank u.
 
Old 07-20-2006, 06:41 PM   #2
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 681Reputation: 681Reputation: 681Reputation: 681Reputation: 681Reputation: 681
For a mounted partition with the reiserfs, you use the chmod and chgrp commands to set the owner, group owner and permissions on the mount point. You do this after it is mounted, and need to be root to do it. After that, the permissions on the directory where the partition is mounted will change when the partition is mounted.
sudo chown sl4ckw4re:data /mnt/data
sudo chmod 0777 /mnt/data

You could leave the /mnt/data partition being owned by root, but use chmod on directories owned by the respective users. For this, you would use the same owner/group/permission settings that you have for the /home partition.

For some file systems such as vfat, you need to use the "uid=" and "gid=" and "fmask=" and "dmask=" options in the mount command, and the ownership and permission settings are made for the entire partition.

If this is not a removable drive (as /dev/hdc indicates), then don't use the noauto option. You will want it to be mounted when you boot up.

If you want to have a directory where certain users can read and write to, then create a group for that directory. If you want finer control, such as allowing groupA, groupB and groupC full access, but groupD, groupE read-only access and other groups no access, then use the "setfacl" program. See your documentation on acl support for reiserfs. Your system may not support it, or the filesystem may not have been created with acl support. You also need to mount the partition with the appropriate options.

Last edited by jschiwal; 07-20-2006 at 06:51 PM.
 
  


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
Group Access Rights and Panel Buttons mayank_a Linux - General 1 02-11-2006 10:51 AM
Multiple Group Rights to One Directory JWatson Linux - Security 4 12-31-2004 02:13 PM
Group members and rights EERookie Linux - Newbie 0 06-03-2004 09:19 AM
how to know a certain group has what rights in linux? funnyusa Linux - Newbie 5 06-21-2003 10:38 PM
Question about user/group rights ShibbyLinux Linux - General 1 04-15-2002 04:03 PM

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

All times are GMT -5. The time now is 01:22 AM.

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