Linux Help
guides forums blogs
Home Desktops Distributions ISO Images Logos Newbies Reviews Software Support & Resources Linuxhelp Wiki

Welcome Guest ( Log In | Register )



Advanced DNS Management
New ZoneEdit. New Managment.

FREE DNS Is Back

Sign Up Now
 
Reply to this topicStart new topic
> Multiple Group Permissions On Same File, how to set...
jetzmaru
post Sep 23 2003, 11:58 PM
Post #1


Whats this Lie-nix Thing?
*

Group: Members
Posts: 2
Joined: 23-September 03
Member No.: 1,510



Help!

Is there any way to give different groups (or users) different permissions levels on the same file or directory (ala NT)? Or can only one group be associated with a file?

Thanks!

blink.gif
Go to the top of the page
 
+Quote Post
hughesjr
post Sep 24 2003, 06:00 AM
Post #2


Its GNU/Linuxhelp.net
*******

Group: Admin
Posts: 3,433
Joined: 25-July 03
From: Corpus Chrsiti, TX, USA
Member No.: 1,151



With standard GNU/Linux permissions, only one group, one owner (a user), and everyone else can be associated with a file.

However, there is a project for bringing ACLs (Access Control Lists) to Linux. ACLs would allow what you want, assigning multiple groups to the same item (file, printer, mount permission, etc.).

RedHat (even in the Severn beta release, which will probably become RH10 ... or maybe RH9.1) doesn't have ACLs turned on in their pre-compiled kernels. ACLs work, but they are currently hard to use and not all programs recognise the ACL permissions, so using certian programs will bypass the permissions set by ACLs. ----If you wanted to use ACLs with RedHat, you would need to recompile your kernel with that feature turned on-----.

ACLs will eventually be the security answer in Linux. Since Novell has a very good system for doing Directory Services, I expect a very good tool from them sometime soon that will make security more flexible on Linux. The Nterprise Linux Service may have those kind of tools when it is ready...

Here is the Novell on Linux strategy


--------------------
Johnny Hughes
hughesjr@linuxhelp.net
Enterprise Alternatives: CentOS, WhiteBoxEL
Favorite Workstation Distros (in order): CentOS, Gentoo, Debian Sarge, Ubuntu, Mandrake, FedoraCore, Slackware, SUSE
Favorite Server Distros (in order): CentOS, WhiteBoxEL, Debian Sarge, Slackware, Mandrake, FedoraCore, Gentoo, SUSE
Go to the top of the page
 
+Quote Post
chrisw
post Sep 24 2003, 08:32 AM
Post #3


RMS is my Hero
******

Group: Admin
Posts: 634
Joined: 27-September 02
From: Louisiana
Member No.: 5



cant you just have a main group say dataentry
and if another user/group needs access to it..just add that user/group to the dataentry group

all makes sense to me as if that should work like you want

i could be wrong...if so let me know....


--------------------

Chris W.
Go to the top of the page
 
+Quote Post
hughesjr
post Sep 26 2003, 12:57 PM
Post #4


Its GNU/Linuxhelp.net
*******

Group: Admin
Posts: 3,433
Joined: 25-July 03
From: Corpus Chrsiti, TX, USA
Member No.: 1,151



Chris,

What I think he wants to do is give to do things like this:

there are 4 groups ...A, B, C, and D

I need the following permissions to the file named paychart:

Group A needs to rw-
Group B needs r--
Group C needs ---
Group D needs rwx

With ACLs you can do this via groups...


--------------------
Johnny Hughes
hughesjr@linuxhelp.net
Enterprise Alternatives: CentOS, WhiteBoxEL
Favorite Workstation Distros (in order): CentOS, Gentoo, Debian Sarge, Ubuntu, Mandrake, FedoraCore, Slackware, SUSE
Favorite Server Distros (in order): CentOS, WhiteBoxEL, Debian Sarge, Slackware, Mandrake, FedoraCore, Gentoo, SUSE
Go to the top of the page
 
+Quote Post
chrisw
post Sep 26 2003, 10:32 PM
Post #5


RMS is my Hero
******

Group: Admin
Posts: 634
Joined: 27-September 02
From: Louisiana
Member No.: 5



well you can do 3 groups the 4th would be the problem
cause you can have the following like you mentioned

Group A needs to rw-
Group B needs r--
Group C needs ---
Group D needs rwx


D A B
rwxrw r filename.txt

the only problem would be group 'C' because of the fourth group


--------------------

Chris W.
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 19th October 2017 - 02:06 AM