LinuxQuestions.org
Help answer threads with 0 replies.
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 11-07-2014, 06:23 AM   #1
pradeep233
LQ Newbie
 
Registered: Nov 2014
Posts: 2

Rep: Reputation: Disabled
How to give Access to group in Linux?


I have directory '/u02/Infa_shared', created one group 'Developers' and Added users 'A','B'. Owner of this directory is 'infaadmin' and user belongs to 'admin' group.

How can I give read, write, execute access on this directory to 'Developers' by keeping 'admin' group has its owner in Linux?
 
Old 11-07-2014, 06:27 AM   #2
sag47
Senior Member
 
Registered: Sep 2009
Location: Raleigh, NC
Distribution: Ubuntu, PopOS, Raspbian
Posts: 1,899
Blog Entries: 36

Rep: Reputation: 477Reputation: 477Reputation: 477Reputation: 477Reputation: 477
See the chmod command.

http://catcode.com/teachmod/
 
Old 11-07-2014, 08:58 AM   #3
Cartoonite
LQ Newbie
 
Registered: Aug 2006
Location: Toronto, ON
Distribution: Kubuntu
Posts: 8

Rep: Reputation: 0
Depending on the specifics of the access rights you are trying to set, you may not be able to accomplish this with traditional UNIX permissions (managed by chmod and chown).

Traditional UNIX permissions tend to deal with 2 groups of users: users in the group that owns the file and everyone else. Your description mentions 2 different user groups but not explicitly everyone else. Presumably, the security scheme you want is this:

infaadmin: rwx
users in the 'admin' group: rwx
users in the 'Developers' group: rwx
everyone else: ---

While this may be possible with just chmod and chown, I don't know how it would be done. If this accurately reflects the security scheme you want, you may want to consider using an ACL. See this Stack Overflow question for additional details.

Alternately, if other users in the 'admin' group do not require access, the simplest solution is probably to change the group ownership of the directory to 'Developers' and assign g+rwx with chmod. This, however, does not meet your stated requirement of keeping the current owning group ('admin').
 
Old 11-07-2014, 10:00 AM   #4
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,573

Rep: Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142
Quote:
Originally Posted by pradeep233 View Post
How can I give read, write, execute access on this directory to 'Developers' by keeping 'admin' group has its owner in Linux?
You can't, not with standard permissions. Is there a reason members of the 'admin' group shouldn't also be members of the 'Developers' group? If members of 'admin' were also members of 'Developers' then you could just change the directory to the 'Developers' group. Otherwise you're going to need to look into ACL.
 
1 members found this post helpful.
Old 11-15-2014, 08:34 AM   #5
pradeep233
LQ Newbie
 
Registered: Nov 2014
Posts: 2

Original Poster
Rep: Reputation: Disabled
Thank You so much sag47, Cartoonite and suicidaleggroll . It got resolved after I followed below steps.
1. edited /etc/fstab
2. rebooted
3. used this command: setfacl -m g:infadevelopers:rwx /u02/Informatica/pc961/server/infa_shared/ParamFiles

Last edited by pradeep233; 11-15-2014 at 08:36 AM.
 
1 members found this post helpful.
  


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
Group permissions: user can't access 770 directory even though a member of group jm34003 Linux - Security 13 05-16-2012 02:03 PM
how to give access to particulat user in ftp user group to particular folder marora Linux - General 2 06-16-2011 02:03 AM
which application in linux will give access to router aqib Linux - Networking 2 05-13-2010 08:33 AM
how do i give puppy linux 2.16 access to the internet wirelessly baronobeefdip Puppy 6 03-11-2010 09:45 AM
How to give access rights to one group to the home-dirs of another group Peter@KKVS Linux - Networking 2 11-09-2006 12:38 AM

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

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